Initial upload
Initial upload
This commit is contained in:
20
_module/nss/removepolymorphs.nss
Normal file
20
_module/nss/removepolymorphs.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//Put this script OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = GetFirstEffect(oTarget);
|
||||
while (GetIsEffectValid(eEffect))
|
||||
{
|
||||
if (GetEffectType(eEffect)==EFFECT_TYPE_POLYMORPH) RemoveEffect(oTarget, eEffect);
|
||||
eEffect = GetNextEffect(oTarget);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user