summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-04 20:06:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-04 20:06:25 +0300
commitf8f24eccf6562af825f298851710848c2212cf61 (patch)
treed6eca429a2859119040056ec6205e16c4e235842 /src/emap/script_buildins.c
parentdf17c1e4f0a317a20515429be0c32ee79af8c14b (diff)
downloadplugin-f8f24eccf6562af825f298851710848c2212cf61.tar.gz
plugin-f8f24eccf6562af825f298851710848c2212cf61.tar.bz2
plugin-f8f24eccf6562af825f298851710848c2212cf61.tar.xz
plugin-f8f24eccf6562af825f298851710848c2212cf61.zip
Add script command for close npc dialog only on client without affecting server side.
New script command: closeclientdialog
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index b0cf499..75c3308 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -186,6 +186,13 @@ BUILDIN(closeDialog)
return true;
}
+BUILDIN(closeClientDialog)
+{
+ getSD();
+ send_npccommand(sd, st->oid, 14);
+ return true;
+}
+
BUILDIN(shop)
{
getSD();