Changed folder name.
Changed folder name.
This commit is contained in:
22
_module/nss/take_pc_effects.nss
Normal file
22
_module/nss/take_pc_effects.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
object oPC=GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
//Remove blindness from the PC
|
||||
effect eLoop=GetFirstEffect(oPC);
|
||||
|
||||
while (GetIsEffectValid(eLoop))
|
||||
{
|
||||
//Remove all non-standard effects...
|
||||
if(GetEffectType(eLoop)!=EFFECT_TYPE_HASTE ||
|
||||
GetEffectType(eLoop)!=EFFECT_TYPE_POLYMORPH ||
|
||||
GetEffectType(eLoop)!=EFFECT_TYPE_VISUALEFFECT ||
|
||||
GetEffectType(eLoop)!=EFFECT_TYPE_IMMUNITY)
|
||||
{ RemoveEffect(oPC, eLoop); }
|
||||
|
||||
eLoop=GetNextEffect(oPC);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user