Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
23
trunk/scripts/prc_onleave.nss
Normal file
23
trunk/scripts/prc_onleave.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: OnClientLeave eventscript
|
||||
//:: prc_onleave
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_class_const"
|
||||
#include "inc_utility"
|
||||
#include "inc_letoscript"
|
||||
#include "inc_leto_prc"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Execute scripts hooked to this event for the player triggering it
|
||||
object oPC = GetExitingObject();
|
||||
if(!GetIsDM(oPC))
|
||||
{
|
||||
if(GetPRCSwitch(PRC_LETOSCRIPT_FIX_ABILITIES))
|
||||
PRCLetoExit(oPC);
|
||||
if(GetPRCSwitch(PRC_USE_LETOSCRIPT))
|
||||
LetoPCExit(oPC);
|
||||
}
|
||||
AssignCommand(GetModule(), DelayCommand(0.1, RecalculateTime()));
|
||||
ExecuteAllScriptsHookedToEvent(oPC, EVENT_ONCLIENTLEAVE);
|
||||
}
|
||||
Reference in New Issue
Block a user