diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-10-13 18:19:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-10-13 18:19:06 -0300 |
commit | c360713b7adbbcb68c513a0fdbfe87e0c2bbc4df (patch) | |
tree | a29e054538fc739a867b1135de8c4b0d84ab7098 /npc/026-7 | |
parent | 6ce40295dc78d2422c5e318ec99c98ae75a464cc (diff) | |
download | serverdata-c360713b7adbbcb68c513a0fdbfe87e0c2bbc4df.tar.gz serverdata-c360713b7adbbcb68c513a0fdbfe87e0c2bbc4df.tar.bz2 serverdata-c360713b7adbbcb68c513a0fdbfe87e0c2bbc4df.tar.xz serverdata-c360713b7adbbcb68c513a0fdbfe87e0c2bbc4df.zip |
MK Challenge can still be done, but move the victory core to his rightful place.
Diffstat (limited to 'npc/026-7')
-rw-r--r-- | npc/026-7/boss.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt index 4f282695b..0f8b97119 100644 --- a/npc/026-7/boss.txt +++ b/npc/026-7/boss.txt @@ -35,7 +35,31 @@ function _moveNpc { } // _moveNpc // Controls the Event +// TODO: Autostart OnBegin: + $@MK_CHALLENGE=true; + // Initial assortment of monsters + siege_cast("026-7", .name$, 15, TP_TULIM|TP_HURNS|TP_NIVAL); + // Spawn the boss himself + .MK=monster("026-7", 39, 34, "The Monster King", MonsterKing, 1, .name$+"::OnVictory"); + immortal(.MK); // Immortal until conditions are met + initnpctimer; + end; + +// Fail-safe Mechanism (will never happen) +OnTimer60000: + consolebug("Warning! final fail-safe mechanism triggered to Monster King."); + initnpctimer; + end; + +// Run every 10 seconds +OnTimer25000: +OnTimer15000: + consolewarn("Warning, fail-safe mechanism triggered to Monster King."); +OnTimer10000: + // TODO: Heal fully if in immortal mode, fix HP when immortality is lost + // TODO: (Also heal if no players are around) + initnpctimer: end; // Monster King was defeated - game won |