Initial commit
Initial commit [v9.7]
This commit is contained in:
16
_module/nss/conv_death_recal.nss
Normal file
16
_module/nss/conv_death_recal.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
// * transport player back to place where you died
|
||||
//Can add the CanAffordIt() function to this as well to charge player
|
||||
//For recalling on death, but remember exp/gold taken is already in
|
||||
//effect.
|
||||
|
||||
void main()
|
||||
{
|
||||
object oSelf = OBJECT_SELF;
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_UNSUMMON);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eVis, GetLocalLocation(GetPCSpeaker(),"NW_L_I_DIED_HERE"));
|
||||
SetLocalInt(GetPCSpeaker(), "NW_L_I_DIED", 0);
|
||||
object oPC = GetPCSpeaker();
|
||||
ActionCastFakeSpellAtObject(SPELL_FREEDOM_OF_MOVEMENT, OBJECT_SELF);
|
||||
|
||||
AssignCommand(GetPCSpeaker(), DelayCommand(0.5, JumpToLocation(GetLocalLocation(oPC,"NW_L_I_DIED_HERE"))));
|
||||
}
|
||||
Reference in New Issue
Block a user