Last active
January 10, 2024 06:06
-
-
Save alufers/1ba076e2de2185fe3010 to your computer and use it in GitHub Desktop.
Hero zero bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doTrenning(id) { | |
$('.btnClose').click() | |
$('#menu-training').click(); | |
$('#trainingStatButton-' + id).click(); | |
$('#btnTrainStart').click(); | |
setTimeout(function () { | |
$('.btnClose').click(); | |
}, 5 * 60 * 1000 + 20000) | |
setTimeout(function () { | |
doTrenning(getType()); | |
}, 5 * 60 * 1000 + 40000) | |
} | |
function random(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function getType() { | |
var type = $('.bot-type').val(); | |
if (type == 'rnd') { | |
return random(1, 4); | |
} | |
return type; | |
} | |
function installBot() { | |
var content = 'Typ:<select class="bot-type"><option value="rnd" selected=selected>Losowo</option><option value="1">Kondycja</option><option value="2">Siła</option><option value="3">Inteligencja</option><option value="4">Intuicja</option></select><br><button class="bot-start" style="background: #3232dd;" onclick="doTrenning(getType());">Rób trenning</button>'; | |
$('body').append('<div class="bot-config" style="z-index: 90000; background: white; position: fixed; left: 30px; top: 30px; min-height: 100px; min-width: 100px;"><h1 style="color: black;">Bot na trenningi by alufers</h1>' + content + '</div>'); | |
} | |
installBot(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pls! how we us that codes?
just give us userscript or extension