From 08c0eab7253fe48ce702e34f321c7621e7b9028f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 Jan 2021 16:45:25 -0300 Subject: Cleanup Master Boss at 03:23 restarting its position if no players are around. --- npc/018-2-2/main.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/018-2-2/main.txt') diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index b579bcfbd..dd97a79bd 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -56,6 +56,8 @@ OnExpertBossKilled: end; OnMasterBossKilled: + if (!playerattached()) + end; if ($HEROESHOLD_WINNER$ == "") { $HEROESHOLD_WINNER$=strcharinfo(0); channelmes("#world", $HEROESHOLD_WINNER$+" is the first player to finish HEROES HOLD Master Dungeon!! GG, dude! %%N"); @@ -69,6 +71,16 @@ OnMasterBossKilled: DungeonClear(); end; +// Some cleanup might be needed to don't raise difficulty infinitely +// So every day, at 03:23 AM, if no one is trying the quest, it'll get rid +// of Heroes Hold Master Dungeon +OnClock0323: + if (getareausers("018-2-5@Ma") == 0) { + killmonster("018-2-5@Ma", "#HH_CONTROLLER01::OnMasterBossKilled"); + monster "018-2-5@Ma", any(52,188), any(29,196), "Master Dungeon Boss", MonsterKing, 1, "#HH_CONTROLLER01::OnMasterBossKilled"; + } + end; + // Everytime loop OnPlayerCycle: -- cgit v1.2.3-70-g09d2