1
0
Fork 0

hack in dropping maps; causes error but works

This commit is contained in:
Andrew Tomaka 2016-05-25 14:18:51 -04:00
parent 2a3063a1f6
commit 8f7883b8f4
1 changed files with 14 additions and 3 deletions

View File

@ -8,6 +8,7 @@ var botGlobalBossTimer;
var botPurchasingTimer;
var botPaused = true;
var botPurchasing = false;
var botDropping = false;
var botSleeping = false;
var botRaiding = false;
var botFightingRandomBoss = false;
@ -40,7 +41,14 @@ function mainLoop() {
botLastRandom = botTimestamp();
break;
case 'Are you sure?':
clickButton('Activate Item');
if(botDropping) {
clickButton('Drop Item');
setTimeout(function() {
botDropping = false;
}, 2000);
} else {
clickButton('Activate Item');
}
break;
case 'ARE YOU SURE?':
case 'CONFIRM PURCHASE':
@ -181,8 +189,11 @@ function activateBuffs() {
}
}
} else {
var itemButton = itemHolder.find('button:contains("Drop")');
itemButton.get(0).click()
if(!botDropping) {
var itemButton = itemHolder.find('button:contains("Drop")');
itemButton.get(0).click();
botDropping = true;
}
}
});
}