Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/_deadmagic_exit.nss
Normal file
21
_module/nss/_deadmagic_exit.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#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));
|
||||
|
||||
}
|
Reference in New Issue
Block a user