summaryrefslogtreecommitdiff
path: root/npc/018-2-2
diff options
context:
space:
mode:
Diffstat (limited to 'npc/018-2-2')
-rw-r--r--npc/018-2-2/_import.txt1
-rw-r--r--npc/018-2-2/main.txt25
2 files changed, 26 insertions, 0 deletions
diff --git a/npc/018-2-2/_import.txt b/npc/018-2-2/_import.txt
index f47185ee5..83e89e8b6 100644
--- a/npc/018-2-2/_import.txt
+++ b/npc/018-2-2/_import.txt
@@ -1,2 +1,3 @@
// Map 018-2-2: Heroes Hold - Main Dungeon
// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/018-2-2/main.txt",
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt
new file mode 100644
index 000000000..05d73e89d
--- /dev/null
+++ b/npc/018-2-2/main.txt
@@ -0,0 +1,25 @@
+// TMW2/LoF scripts.
+// Authors:
+// TMW-LoF Team
+// Jesusalva
+// Description:
+// Controls the four first levels from Heroes Hold
+
+018-2-2,0,0,0 script #HH_CONTROLLER01 NPC_HIDDEN,{
+ end;
+
+OnPlayerCycle:
+ @HH_TIMER+=1;
+ // 20 minutes have passed. This should be 40 minutes, but the HH is not finished yet
+ if (@HH_TIMER >= 2400) {
+ warp "018-2-1", 0, 0;
+ dispbottom l("You were rescued by DUSTMAN.");
+ end;
+ }
+ // TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter)
+
+ // Continue the execution
+ addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
+ end;
+}
+