Attemp to delay purchasing
This commit is contained in:
parent
78df9a2194
commit
1c1c51bdc3
1 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,7 @@ var SAFE_SOLDIER_COUNT = 200000;
|
|||
|
||||
var botLoop;
|
||||
var botGlobalBossTimer;
|
||||
var botPurchasingTimer;
|
||||
var botPaused = true;
|
||||
var botPurchasing = false;
|
||||
var botSleeping = false;
|
||||
|
@ -98,8 +99,10 @@ function mainLoop() {
|
|||
if(haveSlimes(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) {
|
||||
setBotToPurchasing();
|
||||
clickSelector('button[name="buyx-knight"]');
|
||||
botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT);
|
||||
clickButton("Buy");
|
||||
botPurchasingTimer = setInterval(function() {
|
||||
botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT);
|
||||
clickButton("Buy");
|
||||
}, 250);
|
||||
}
|
||||
|
||||
if(haveCreepers(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) {
|
||||
|
|
Loading…
Reference in a new issue