Aantioch_Infernum/_module/nss/_deadmagic_exit.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

22 lines
541 B
Plaintext

#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));
}