summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 15:15:32 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 15:15:32 +0000
commit2a3063c4e48c78fc4f778a06349a6e87dae89f50 (patch)
tree0007a689861982201c8c162dfd8bed44069eb634 /doc/script_commands.txt
parentefe35d69e31918c87c1b56528ca1c574b5b86b0d (diff)
downloadhercules-2a3063c4e48c78fc4f778a06349a6e87dae89f50.tar.gz
hercules-2a3063c4e48c78fc4f778a06349a6e87dae89f50.tar.bz2
hercules-2a3063c4e48c78fc4f778a06349a6e87dae89f50.tar.xz
hercules-2a3063c4e48c78fc4f778a06349a6e87dae89f50.zip
Merged `getmapmobs` script function into `mobcount` (bugreport:244). See script commands documentation for details.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15530 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt26
1 files changed, 11 insertions, 15 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 68b62816e..c9bc08bf1 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3087,15 +3087,6 @@ Example:
---------------------------------------
-*getmapmobs("<map name>")
-
-This function will return the total count of monsters currently located on the
-specified map. If the map name is given as "this", the map the invoking
-character is on will be used. If the map is not found, or the invoker is not a
-character while the map is "this", it will return -1.
-
----------------------------------------
-
*skillpointcount()
Returns the total amount of skill points a character possesses (SkillPoint+SP's used in skills)
@@ -5012,14 +5003,19 @@ per 'db/mob_db.txt'. Type is the kind of information returned. Valid types are:
This function will count all the monsters on the specified map that have a given
event label and return the number or 0 if it can't find any. Naturally, only
-monsters spawned with 'monster' and 'areamonster' script commands can be like
-this.
-
-However, apparently, if you pass this function an empty string for the event
-label, it should return the total count of normal permanently respawning
-monsters instead. With the current dynamic mobs system, where mobs are not kept
+monsters spawned with 'monster' and 'areamonster' script commands can have non-empty
+event label.
+If you pass this function an empty string for the event label, it will return
+the total count of monster without event label, including permanently spawning monsters.
+With the dynamic mobs system enabled, where mobs are not kept
in memory for maps with no actual people playing on them, this will return a 0
for any such map.
+If the event label is given as "all", all monsters will be counted, regardless of
+having any event label attached.
+
+If the map name is given as "this", the map the invoking character is on will
+be used. If the map is not found, or the invoker is not a character while the map
+is "this", it will return -1.
---------------------------------------