Hilarious, will have to watch it:)
The code I'm going to test:
oTarget = GetObjectByTag("Mistress");
effect eEffect;
eEffect = GetFirstEffect(oTarget);
while (GetIsEffectValid(eEffect))
{
if (GetEffectType(eEffect) == SUBTYPE_SUPERNATURAL) RemoveEffect(oTarget, eEffect);
eEffect = GetNextEffect(oTarget);
}
I can't understand how to do it Henesua style
'>. I'm not good at scripting and I can't find function that would do
GetLastSpell is only valid for last spell, but sometimes it won't be the sleep spell(NPCs are casters as well).
GetHasSpellEffect : I do not know how to call the spell in this, the link in the description points only to visual effects.
Off to test it.
Modifié par werelynx, 05 février 2013 - 08:56 .