summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-07 17:18:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:44:20 +0300
commit625ed85b6a3d88587e8927f1f640f1fadd3dc642 (patch)
tree0eea82cd4b6d9f939d4c1f8d708d3e1b8177e715 /doc
parent54b5a4d666eae9692ff06746c2ae68d9e1b49641 (diff)
downloadhercules-625ed85b6a3d88587e8927f1f640f1fadd3dc642.tar.gz
hercules-625ed85b6a3d88587e8927f1f640f1fadd3dc642.tar.bz2
hercules-625ed85b6a3d88587e8927f1f640f1fadd3dc642.tar.xz
hercules-625ed85b6a3d88587e8927f1f640f1fadd3dc642.zip
Extend script command getareausers.
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index fb4c2530d..4909699c3 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3226,15 +3226,22 @@ let you enter.
---------------------------------------
-*getareausers("<map name>",<x1>,<y1>,<x2>,<y2>)
+*getareausers({"<map name>",}{<x1>,<y1>,<x2>,<y2>})
+*getareausers({"<map name>",}{<radius>})
This function will return the count of connected characters which are
-located within the specified area - an x1/y1-x2/y2 square - on the
-specified map.
+located within the specified area. Area can be x1/y1-x2/y2 square,
+or radius from npc position. If map name missing, used attached player map.
This is useful for maps that are split into many buildings, such as all
the "*_in" maps, due to all the shops and houses.
+Examples:
+ // return players in area npc area on current map.
+ .@num = getareausers();
+ // return players in square (1, 1) - (10, 10)
+ .@num = "players: " + getareausers(1, 1, 10, 10);
+
---------------------------------------
*getusersname;