summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-29 11:49:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-29 11:49:05 +0300
commitf7557fca587fac9d7bb410dba724e2c53f3c831a (patch)
tree0f116ec5e3d7a9a80e2a482617b9ab827a6f27aa /src/map/init.c
parent2fbf69ebe75abceb55a66b62bfd4220d3833108d (diff)
downloadplugin-f7557fca587fac9d7bb410dba724e2c53f3c831a.tar.gz
plugin-f7557fca587fac9d7bb410dba724e2c53f3c831a.tar.bz2
plugin-f7557fca587fac9d7bb410dba724e2c53f3c831a.tar.xz
plugin-f7557fca587fac9d7bb410dba724e2c53f3c831a.zip
Add script commands to sit and stand player.
New commands: setpcsit [name,] [0|1] - depend on second parameter set player sit or stand. getpcsit([name]) - return current sit flag.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index bb3d80a..27bf766 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -81,6 +81,8 @@ HPExport void plugin_init (void)
addScriptCommand("getmapmask", "s", getMapMask);
addScriptCommand("getnpcclass", "*", getNpcClass);
addScriptCommand("setnpcsex", "*", setNpcSex);
+ addScriptCommand("setpcsit", "*", setPcSit);
+ addScriptCommand("getpcsit", "*", getPcSit);
do_init_langs();