function for buying max slimes

This commit is contained in:
Andrew Tomaka 2015-04-07 15:44:58 -04:00
parent 3ab60a35f7
commit abf1b68197

10
bot.js
View file

@ -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);
}