summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/welcome.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/npc/commands/welcome.txt b/npc/commands/welcome.txt
index 44aa4bb9e..bce0c58e9 100644
--- a/npc/commands/welcome.txt
+++ b/npc/commands/welcome.txt
@@ -20,6 +20,24 @@ OnCall:
OnEffect:
@toeventchk=0;
removespecialeffect(FX_CIRCLE, SELF, getcharid(3));
+ // Reversions (warp back)
+ // Not in Candor: Resave your @welcome reversion snippet
+ if (getmap() != "005-1") {
+ getmapxy(@welc_map$, @welc_x, @welc_y, 0);
+ } else {
+ // It's defined and you're in Candor, so: Warp back
+ if (@welc_x && @welc_y) {
+ warp @welc_map$, @welc_x, @welc_y;
+ @welc_map$="";
+ @welc_x=0;
+ @welc_y=0;
+ dispbottom l("%s: Thanks for helping.", "Nard");
+ end;
+ }
+ // There's no saved coordinates but you're in Candor.
+ // So warp you back to... Candor? I mean, what?
+ }
+
// Calculate
if ($@WELCOME_TIMER < gettimetick(2)) {
dispbottom l("There are no new players to welcome.");