Difference between revisions of "Getusers"

From Hercules Wiki
Jump to: navigation, search
(Created page with "=Syntax= :getusers(<type>) =Description= This function will return a number of users on a map or the whole server. What it returns is specified by Type. Type can be one ...")
 
m (See Also)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
=Syntax=
 
=Syntax=
:[[getusers]](<type>)
+
*[[getusers]](<type>)
 +
 
 
=Description=
 
=Description=
 
This function will return a number of users on a map or the whole server. What  
 
This function will return a number of users on a map or the whole server. What  
Line 17: Line 18:
  
 
=See Also=
 
=See Also=
:[[getmapusers]];
+
*[[getmapusers]];
:[[getareausers]];
+
*[[getareausers]];
 +
 
 +
[[Category:Script Command]]

Latest revision as of 17:06, 3 October 2013

Contents

Syntax

  • getusers(<type>)

Description

This function will return a number of users on a map or the whole server. What it returns is specified by Type.

Type can be one of the following values, which control what will be returned:

   0 - Count of all characters on the map of the invoking character.
   1 - Count of all characters in the entire server.
   8 - Count of all characters on the map of the NPC the script is
       running in.

Example

   mes getusers(1)+" players on the server";
   close;

See Also