Initial upload
Initial upload
This commit is contained in:
26
_module/nss/cb_monkattack.nss
Normal file
26
_module/nss/cb_monkattack.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "nw_i0_generic"
|
||||
|
||||
|
||||
//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastHostileActor();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("CHANTINGMONK");
|
||||
|
||||
AdjustReputation(oPC, oTarget, -100);
|
||||
|
||||
oTarget = GetObjectByTag("CHANTINGMONK");
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user