#include "nw_i0_spells" void DeadMagicExit(object oPC) { effect eVis = EffectVisualEffect(VFX_IMP_DISPEL); RemoveSpecificEffect(EFFECT_TYPE_SPELL_FAILURE, oPC); RemoveSpecificEffect(EFFECT_TYPE_DISPELMAGICALL, oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis, oPC); AssignCommand(oPC, PlaySound("sce_positive")); } void main() { object oPC = GetExitingObject(); ExecuteScript("_area_on_exit", OBJECT_SELF); DelayCommand(8.0, SendMessageToPC(oPC,"You sense magic returning to you")); DelayCommand(8.5, DeadMagicExit(oPC)); }