View Single Post
  #2  
Old 02-28-2012, 01:29 PM
jamitsu89 jamitsu89 is offline
Registered User
Join Date: Jun 2011
Posts: 27
jamitsu89 is an unknown quantity at this point
Considering you already have the framework for the update every 5 minutes, you can just do something similar to:

NPC Code:

function checkPlayers() {
for (temp.pl : allplayers) {
if (temp.pl.level.size <= 0) {
//This is an RC
temp.rccount ++;
} else {
//This is a player
temp.pcount++;
}
}
//Then store temp.rccount and temp.pcount here
}



Also possibly onPlayerLogout()
Reply With Quote