One action per tick
This commit is contained in:
parent
0ba3b9e926
commit
598e3560c9
1 changed files with 4 additions and 2 deletions
6
bot.js
6
bot.js
|
@ -4,12 +4,13 @@ var botPurchasing = false;
|
|||
var botFightingRandomBoss = false;
|
||||
var botFightingGlobalBoss = false;
|
||||
var botBuySlimes = false;
|
||||
var botTickActivity = false;
|
||||
var botGlobalBossTimer;
|
||||
|
||||
function mainLoop() {
|
||||
//first, deal with pop-ups
|
||||
botTickActivity = false;
|
||||
|
||||
if($('#popup').is(':visible')) {
|
||||
// we check the title and respond accordingly
|
||||
var botPopupTitle = $('#popup p[name="title"]').text();
|
||||
switch(botPopupTitle) {
|
||||
case 'Raid report':
|
||||
|
@ -37,6 +38,7 @@ function mainLoop() {
|
|||
case 'Battle Report':
|
||||
case 'ACTIVITY PASSED!':
|
||||
case 'SCENARIO #1':
|
||||
case 'Lobby Closed':
|
||||
clickButton('CONTINUE');
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue