I'm not programmer and I'll appreciate if you could help me in this field I have this script which clicks on button at specific amount of time but I need it to click on button on random time. I know that maybe I gotta use gotRandomize function or something like that but as I said I'm not programmer so I don't know how to do that . I'll appreciate if anyone could edit this script and add the random click instead of specific time click
tnx
var rolls_played = 0;
var skip = 1;
var no_of_loss = 0 ;
var counter_list = [];
var limit = 5;
var uppper = limit + 10;
var balance_one = document.getElementById("balance2").innerHTML.substr(0, 10);
var bet_amount_list = [0.00001000, 0.00001000, 0.00001000, 0.00002000, 0.00002000, 0.00004000, 0.00004000, 0.00006000, 0.00008000, 0.00010000];
document.getElementById("double_your_btc_stake").value = 0.00000001;
document.getElementById("double_your_btc_payout_multiplier").value = 4 ;
function client_seed() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 128; i++){
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
document.getElementById("next_client_seed").value = text;
}
function Random_integer(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function Bet() {
document.getElementById('double_your_btc_bet_lo_button').click();
}
function play() {
if (document.getElementById('double_your_btc_bet_hi_button').disabled === false) {
won = document.getElementById('double_your_btc_bet_win').innerHTML;
if (won.match(/(\d+\.\d+)/) !== null) {
counter_list.push(1);
no_of_loss = 0 ;
document.getElementById("double_your_btc_stake").value = 0.00000001;
}
lost = document.getElementById('double_your_btc_bet_lose').innerHTML;
if (lost.match(/(\d+\.\d+)/) !== null) {
counter_list.push(0);
no_of_loss += 1 ;
console.log(no_of_loss);
if (no_of_loss<limit){
document.getElementById("double_your_btc_stake").value = 0.00000001;
}
else if (no_of_loss>=limit && no_of_loss<uppper){
document.getElementById("double_your_btc_stake").value = bet_amount_list[no_of_loss-limit];
}
else {
document.getElementById("double_your_btc_stake").value = 0.00000001;
no_of_loss = 0 ;
}
}
client_seed();
Bet();
balance_two = document.getElementById("balance2").innerHTML.substr(0, 10);
profit = balance_two - balance_one ;
if (profit <= -0.00040000 || profit>=0.00030000){
clearInterval(auto_bet);
console.log("Stop");
console.log(counter_list.toString());
}
}
}
var auto_bet = setInterval(play, 700);
Aucun commentaire:
Enregistrer un commentaire