summaryrefslogtreecommitdiff
path: root/npc/000-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-01 20:45:37 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-01 20:45:37 -0300
commit77f418ccc63ea813488f96b0c28366abb5a9dbbd (patch)
treef7bbb487125e731c20ceadd05e02a593f2edf305 /npc/000-1
parentc2b002b6c7167455bcf1b8aedfebd74857bff990 (diff)
downloadserverdata-77f418ccc63ea813488f96b0c28366abb5a9dbbd.tar.gz
serverdata-77f418ccc63ea813488f96b0c28366abb5a9dbbd.tar.bz2
serverdata-77f418ccc63ea813488f96b0c28366abb5a9dbbd.tar.xz
serverdata-77f418ccc63ea813488f96b0c28366abb5a9dbbd.zip
This is for Crazyfefe: Improve Emergency Exit intelligence.r08.3_190301
Now when you are flushed out of the world, you'll end up in the closest town for you. Ships override location when you enter so it should be ok
Diffstat (limited to 'npc/000-1')
-rw-r--r--npc/000-1/exit.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt
index c21a7ee60..b1d738471 100644
--- a/npc/000-1/exit.txt
+++ b/npc/000-1/exit.txt
@@ -8,11 +8,26 @@
OnTouch:
OnTalk:
OnTalkNearby:
- if (getsavepoint(0) != "000-1") warp getsavepoint(0), getsavepoint(1), getsavepoint(2);
+ // Switch LOCATION$ and warp to nearest town's Soul Menhir
+ .@lx=array_find($@LOCAMASTER_LOC$, LOCATION$);
+ if (.@lx >= 0) {
+ warp $@LOCMASTER_MAP$[.@lx], $@LOCMASTER_X[.@lx], $@LOCMASTER_Y[.@lx];
+ end;
+ }
+
+ //if (getsavepoint(0) != "000-1") warp getsavepoint(0), getsavepoint(1), getsavepoint(2);
+ if (getsavepoint(0) != "000-1") warp "Save", 0, 0;
if (getsavepoint(0) != "000-1") end;
savepoint "002-1", 53, 38;
warp "002-1", 53, 38;
end;
+OnInit:
+ setarray $@LOCMASTER_LOC$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Nival"; // 018-5 Lilit 024-1 Frostia
+ setarray $@LOCMASTER_MAP$, "005-1", "003-1", "009-1", "012-1", "017-1", "020-1";
+ setarray $@LOCMASTER_X, 34, 40, 26, 86, 119, 56;
+ setarray $@LOCMASTER_Y, 101, 49, 30, 69, 87, 62;
+ end;
+
}