Rune_PRC8/_removed/hif_onclientleav.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

42 lines
1.4 KiB
Plaintext

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