diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-11-30 12:54:51 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-03 11:53:07 -0500 |
commit | 8975b46999b48ab8b48fce7ec1f253106d73e822 (patch) | |
tree | 72cf29fe0faac267a5f4079bae268ba2489309d9 | |
parent | 1cc1e7e89337db24f6e8871a01604d01ee09047d (diff) | |
download | serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.gz serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.bz2 serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.tar.xz serverdata-8975b46999b48ab8b48fce7ec1f253106d73e822.zip |
add `cshop` terminator function
-rw-r--r-- | npc/functions/goodbye.txt | 12 |
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; |