Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
////////////////////////////////////////////////////////////////////////////////
// Client Counting for Areas - On Area Enter
// opw_area_onexit
// By Don Anderson
// dandersonru@msn.com
//
// Place this in the Area On Enter Event
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oPC = GetExitingObject();
object oMod = GetModule();
object oArea = GetArea(oPC);
//Record that there is Someone who Matters in the Area
if(GetIsPC(oPC) || GetIsDM(oPC) || GetIsDMPossessed(oPC))
{
int nClient = GetLocalInt(oArea,"CLIENTINAREA");
nClient--;
if(nClient < 0) nClient = 0;
if(nClient == 0) ExecuteScript("opw_oax_reset",oArea);
SetLocalInt(oArea,"CLIENTINAREA",nClient);
}
}