generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
41
_removed/hif_onclientleav.nss
Normal file
41
_removed/hif_onclientleav.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
#include "f_vampire_defs"
|
||||
#include "f_vampire_spls_h"
|
||||
#include "f_vampire_persis"
|
||||
|
||||
void Vampire_Client_Exit(object oPC)
|
||||
{
|
||||
object oCoffin = GetLocalObject(oPC, "FALLEN_VAMPIRE_COFFIN");
|
||||
location lL;
|
||||
if(GetIsVampire(oPC) && GetLocalInt(oPC, "FALLEN_VAMPIRE_COFFIN_VALID") && GetIsObjectValid(oCoffin))
|
||||
{
|
||||
Vampire_Set_Int(oPC, "FALLEN_VAMPIRE_COFFIN_GARLIC", GetLocalInt(oCoffin, "FALLEN_VAMPIRE_GARLIC"));
|
||||
Vampire_Set_Int(oPC, "FALLEN_VAMPIRE_COFFIN_HWATER", GetLocalInt(oCoffin, "FALLEN_VAMPIRE_HOLYWATER"));
|
||||
Vampire_Set_Int(oPC, "FALLEN_VAMPIRE_COFFIN_ROSE", GetLocalInt(oCoffin, "FALLEN_VAMPIRE_ROSEWARD"));
|
||||
if(WhatToDoWithTheCoffin < 4 || WhatToDoWithTheCoffin > 5) DestroyObject(oCoffin);
|
||||
else
|
||||
{
|
||||
DeleteLocalObject(oPC, "FALLEN_VAMPIRE_COFFIN");
|
||||
DeleteLocalObject(oCoffin, "FALLEN_VAMPIRE_COFFIN");
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check to see if player is dead and trying to avoid death penalties
|
||||
// if (GetCurrentHitPoints(oPlayer) <= 0)
|
||||
// SetLocalInt (GetModule(), "death"+GetName(oPlayer), 1);
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// This script has been auto-generated by HakInstaller to call
|
||||
// multiple handlers for the onclientleave event.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
#include "nw_o0_itemmaker"
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("pwdb_clientleave", OBJECT_SELF);
|
||||
ExecuteScript("prc_onleave", OBJECT_SELF);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user