diff options
-rw-r--r-- | npc/functions/mkbot.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt index f396d823a..e1f7d01be 100644 --- a/npc/functions/mkbot.txt +++ b/npc/functions/mkbot.txt @@ -112,6 +112,19 @@ OnTimer90000: end; } + // Check if MK is hurt, and if so, respawn it in boss map (summon cleanup) + if (getunitdata($@MK, UDT_HP) < getunitdata($@MK, UDT_MAXHP)) { + unitwarp($@MK, "boss", 45, 45); + sleep(50); // No exp for hitters + unitkill($@MK); + sleep(50); // No exp for hitters + $@MK=monster("boss", 45, 45, "The Monster King", MonsterKing, 1, "Monster King::OnBourneAgain"); + // Monster King shall keep tending to his wounds in the keep for a cycle + initnpctimer; + end; + } + + // Select a random map. Never shows up at Candor and cities, nor indoors. Not all maps either. setarray .@m$, "boss", "boss", "001-1", "001-3", "001-4", "001-5", "001-6", "001-7", "001-10", "003-1", "003-1-3", "004-1", "004-2", "007-1", "009-1", "010-1", "010-1-1", "010-2", "011-1", |