summaryrefslogtreecommitdiff
path: root/npc/000-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
commita7c45a192268da2601cef47a4cdba987ae2327ca (patch)
treec5fb5b97db109fe7106496dd96498c475881046b /npc/000-1
downloadserverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/000-1')
-rw-r--r--npc/000-1/_import.txt3
-rw-r--r--npc/000-1/exit.txt32
2 files changed, 35 insertions, 0 deletions
diff --git a/npc/000-1/_import.txt b/npc/000-1/_import.txt
new file mode 100644
index 0000000..ec2c18b
--- /dev/null
+++ b/npc/000-1/_import.txt
@@ -0,0 +1,3 @@
+// Map 000-1: Jesusalva's Trap
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/000-1/exit.txt",
diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt
new file mode 100644
index 0000000..aed9a8c
--- /dev/null
+++ b/npc/000-1/exit.txt
@@ -0,0 +1,32 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// Special Soul Menhir which only allows leaving the map.
+
+000-1,22,22,0 script Emergency Exit NPC_SOUL_CURSED,2,2,{
+OnTouch:
+OnTalk:
+OnTalkNearby:
+ // At any time, if you can't leave Nard ship, you must go to nard ship
+ if (!getq(General_Narrator) && getq(ShipQuests_Julia) < 3) {
+ warp "002-1@Candor", 53, 38;
+ end;
+ }
+
+ // Switch LOCATION$ and warp to nearest town's Soul Menhir
+ .@lx=array_find($@LOCMASTER_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") teleporthome();
+ if (getsavepoint(0) != "000-1") end;
+ //savepoint "002-1", 53, 38;
+ warp "002-1", 53, 38;
+ end;
+
+}
+