summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-05-15 01:48:20 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2019-05-15 01:48:20 +0800
commit8013b7950bc9a48ec91c25587e513ad563d5f34f (patch)
tree1471c15c9b993cb7c0a025dad518273ac326b562 /doc
parent647a3d2513746a17636bea354ad5a56c1db853e1 (diff)
downloadhercules-8013b7950bc9a48ec91c25587e513ad563d5f34f.tar.gz
hercules-8013b7950bc9a48ec91c25587e513ad563d5f34f.tar.bz2
hercules-8013b7950bc9a48ec91c25587e513ad563d5f34f.tar.xz
hercules-8013b7950bc9a48ec91c25587e513ad563d5f34f.zip
Update *getmapinfo script command.
- Added parameter `MAPINFO_NPC_COUNT` to return the total number of NPC exists in the map. - Added new server define `MAX_NPC_PER_MAP`
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 516454365..ae9d05d46 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3396,11 +3396,12 @@ argument is omitted, it will try to use the map of the attached NPC, or the
map of the attached player if the NPC can't be found.
Valid <info> are:
- MAPINFO_NAME name of the map
- MAPINFO_ID numeric ID of the map
- MAPINFO_ZONE name of the zone used by the map
- MAPINFO_SIZE_X width of the map (cells on the x axis)
- MAPINFO_SIZE_Y height of the map (cells on the y axis)
+ MAPINFO_NAME name of the map
+ MAPINFO_ID numeric ID of the map
+ MAPINFO_ZONE name of the zone used by the map
+ MAPINFO_SIZE_X width of the map (cells on the x axis)
+ MAPINFO_SIZE_Y height of the map (cells on the y axis)
+ MAPINFO_NPC_COUNT total number of NPC in the map
Examples:
getmapinfo(MAPINFO_ID, "map name"); // ID from name