summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-03 22:07:47 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-03 22:07:47 +0000
commit647558b6b91166728157e6d5cfcdb14891295a66 (patch)
treef5a8c0ab46998b688bcd9cd35272fedd4fe64331 /doc/script_commands.txt
parent686a1e31a3a10093ff7898e3df9961ad913a1a1d (diff)
downloadhercules-647558b6b91166728157e6d5cfcdb14891295a66.tar.gz
hercules-647558b6b91166728157e6d5cfcdb14891295a66.tar.bz2
hercules-647558b6b91166728157e6d5cfcdb14891295a66.tar.xz
hercules-647558b6b91166728157e6d5cfcdb14891295a66.zip
Added script function 'strnpcinfo', for increased npc awareness (originally from jAthena).
Updated script reference doc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11650 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 6d9213b5e..41c455a7d 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -9,7 +9,7 @@
//= Maeki Rika - A section on general concepts and lots of
//= other updates and additions.
//===== Version ===========================================
-//= 3.08.20071018
+//= 3.09.20071103
//=========================================================
//= 1.0 - First release, filled will as much info as I could
//= remember or figure out, most likely there are errors,
@@ -88,6 +88,8 @@
//= Fixed 'duplicate' missing the target 'name' parameter! [ultramage]
//= 3.08.20071018
//= Clarified how npc names work. [FlavioJS]
+//= 3.09.20071103
+//= Added script function 'strnpcinfo' [ultramage]
//===== Description =======================================
//= A reference manual for the eAthena scripting language,
//= sorted out depending on their functionality.
@@ -1822,6 +1824,18 @@ returned when requesting that information.
---------------------------------------
+*strnpcinfo(<type>)
+
+This function will return the various parts of the name of the calling npc.
+Whatever it returns is determined by type.
+
+ 0 - The NPC's display name (visible#hidden)
+ 1 - The visible part of the NPC's display name
+ 2 - The hidden part of the NPC's display name
+ 3 - The NPC's unique name (::name)
+
+---------------------------------------
+
*getarraysize(<array name>)
This function returns the number of values that are contained inside the