Initial upload
Initial upload
This commit is contained in:
26
_module/nss/cb_dontattacknpc.nss
Normal file
26
_module/nss/cb_dontattacknpc.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastHostileActor();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectKnockdown();
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 300.0f);
|
||||
|
||||
oTarget = oPC;
|
||||
|
||||
eEffect = EffectDazed();
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 300.0f);
|
||||
|
||||
FloatingTextStringOnCreature("That Wasn't Bright", oPC);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user