summaryrefslogtreecommitdiff
path: root/npc/021-3
diff options
context:
space:
mode:
Diffstat (limited to 'npc/021-3')
-rw-r--r--npc/021-3/_import.txt1
-rw-r--r--npc/021-3/doors.txt21
2 files changed, 22 insertions, 0 deletions
diff --git a/npc/021-3/_import.txt b/npc/021-3/_import.txt
index 64d770b9a..3544a2ae9 100644
--- a/npc/021-3/_import.txt
+++ b/npc/021-3/_import.txt
@@ -2,4 +2,5 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/021-3/_mobs.txt",
"npc/021-3/_warps.txt",
+"npc/021-3/doors.txt",
"npc/021-3/mapflags.txt",
diff --git a/npc/021-3/doors.txt b/npc/021-3/doors.txt
new file mode 100644
index 000000000..012b95104
--- /dev/null
+++ b/npc/021-3/doors.txt
@@ -0,0 +1,21 @@
+// TMW2 scripts.
+// Authors:
+// The Mana World Team
+// Jesusalva
+// Description:
+// Cave logic
+
+021-3,24,123,0 script #0213_Logic NPC_NO_SPRITE,1,0,{
+ if ($@CINDY_STATE > gettimetick(2) || $@CINDY_STATE == 0) goto L_Safe;
+ if ($@CINDY_STATE % 2 == 0) goto L_Blocked;
+ warp "021-4", 0, 0;
+ end;
+
+L_Blocked:
+ dispbottom l("This place is reeking blood. We better come again later.");
+ end;
+
+L_Safe:
+ dispbottom l("Are you crazy - the Yeti King could be there!");
+ end;
+}