37 lines
817 B
Plaintext
37 lines
817 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetPCItemLastUnequippedBy();
|
|
|
|
object oItem;
|
|
oItem = GetPCItemLastUnequipped();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
effect eEffect;
|
|
eEffect = GetFirstEffect(oTarget);
|
|
while (GetIsEffectValid(eEffect))
|
|
{
|
|
if (GetEffectType(eEffect)==EFFECT_TYPE_MOVEMENT_SPEED_INCREASE) RemoveEffect(oTarget, eEffect);
|
|
eEffect = GetNextEffect(oTarget);
|
|
}
|
|
|
|
eEffect = GetFirstEffect(oTarget);
|
|
while (GetIsEffectValid(eEffect))
|
|
{
|
|
if (GetEffectType(eEffect)==EFFECT_TYPE_CONCEALMENT) RemoveEffect(oTarget, eEffect);
|
|
eEffect = GetNextEffect(oTarget);
|
|
}
|
|
|
|
eEffect = GetFirstEffect(oTarget);
|
|
while (GetIsEffectValid(eEffect))
|
|
{
|
|
if (GetEffectType(eEffect)==EFFECT_TYPE_DAMAGE_INCREASE) RemoveEffect(oTarget, eEffect);
|
|
eEffect = GetNextEffect(oTarget);
|
|
}
|
|
|
|
}
|