summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-29 12:47:03 +0200
committerGitHub <noreply@github.com>2018-06-29 12:47:03 +0200
commit337001c5cd46374709e7cabb63a8c45cff6db847 (patch)
treebc97c7d5f39e0de2570af249cc691853259b7834 /doc
parentc038c000b9cd2d14024898586789ee58d62f3ca5 (diff)
parent340f4ee90ec199aa715cc4cabe8d5e91c90d531c (diff)
downloadhercules-337001c5cd46374709e7cabb63a8c45cff6db847.tar.gz
hercules-337001c5cd46374709e7cabb63a8c45cff6db847.tar.bz2
hercules-337001c5cd46374709e7cabb63a8c45cff6db847.tar.xz
hercules-337001c5cd46374709e7cabb63a8c45cff6db847.zip
Merge pull request #2081 from EyesOfAHawk/buildin_setparam
Adds setparam(), change optional param for readparam()
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 10a0352f4..a00756056 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2473,6 +2473,7 @@ arrays:
---------------------------------------
*readparam(<parameter number>{, "<player name>"})
+*readparam(<parameter number>{, <account id>})
This function will return the basic stats of an invoking character,
referred to by the parameter number. Instead of a number, you can use a
@@ -2511,6 +2512,21 @@ Example 3:
---------------------------------------
+*setparam(<parameter number>, <value>{, "<player name>"})
+*setparam(<parameter number>, <value>{, <account id>})
+
+Sets a parameter on the given player. See readparam() for more info about
+parameters. Keep in mind that not all read-able parameters are also set-able.
+
+Parameters that can be modified include:
+
+StatusPoint, BaseLevel, SkillPoint, Zeny, Sex, Weight, MaxWeight, JobLevel,
+BaseExp, JobExp, Hp, MaxHp, Sp, MaxSp, Karma, Manner, Fame, bVit, bDex, bAgi,
+bStr, bInt, bLuk
+
+
+---------------------------------------
+
*getcharid(<type>{, "<character name>"})
This function will return a unique ID number of the invoking character,