summaryrefslogtreecommitdiff
path: root/npc/023-3
diff options
context:
space:
mode:
Diffstat (limited to 'npc/023-3')
-rw-r--r--npc/023-3/_import.txt1
-rw-r--r--npc/023-3/logic.txt69
2 files changed, 70 insertions, 0 deletions
diff --git a/npc/023-3/_import.txt b/npc/023-3/_import.txt
index a9e60c143..24d3ec798 100644
--- a/npc/023-3/_import.txt
+++ b/npc/023-3/_import.txt
@@ -1,2 +1,3 @@
// Map 023-3: Ice Caves
// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/023-3/logic.txt",
diff --git a/npc/023-3/logic.txt b/npc/023-3/logic.txt
new file mode 100644
index 000000000..623b573b0
--- /dev/null
+++ b/npc/023-3/logic.txt
@@ -0,0 +1,69 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// 023-3 Abandoned Ice Caves Configuration File
+
+023-3 mapflag zone MMO
+
+023-3,63,220,0 script #Exit0233 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@q=getq(General_Narrator);
+ .@q2=getq2(General_Narrator);
+ // Cheater Detected
+ if (.@q < 13) {
+ warp "Save", 0, 0;
+ percentheal -100, -100;
+ return false;
+ }
+
+ mesc l("Return to Frostia's Castle?");
+ if (askyesno() == ASK_YES) {
+ .@mapn$="024-16";
+ warp .@mapn$, 30, 26;
+ }
+ closeclientdialog;
+ close;
+}
+
+023-3,48,22,0 script #Finish0233 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@q=getq(General_Narrator);
+ .@q2=getq2(General_Narrator);
+ // Cheater Detected
+ if (.@q < 13) {
+ warp "Save", 0, 0;
+ percentheal -100, -100;
+ return false;
+ }
+
+ .@mapn$="001-7";
+ warp .@mapn$, 91, 90;
+ end;
+}
+
+001-7,91,89,0 script #Init0233 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@q=getq(General_Narrator);
+ .@q2=getq2(General_Narrator);
+ // Cheater Detected
+ if (.@q < 13) {
+ warp "Save", 0, 0;
+ percentheal -100, -100;
+ return false;
+ }
+ if (.@q == 13) {
+ dispbottom lg("I'm not a coward! I must press forward!");
+ end;
+ }
+ .@mapn$="023-3";
+ warp .@mapn$, 48, 23;
+ end;
+}
+