Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/rh_golem_attack.nss
Normal file
23
_module/nss/rh_golem_attack.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "nw_i0_generic"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oGolem = GetNearestObjectByTag("rh_mith_golem");
|
||||
int iInt = GetLocalInt(oPC, "rhgolem");
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if(!iInt==1)
|
||||
{
|
||||
ChangeToStandardFaction(oGolem,STANDARD_FACTION_HOSTILE);
|
||||
AdjustReputation(oPC, oGolem, -100);
|
||||
SetIsTemporaryEnemy(oPC, oGolem);
|
||||
AssignCommand(oGolem, ActionAttack(oPC));
|
||||
AssignCommand(oGolem, DetermineCombatRound(oPC));
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
SendMessageToPC(oPC, "not firing");
|
||||
}
|
Reference in New Issue
Block a user