diff --git a/bot.js b/bot.js index ceb10ea..08b52c2 100644 --- a/bot.js +++ b/bot.js @@ -8,6 +8,7 @@ var botFightingGlobalBoss = false; var botBuySlimes = false; var botFightGlobal = true; var botRaidTarget = null; +var botLastRandom; function mainLoop() { if($('#popup').is(':visible')) { @@ -20,6 +21,7 @@ function mainLoop() { break; case 'SUMMON BOSS': clickButton('Summon Boss'); + botLastRandom = botTimestamp(); break; case 'Are you sure?': clickButton('Activate Item'); @@ -63,6 +65,9 @@ function mainLoop() { } else if(randomBossRefreshing() === false && botFightingRandomBoss === false) { clickSelector('#randomBossPortal a'); botFightingRandomBoss = true; + } else if(botTimestamp() > botLastRandom + 180) { + clickSelector('#randomBossPortal a'); + botFightingRandomBoss = true; } //GLOBAL BOSS