hack in dropping maps; causes error but works
This commit is contained in:
parent
2a3063a1f6
commit
8f7883b8f4
1 changed files with 14 additions and 3 deletions
|
@ -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?':
|
||||
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 {
|
||||
if(!botDropping) {
|
||||
var itemButton = itemHolder.find('button:contains("Drop")');
|
||||
itemButton.get(0).click()
|
||||
itemButton.get(0).click();
|
||||
botDropping = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue