summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-06 21:09:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:44:14 +0300
commitac4a461a4054eb814ff3df089d9caa96a4343a3d (patch)
treea4da624c7ed58bb4eccbcc926a6492a41c0e3e01 /doc/script_commands.txt
parentb681deae9fdee3a219ddf43b76a553c57733f237 (diff)
downloadhercules-ac4a461a4054eb814ff3df089d9caa96a4343a3d.tar.gz
hercules-ac4a461a4054eb814ff3df089d9caa96a4343a3d.tar.bz2
hercules-ac4a461a4054eb814ff3df089d9caa96a4343a3d.tar.xz
hercules-ac4a461a4054eb814ff3df089d9caa96a4343a3d.zip
Add script command getnpcclass.
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 642b67fe3..fb4c2530d 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7588,6 +7588,16 @@ Example:
---------------------------------------
+*getnpcclass {<name>};
+
+Return npc class/sprite id for npc with given name or for attached npc.
+If name missing and no attached npc, return -1.
+
+Example:
+ .@class = getnpcclass();
+
+---------------------------------------
+
*day;
*night;