From abf1b6819727d43d32a166a8be0bcdca200a54d8 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 7 Apr 2015 15:44:58 -0400 Subject: [PATCH] function for buying max slimes --- bot.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot.js b/bot.js index 4dca0e4..9be7b40 100644 --- a/bot.js +++ b/bot.js @@ -39,3 +39,13 @@ function botRaid(username) { $('input[name="raid_user"]').val(username); $('button:contains("Raid!")').get(0).click(); } + +function buySlimes() { + var slimeTimer = setInterval(function() { + $('button[name="buymax-knight"]').get(0).click(); + setTimeout(function() { + $('button:contains("Yes")').get(0).click(); + }, 500); + }, 60000); + activeTimers.push(slimeTimer); +}