summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-07-04 19:19:52 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-07-04 19:19:52 -0300
commite8adea6f0cbad25b5ac21944b16099cce155d050 (patch)
treebf393e8b5ce364fb8f0524353b4e0f862ec68026 /doc/script_commands.txt
parent0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3 (diff)
downloadhercules-e8adea6f0cbad25b5ac21944b16099cce155d050.tar.gz
hercules-e8adea6f0cbad25b5ac21944b16099cce155d050.tar.bz2
hercules-e8adea6f0cbad25b5ac21944b16099cce155d050.tar.xz
hercules-e8adea6f0cbad25b5ac21944b16099cce155d050.zip
Implemented sitting set of script commands: sit(), stand(), issit() as per suggested in topic #1204. See documentation for more information on these commands.
Also fixed leftover from db_use_sql split. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index f718298a2..2cb0a55c0 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2493,7 +2493,23 @@ Examples:
// Outputs IP address of character "Silver".
mes "Silver's IP: " + getcharip("Silver");
-
+
+---------------------------------------
+
+*sit({"<character name>"})
+*stand({"<character name>"})
+
+This function will force a character to sit/stand if it is standing/sitting.
+If no player is specified, the attached player will be used.
+
+---------------------------------------
+
+*issit({"<character name>"})
+
+This function will return a number depending on the character's sitting state.
+If the character is sitting, it will return 1, otherwise (standing) it will return 0.
+In case no player is specified, the function will return the state of the attached player.
+
---------------------------------------
\\
2,2 Item-related commands