From 43f7d0b3f1e93d2fee1bf9323a2e99d21a8fb70d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Dec 2021 11:14:27 -0300 Subject: Prepare the showdown for the East Room of Candor B3F. WIP. --- npc/006-7/ctrl.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 npc/006-7/ctrl.txt (limited to '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; +} + -- cgit v1.2.3-60-g2f50