WoR_PRC8/_module/nss/rhun_on_cl_exit.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

29 lines
926 B
Plaintext

//#include "sha_subr_methds"
void main()
{
//SubraceOnClientLeave();
object oPC = GetExitingObject();
object oHench = GetHenchman(oPC);
if (GetTag(oHench) == "RHUN_SUDEMON"){
ExecuteScript("demonleave", oHench);}
else {
//Do Nothing
}
//Added to save 40% of the time to reduce lag - Grug 23-Arp-2004
//Another chanced save is in resting script
/* if (d10()<=4)
{
ExportAllCharacters();
// ===== This is code for fixing shifters =====
object oPCSF = GetFirstPC();
while ( GetIsObjectValid(oPCSF) ) // Loop through all the Players
{
if ( GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_CARMOUR,oPCSF)) )
DelayCommand(0.1, ExecuteScript("ws_saveall_sub", oPCSF));
// We HAVE to use DelayCommand here or else properties will not carry over no matter what you do.
oPCSF = GetNextPC();
} // while
} */
}