Initial commit
Initial commit [v9.7]
This commit is contained in:
74
_module/nss/aq_wizardstaff.nss
Normal file
74
_module/nss/aq_wizardstaff.nss
Normal file
@@ -0,0 +1,74 @@
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
effect eEffect;
|
||||
object oItem;
|
||||
int nInt;
|
||||
object oTarget;
|
||||
|
||||
object oPC = GetModuleItemAcquiredBy();
|
||||
|
||||
oItem = GetModuleItemAcquired();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
if (GetLocalInt(GetModule(), "ac_"+GetTag(oItem))) return;
|
||||
SetLocalInt(GetModule(), "ac_"+GetTag(oItem), TRUE);
|
||||
|
||||
oTarget = GetObjectByTag("demlght1");
|
||||
|
||||
//Visual effects can't be applied to waypoints, so if it is a WP
|
||||
//the VFX will be applied to the WP's location instead
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), GetLocation(oTarget));
|
||||
|
||||
DestroyObject(oTarget, 3.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght2");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght3");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght4");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght5");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght6");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght7");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("demlght8");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("X2_EPSONCTRAP001");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("X2_EPFROSTRAP001");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
oTarget = GetObjectByTag("NW_SACIDTRAP001");
|
||||
DestroyObject(oTarget, 0.0);
|
||||
|
||||
//object oTarget;
|
||||
oTarget = GetObjectByTag("demon");
|
||||
|
||||
eEffect = GetFirstEffect(oTarget);
|
||||
while (GetIsEffectValid(eEffect))
|
||||
{
|
||||
if (GetEffectType(eEffect)==EFFECT_TYPE_PARALYZE) RemoveEffect(oTarget, eEffect);
|
||||
eEffect = GetNextEffect(oTarget);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user