summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authoreathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-31 22:52:58 +0000
committereathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-31 22:52:58 +0000
commitdc3d5221ddad6a0f94133bf8b83f9c0c76ff85b4 (patch)
tree60fc4245e5b0ef3aa050a1c59218438211be1a03 /doc/script_commands.txt
parent5278174e72f1fe0b35dbe28e3295ee34f76bc821 (diff)
downloadhercules-dc3d5221ddad6a0f94133bf8b83f9c0c76ff85b4.tar.gz
hercules-dc3d5221ddad6a0f94133bf8b83f9c0c76ff85b4.tar.bz2
hercules-dc3d5221ddad6a0f94133bf8b83f9c0c76ff85b4.tar.xz
hercules-dc3d5221ddad6a0f94133bf8b83f9c0c76ff85b4.zip
* Merged changes up to eAthena 15085.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15819 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt24
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 4292017ca..aa5e0441e 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2027,17 +2027,6 @@ Whatever it returns is determined by type.
---------------------------------------
-*getnpcid(<type>)
-
-This function will return the GID of an NPC.
-Type can be:
-
- 0 - The NPC that the running script is attached to.
-
-Useful for making an NPC perform an action using script commands that require a GID (e.g. unit*)
-
----------------------------------------
-
*getarraysize(<array name>)
This function returns the number of values that are contained inside the
@@ -2141,6 +2130,19 @@ if( getcharid(2) == 0 ) mes "Only members of a guild are allowed here!";
---------------------------------------
+*getnpcid(<type>{,"<npc name>"});
+
+Retrieves IDs of the currently invoked NPC. If a unique npc name is
+given, IDs of that NPC are retrieved instead. Type specifies what ID
+to retrieve and can be one of the following:
+
+ 0 - Unit ID (GID)
+
+If an invalid type is given or the NPC does not exist, return value
+is 0.
+
+---------------------------------------
+
*getchildid()
*getmotherid()
*getfatherid()