summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2016-11-30 12:54:51 -0500
committergumi <mekolat@users.noreply.github.com>2016-12-03 11:53:07 -0500
commit8975b46999b48ab8b48fce7ec1f253106d73e822 (patch)
tree72cf29fe0faac267a5f4079bae268ba2489309d9 /npc/functions
parent1cc1e7e89337db24f6e8871a01604d01ee09047d (diff)
downloadserverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.gz
serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.bz2
serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.xz
serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.zip
add `cshop` terminator function
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/goodbye.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt
index af9ab08f..94bc338d 100644
--- a/npc/functions/goodbye.txt
+++ b/npc/functions/goodbye.txt
@@ -83,6 +83,18 @@ function script cwarp {
}
+
+// cshop
+// closes the dialog, then opens a shop
+// if no npc is given, calls "#<npc> $"
+
+function script cshop {
+ closedialog; // XXX: maybe send closeclientdialog in the future
+ shop getarg(0, "#" + strnpcinfo(0) + " $");
+ //close; => the shop buildin already sends close, and is a terminator itself
+}
+
+
function script goodbye {
closedialog;