Issue information

Issue ID
#2545
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 17, 2008 5:57
Last Post
Hercules Elf Bot
Dec 17, 2008 5:57
Confirmation
N/A

Hercules Elf Bot - Dec 17, 2008 5:57

Originally posted by [b]kR105[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2545

Well I discovered this issue when I try to make a script with this funcion on it...

The documentation (script_commands.txt) says:

CODE
*getusers(<type>)
(...)
Type:
  8 - This will count all characters on the same map as the current NPC.
      (By default, it will count people on the same map as the character)
  7 - Return the amount of players for the entire server.
      (By default, only the players on the map will be counted.)
(...)


But when I try to use this function whith the Type 7, always return 0..
I looked the source and I see that the reals types are 0 and 1 respectively.
I must to use "getusers(1)" to get the player count of the entire server.

Well, sorry for the grammar errors, i'm still learning english...