summaryrefslogtreecommitdiff
path: root/npc/006-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-25 11:14:27 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-25 11:14:27 -0300
commit43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d (patch)
tree6c70b20225edff3bf7bcd6df037c179cdce11b9e /npc/006-7
parent7232c306bbc7d88d78d57eff66990f58fa294fbe (diff)
downloadserverdata-43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d.tar.gz
serverdata-43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d.tar.bz2
serverdata-43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d.tar.xz
serverdata-43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d.zip
Prepare the showdown for the East Room of Candor B3F. WIP.
Diffstat (limited to 'npc/006-7')
-rw-r--r--npc/006-7/_import.txt1
-rw-r--r--npc/006-7/ctrl.txt51
2 files changed, 52 insertions, 0 deletions
diff --git a/npc/006-7/_import.txt b/npc/006-7/_import.txt
index 11f029671..7dc8dace0 100644
--- a/npc/006-7/_import.txt
+++ b/npc/006-7/_import.txt
@@ -1,2 +1,3 @@
// Map 006-7: Existential Frontier
// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/006-7/ctrl.txt",
diff --git a/npc/006-7/ctrl.txt b/npc/006-7/ctrl.txt
new file mode 100644
index 000000000..da46197aa
--- /dev/null
+++ b/npc/006-7/ctrl.txt
@@ -0,0 +1,51 @@
+// TMW2 Script
+// Author:
+// Jesusalva
+
+006-7,44,50,0 script #OutOf0067 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ if (!$@ICICLE_CHALLENGE)
+ warp "006-6", 40, 36;
+ end;
+}
+
+006-7,44,50,0 script Ice Lord NPC_YETIFLY,{
+ if (.ticks > gettimetick(2)) end;
+ mesn;
+ mesq l("With Magic and Blades, The Icicle shall break. Do you undertake the challenge?");
+ mesc l("Advised: 6+ players"), 1;
+ mesc l("Advised: 1+ mage, 1+ tanker"), 1;
+ mesc l("Time Limit: 90 minutes"), 1;
+ next;
+ if (askyesno() == ASK_NO) { closeclientdialog; close; }
+
+ .ticks = gettimetick(2) + 5400; // 90 minutes
+
+ disablenpc .name$;
+ initnpctimer;
+ closeclientdialog;
+ close;
+
+// Heart
+OnTimer5000:
+ if (.ticks < gettimetick(2) || !mobcount("006-7", "all")) {
+ killmonsterall("006-7");
+ enablenpc .name$;
+ .ticks = gettimetick(2);
+ .beats = 0;
+ stopnpctimer;
+ end;
+ }
+ .beats += 1;
+ initnpctimer;
+ end;
+
+OnInit:
+ .distance = 4;
+ .ticks = gettimetick(2);
+ .beats = 0;
+ end;
+}
+