summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2016-11-30 13:03:03 -0500
committergumi <mekolat@users.noreply.github.com>2016-12-03 11:53:10 -0500
commit8418a0470400c2ca7a2240ead667db92b447767a (patch)
tree802ead0ee51ea23e3caedcb13c928a1d3d8f33e9 /npc/functions
parent625b02aceff13f15793d031cf615ab3580714782 (diff)
downloadserverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.gz
serverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.bz2
serverdata-8418a0470400c2ca7a2240ead667db92b447767a.tar.xz
serverdata-8418a0470400c2ca7a2240ead667db92b447767a.zip
add `goodbye2` terminator function
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/goodbye.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt
index 5aacf5a9..0f0a8294 100644
--- a/npc/functions/goodbye.txt
+++ b/npc/functions/goodbye.txt
@@ -131,3 +131,22 @@ function script goodbye {
npctalk3 goodbye_msg();
bye getarg(0, -1);
}
+
+
+
+// goodbye2
+// Waits for the player to press close, displays a canned message,
+// ends execution.
+// Can also display an emote
+
+function script goodbye2 {
+ .@emote = getarg(0, -1);
+
+ close2;
+ npctalk3 goodbye_msg();
+
+ if (.@emote >= 0)
+ emotion .@emote;
+
+ end;
+}