From ac4a461a4054eb814ff3df089d9caa96a4343a3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Dec 2014 21:09:27 +0300 Subject: Add script command getnpcclass. --- doc/script_commands.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') 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 {}; + +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; -- cgit v1.2.3-70-g09d2