Thread: players in room
View Single Post
  #36  
Old 08-23-2003, 06:46 PM
KainDaMan KainDaMan is offline
Registered User
Join Date: Jul 2003
Location: Virginia,USA
Posts: 51
KainDaMan is on a distinguished road
Send a message via AIM to KainDaMan
the npc character's problem can be solved like this
NPC Code:

for (i=0; i<playerscount; i++) {
if (players[i].id>=0) {
this.players++;
}
}


of course the "this.players" variable would have to be reset to zero before called. and the variable "this.players" everytime would equal to the amount of "real players" in the room.
__________________
---Kain Morbid
Reply With Quote