summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-05-16 16:22:15 +0200
committerHaru <haru@dotalux.com>2015-05-16 16:28:36 +0200
commit6f2b524a4f1349a588bd5db4526b485eda7a6d2d (patch)
tree79c38faa01fac08eb98a42b5b6b534c6e43fdf29 /doc/script_commands.txt
parentcfd20d2657db0b129e10acbd8787eea017fa5cbd (diff)
downloadhercules-6f2b524a4f1349a588bd5db4526b485eda7a6d2d.tar.gz
hercules-6f2b524a4f1349a588bd5db4526b485eda7a6d2d.tar.bz2
hercules-6f2b524a4f1349a588bd5db4526b485eda7a6d2d.tar.xz
hercules-6f2b524a4f1349a588bd5db4526b485eda7a6d2d.zip
Added charid2rid script command
- Returns the account ID (RID) for the given character ID. - As per Streusel's request. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 0eb383c0a..779589281 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2322,6 +2322,14 @@ Whatever it returns is determined by type.
---------------------------------------
+*charid2sd(<char id>)
+
+This function returns the RID of the character with the given character ID.
+
+If the character is offline or doesn't exist, 0 is returned.
+
+---------------------------------------
+
*getarraysize(<array name>)
This function returns highest index of the array that is filled.