summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-12 16:45:25 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-12 16:45:25 -0300
commit08c0eab7253fe48ce702e34f321c7621e7b9028f (patch)
tree4a5a2712e4df3666ac2601c1b1d1c342ae368229 /npc
parentd6faa89359feab5c069067823c37554ae89994b2 (diff)
downloadserverdata-08c0eab7253fe48ce702e34f321c7621e7b9028f.tar.gz
serverdata-08c0eab7253fe48ce702e34f321c7621e7b9028f.tar.bz2
serverdata-08c0eab7253fe48ce702e34f321c7621e7b9028f.tar.xz
serverdata-08c0eab7253fe48ce702e34f321c7621e7b9028f.zip
Cleanup Master Boss at 03:23 restarting its position if no players are around.
Diffstat (limited to 'npc')
-rw-r--r--npc/018-2-2/main.txt12
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: