diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-11-30 13:01:14 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-03 11:53:10 -0500 |
commit | 625b02aceff13f15793d031cf615ab3580714782 (patch) | |
tree | 58b492be92017188d817d855706e54f97303acb6 /npc/functions | |
parent | 04749846cb60098399158f997cec2330442a9698 (diff) | |
download | serverdata-625b02aceff13f15793d031cf615ab3580714782.tar.gz serverdata-625b02aceff13f15793d031cf615ab3580714782.tar.bz2 serverdata-625b02aceff13f15793d031cf615ab3580714782.tar.xz serverdata-625b02aceff13f15793d031cf615ab3580714782.zip |
add `bye` terminator function, make `goodbye` an extension of `bye`
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/goodbye.txt | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt index cb159c79..5aacf5a9 100644 --- a/npc/functions/goodbye.txt +++ b/npc/functions/goodbye.txt @@ -106,10 +106,28 @@ function script cstorage { } -function script goodbye { - closedialog; - npctalk3 goodbye_msg(); +// bye +// closes the dialog without waiting for the player to press close +// can also display an emote + +function script bye { + .@emote = getarg(0, -1); + closedialog; // XXX: maybe send closeclientdialog in the future + + if (.@emote >= 0) + emotion .@emote; close; } + + + +// goodbye +// same as bye, but also displays a canned message +// can also display an emote + +function script goodbye { + npctalk3 goodbye_msg(); + bye getarg(0, -1); +} |