summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 22:09:16 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 22:09:16 -0300
commitd56dd53791a0f0b8d6c5fb284ef44a770525f27a (patch)
treec52102a1d0d9a0952c18e04af2a5f4779cf3fe3f
parent0f1499a322ee3708b3b5c80562e92d32f4f1a5fe (diff)
downloadserverdata-d56dd53791a0f0b8d6c5fb284ef44a770525f27a.tar.gz
serverdata-d56dd53791a0f0b8d6c5fb284ef44a770525f27a.tar.bz2
serverdata-d56dd53791a0f0b8d6c5fb284ef44a770525f27a.tar.xz
serverdata-d56dd53791a0f0b8d6c5fb284ef44a770525f27a.zip
Add the puzzles controller to Sagratha's Cave.
It also comes with a bonus chest/mimic on a "trap" room
-rw-r--r--npc/015-8/_import.txt1
-rw-r--r--npc/015-8/puzzle.txt39
2 files changed, 40 insertions, 0 deletions
diff --git a/npc/015-8/_import.txt b/npc/015-8/_import.txt
index b2d06836b..0258f7cbf 100644
--- a/npc/015-8/_import.txt
+++ b/npc/015-8/_import.txt
@@ -2,4 +2,5 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/015-8/_mobs.txt",
"npc/015-8/config.txt",
+"npc/015-8/puzzle.txt",
"npc/015-8/sealedshrine.txt",
diff --git a/npc/015-8/puzzle.txt b/npc/015-8/puzzle.txt
new file mode 100644
index 000000000..902fcc264
--- /dev/null
+++ b/npc/015-8/puzzle.txt
@@ -0,0 +1,39 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// PUZZLES and TRAPS submodule - Sagratha's Cave - 015-8
+// Uses setq3 - setq1 stage 3
+// NPC_FAKIR + NPC_STATUE_FAFA
+
+// Chasm at third seal
+015-8,120,158,0 script #SaggyPuzzleChasm NPC_HIDDEN,0,4,{
+ end;
+OnTouch:
+ npctalk3 l("A huge chasm you cannot cross.");
+ end;
+}
+
+015-8,124,158,0 script #SaggyPuzzleChasmSkip NPC_HIDDEN,0,4,{
+ end;
+OnTouch:
+ slide 119, 160;
+ end;
+}
+
+
+// Controls a chest/mimic on the trap room
+015-8,0,0,0 script #SaggyChestCtrl NPC_HIDDEN,{
+ end;
+
+OnDelay:
+ initnpctimer;
+ end;
+
+OnTimer80000:
+ stopnpctimer;
+OnInit:
+ monster "015-8", 119+rand2(-3, 3), 35+rand2(-3, 3), "Treasure Chest", any(BronzeChest,BronzeMimic), 1, "#SaggyChestCtrl::OnDelay";
+ end;
+}
+