#include "inc_system_const" #include "aps_include" #include "nwnx_funcs_w" #include "zss_include" // REO Module On Client Leaving script // This event hook was added with the NWNX_FUNCS plugin. The PC and all related information is // still accessible at this point, even though they are leaving the server. // Only works for Windows at the moment. There is no OnPlayerLeaving hook for Linux yet. void main() { object oPC = OBJECT_SELF; object oDatabase = GetItemPossessedBy(oPC, PC_DATABASE); object oArea = GetArea(oPC); string sLocation = APSLocationToString(GetLocation(oPC)); string sTag = GetTag(oArea); if(sTag != "SOO_ENTRY_AREA") SetLocalString(oDatabase, "LOCATION_SYSTEM_SAVED_LOCATION", sLocation); // Persistent HP ExecuteScript("php_mod_leaving", OBJECT_SELF); // Spawn System ZSS_OnAreaExit(oPC, oArea); }