diff options
-rw-r--r-- | npc/018-2-2/main.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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: |