diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-30 13:08:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-30 13:08:27 -0300 |
commit | 9503b7f457590f7a0f6947573c967b8b2f9836dc (patch) | |
tree | 9449ba964a6c91e24b18e11b3defd4c42f66babe /npc/commands | |
parent | 3e1bd3a2fdd45cd4a1c6de5f6976f644ad058c65 (diff) | |
download | serverdata-9503b7f457590f7a0f6947573c967b8b2f9836dc.tar.gz serverdata-9503b7f457590f7a0f6947573c967b8b2f9836dc.tar.bz2 serverdata-9503b7f457590f7a0f6947573c967b8b2f9836dc.tar.xz serverdata-9503b7f457590f7a0f6947573c967b8b2f9836dc.zip |
Command @welcome - fix the location upon return
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/welcome.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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. |