From 9503b7f457590f7a0f6947573c967b8b2f9836dc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Jan 2020 13:08:27 -0300 Subject: Command @welcome - fix the location upon return --- npc/commands/welcome.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/commands/welcome.txt') diff --git a/npc/commands/welcome.txt b/npc/commands/welcome.txt index bce0c58e9..00304472d 100644 --- a/npc/commands/welcome.txt +++ b/npc/commands/welcome.txt @@ -24,6 +24,7 @@ OnEffect: // Not in Candor: Resave your @welcome reversion snippet if (getmap() != "005-1") { getmapxy(@welc_map$, @welc_x, @welc_y, 0); + @welc_loc$=LOCATION$; } else { // It's defined and you're in Candor, so: Warp back if (@welc_x && @welc_y) { @@ -32,6 +33,8 @@ OnEffect: @welc_x=0; @welc_y=0; dispbottom l("%s: Thanks for helping.", "Nard"); + if (@welc_loc$ != "") + LOCATION$=@welc_loc$; end; } // There's no saved coordinates but you're in Candor. -- cgit v1.2.3-60-g2f50