diff options
Diffstat (limited to 'npc/006-7')
-rw-r--r-- | npc/006-7/_import.txt | 1 | ||||
-rw-r--r-- | npc/006-7/ctrl.txt | 51 |
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; +} + |