Thread: playerscount
View Single Post
  #13  
Old 09-27-2002, 12:14 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
On client-side the showcharacter npcs can be accessed like players. That's an old feature that has been added because for graphical things npcs and players are like the same. It is still helpful sometimes, on graal2002 we use it for displaying the hp bar for all players and monsters.

On server-side its not possible, only players are in the playerlist because players and npcs are quite different, most scripts that want to access players dont want to do stuff with showcharacter npcs.

I will check the id thing, normally it should be -1 for showcharacter npcs (when accessed as player)
Reply With Quote