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

View file

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