|
@@ -22,6 +22,11 @@ function simulateMouseClick(el){
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+script_1710385880.randomInteger = function(min, max){
|
|
|
|
+ let rand = min + Math.random() * (max + 1 - min);
|
|
|
|
+ return Math.floor(rand);
|
|
|
|
+}
|
|
|
|
+
|
|
script_1710385880.started = function(){
|
|
script_1710385880.started = function(){
|
|
script_1710385880.working = true;
|
|
script_1710385880.working = true;
|
|
script_1710385880.state = 1;
|
|
script_1710385880.state = 1;
|
|
@@ -78,23 +83,23 @@ script_1710385880.tick_state = function(){
|
|
// set bet amount 1 satoshi = 0.00000001
|
|
// set bet amount 1 satoshi = 0.00000001
|
|
simulateMouseClick( qi('double_your_btc_min') );
|
|
simulateMouseClick( qi('double_your_btc_min') );
|
|
script_1710385880.state = 3;
|
|
script_1710385880.state = 3;
|
|
- script_1710385880.timer_time = 100;
|
|
|
|
|
|
+ script_1710385880.timer_time = 300;
|
|
|
|
|
|
}else if(script_1710385880.state === 2){
|
|
}else if(script_1710385880.state === 2){
|
|
// double bet amount
|
|
// double bet amount
|
|
simulateMouseClick( qi('double_your_btc_2x') );
|
|
simulateMouseClick( qi('double_your_btc_2x') );
|
|
script_1710385880.state = 3;
|
|
script_1710385880.state = 3;
|
|
- script_1710385880.timer_time = 100;
|
|
|
|
|
|
+ script_1710385880.timer_time = 300;
|
|
|
|
|
|
}else if(script_1710385880.state === 3){
|
|
}else if(script_1710385880.state === 3){
|
|
// click bet lo
|
|
// click bet lo
|
|
simulateMouseClick(bet_btn);
|
|
simulateMouseClick(bet_btn);
|
|
script_1710385880.state = 4;
|
|
script_1710385880.state = 4;
|
|
- script_1710385880.timer_time = 1000; // wait 1 sec or more time
|
|
|
|
|
|
+ script_1710385880.timer_time = script_1710385880.randomInteger(1000, 3000); // wait 1-3 sec
|
|
|
|
|
|
}else if(script_1710385880.state === 4){
|
|
}else if(script_1710385880.state === 4){
|
|
// wait for bet result - check is result exists and maybe wait more
|
|
// wait for bet result - check is result exists and maybe wait more
|
|
- script_1710385880.timer_time = 200;
|
|
|
|
|
|
+ script_1710385880.timer_time = 300;
|
|
script_1710385880.maybe_result();
|
|
script_1710385880.maybe_result();
|
|
}
|
|
}
|
|
if(script_1710385880.state !== 0){ script_1710385880.timerId = setTimeout(script_1710385880.tick_state, script_1710385880.timer_time); }
|
|
if(script_1710385880.state !== 0){ script_1710385880.timerId = setTimeout(script_1710385880.tick_state, script_1710385880.timer_time); }
|