Script
Script
console.clear();
(function() {
// Stop losses limit
var stopLossInput = prompt("Stop Loss Limit", '10');
function checkStopLimit(stopLossInput){
console.log("dangerCount:"+ dangerCount);
lastItems.each(function() {
console.log($(this).find("span.text-danger").text());
});
$('#history-my-bets-dice').bind("DOMNodeInserted",function(){
console.log("Item added");
checkStopLimit(stopLossInput);
});
alert("Do not sell this script, and do not remove the credit if reupload it.
Tiga asa yosa");
// Risk seviyeleri
// Kendi atadigi risk seviyeleri
var risk = prompt("How much risk you want to have? 1 - Low, 2 - Medium, 3 -
High, 4 - Auto Mode 5 - Super Power 6 - Switching Mode, 7 - Super Save (new), 8 -
Huge Profit", '1');
if (risk != "1" && risk != "2" && risk != "3" && risk != "4" && risk != "5" &&
risk != "6" && risk != "7" && risk != "8") {
alert("Invalid risk entered, aborting");
return false;
}
if (risk == "1") {
low();
} else if (risk == "2") {
medium();
} else if (risk == "3") {
high();
} else if (risk == "4") {
automode();
} else if (risk == "5") {
super_power();
} else if (risk == "6") {
switch_mode();
} else if (risk == "7") {
super_save();
} else {
huge_profit();
}
function medium() {
// Done
if (balance < 0.00001) {
var amount = document.getElementById("amount").value = "0.00000005";
var chance = $.trim($("#editable-chance-field").val("9.99%"));
var payout = document.getElementById('editable-payout').innerHTML =
"9.9099";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("12"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
}
// Done
else if (balance < 0.0001 && balance > 0.00001) {
var amount = document.getElementById("amount").value = "0.00000010";
var chance = $.trim($("#editable-chance-field").val("9.90%"));
var payout = document.getElementById('editable-payout').innerHTML =
"10.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("12"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
}
// Done
else if (balance < 0.001 && balance > 0.0001) {
var amount = document.getElementById("amount").value = "0.0000001";
var chance = $.trim($("#editable-chance-field").val("66%"));
var payout = document.getElementById('editable-payout').innerHTML =
"1.5000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("110"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
}
// Done
else if (balance < 0.01 && balance > 0.001) {
var final_amount = balance > 0.001 && balance <= 0.002 ? 1 : balance >
0.002 && balance <= 0.003 ? 2 : balance > 0.003 && balance <= 0.004 ? 3 : balance >
0.004 && balance <= 0.005 ? 4 : balance > 0.005 && balance <= 0.006 ? 5 : balance >
0.006 && balance <= 0.007 ? 6 : balance > 0.007 && balance <= 0.008 ? 7 : balance >
0.008 && balance <= 0.009 ? 8 : balance > 0.009 && balance <= 0.01 ? 9 : 0;
var amount = document.getElementById("amount").value = "0.000000" +
final_amount;
var chance = $.trim($("#editable-chance-field").val("4.95%"));
var payout = document.getElementById('editable-payout').innerHTML =
"20.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
}
// Done
else if (balance < 0.1 && balance > 0.01) {
var final_amount = balance > 0.01 && balance <= 0.02 ? 1 : balance >
0.02 && balance <= 0.03 ? 2 : balance > 0.03 && balance <= 0.04 ? 3 : balance >
0.04 && balance <= 0.05 ? 4 : balance > 0.05 && balance <= 0.06 ? 5 : balance >
0.06 && balance <= 0.07 ? 6 : balance > 0.07 && balance <= 0.08 ? 7 : balance >
0.08 && balance <= 0.09 ? 8 : balance > 0.09 && balance <= 0.1 ? 9 : 0;
var amount = document.getElementById("amount").value = "0.00000" +
final_amount;
var chance = $.trim($("#editable-chance-field").val("4.95%"));
var payout = document.getElementById('editable-payout').innerHTML =
"20.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stopAmount) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
} else if (balance >= 0.1 && balance <= 1) {
var final_amount = balance > 0.1 && balance <= 0.2 ? 1 : balance > 0.2
&& balance <= 0.3 ? 2 : balance > 0.3 && balance <= 0.4 ? 3 : balance > 0.4 &&
balance <= 0.5 ? 4 : balance > 0.5 && balance <= 0.6 ? 5 : balance > 0.6 && balance
<= 0.7 ? 6 : balance > 0.7 && balance <= 0.8 ? 7 : balance > 0.8 && balance <=
0.9 ? 8 : balance > 0.9 && balance <= 1 ? 9 : 2;
var amount = document.getElementById("amount").value = "0.0000" +
final_amount;
var chance = $.trim($("#editable-chance-field").val("4.95%"));
var payout = document.getElementById('editable-payout').innerHTML =
"20.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
var stopout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit < minus) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
} else if (balance >= 1) {
function huge_profit() {
var amount = document.getElementById("amount").value = "0.00001";
var chance = $.trim($("#editable-chance-field").val("3.33%"));
var payout = document.getElementById('editable-payout').innerHTML =
"29.7297";
// var increase = document.getElementById('pourc-bet-on-lose').value = "2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
}
function wait(ms) {
var start = new Date().getTime();
var end = start;
while (end < start + ms) {
end = new Date().getTime();
}
}
function jmp_up(void_function) {
alert("The program will wait now 50 seconds, after that page will refresh
and u can paste script again!");
wait(50000);
window.location.href.replace("http://bitsler.com", "http://bitsler.com");
}
function super_save() {
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance >= 0.001 && balance <= 0.01) {
var amount = document.getElementById("amount").value = "0.0000001";
var chance = $.trim($("#editable-chance-field").val("9%"));
var payout = document.getElementById('editable-payout').innerHTML =
"11.000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("11"));
// First click the updated condition
$('#updated_condition').click();
// Tick increase on win button
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance >= 0.01 && balance <= 0.1) {
var amount = document.getElementById("amount").value = "0.000001";
var chance = $.trim($("#editable-chance-field").val("9%"));
var payout = document.getElementById('editable-payout').innerHTML =
"11.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("11"));
// First click the updated condition
$('#updated_condition').click();
// Tick increase on win button
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance >= 0.1) {
var amount = document.getElementById("amount").value = "0.00001";
var chance = $.trim($("#editable-chance-field").val("9%"));
var payout = document.getElementById('editable-payout').innerHTML =
"11.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("11"));
// First click the updated condition
$('#updated_condition').click();
// Tick increase on win button
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
}
}
function high() {
if (balance < 0.00001) {
var amount = document.getElementById("amount").value = "0.0000001";
var chance = $.trim($("#editable-chance-field").val("9.90%"));
var payout = document.getElementById('editable-payout').innerHTML =
"10.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("12"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance < 0.0001 && balance > 0.00001) {
var amount = document.getElementById("amount").value = "0.00000025";
var chance = $.trim($("#editable-chance-field").val("15%"));
var payout = document.getElementById('editable-payout').innerHTML =
"6.6000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("30"));
// First click the updated condition
$('#updated_condition').click();
// Tick increase on win button
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance < 0.001 && balance > 0.0001) {
var amount = document.getElementById("amount").value = "0.00000005";
var chance = $.trim($("#editable-chance-field").val("7.41%"));
var payout = document.getElementById('editable-payout').innerHTML =
"13.3603";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("12"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance < 0.01 && balance > 0.001) {
var final_amount = balance > 0.001 && balance <= 0.002 ? 1 : balance >
0.002 && balance <= 0.003 ? 2 : balance > 0.003 && balance <= 0.004 ? 3 : balance >
0.004 && balance <= 0.005 ? 4 : balance > 0.005 && balance <= 0.006 ? 5 : balance >
0.006 && balance <= 0.007 ? 6 : balance > 0.007 && balance <= 0.008 ? 7 : balance >
0.008 && balance <= 0.009 ? 8 : balance > 0.009 && balance <= 0.01 ? 9 : 0;
final_amount = final_amount + 1;
var amount = document.getElementById("amount").value = "0.000000" +
final_amount;
var chance = $.trim($("#editable-chance-field").val("9.9%"));
var payout = document.getElementById('editable-payout').innerHTML =
"10.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("12"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance < 0.1 && balance > 0.01) {
var amount = document.getElementById("amount").value = "0.000003";
var chance = $.trim($("#editable-chance-field").val("0.99%"));
var payout = document.getElementById('editable-payout').innerHTML =
"100.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("1.3"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (balance > 0.1) {
var amount = document.getElementById("amount").value = "0.000015";
var chance = $.trim($("#editable-chance-field").val("5.58%"));
var payout = document.getElementById('editable-payout').innerHTML =
"17.7419";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("7.89"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
}
var stopout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit < minus) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
}
function low() {
function kill() {
var stopBot = $('#btn-bet-stop-pilot-dice').click();
var startBot = $('#btn-bet-start-pilot-dice').click();
var stopout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit < minus) {
alert("You got your profit, enjoy");
kill();
}
}, 1);
var timeout = setTimeout(function() {
var profit = $('#auto_stats_profit').html();
var profit = parseFloat(profit);
if (profit > stop) {
alert("You got your lose, try again:)");
kill();
}
}, 1);
}
function super_power() {
// Here is the new method published in version 1.4
// Currently working only for 0.1 - 1 BTC
// Makes about 1 BTC in 1 - 2 Minutes
// 10% risk
if (balance < 0.001) {
alert("Your balance is to low for super power, try other method!");
return false;
}
var super_risk = prompt("What's your super power risk?", "1 - Low (1.3%) 2
- Medium (2.5%) 3 - High (10%), 4 - Mega (15%)", '1');
if (super_risk == "1") {
// Super power risk is low
var amount = document.getElementById("amount").value = "0.0000125";
var chance = $.trim($("#editable-chance-field").val("44%"));
var payout = document.getElementById('editable-payout').innerHTML =
"2.2500";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("86"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (super_risk == "2") {
// Super power risk is medium
var amount = document.getElementById("amount").value = "0.0001";
var chance = $.trim($("#editable-chance-field").val("41.25%"));
var payout = document.getElementById('editable-payout').innerHTML =
"2.4000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("86"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (super_risk == "3") {
var amount = document.getElementById("amount").value = "0.001";
var chance = $.trim($("#editable-chance-field").val("41.25%"));
var payout = document.getElementById('editable-payout').innerHTML =
"2.4000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("86"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else if (super_risk == "4") {
var amount = document.getElementById("amount").value = "0.004";
var chance = $.trim($("#editable-chance-field").val("41.25%"));
var payout = document.getElementById('editable-payout').innerHTML =
"2.4000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("86"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
} else {
// Super power risk is mega
var amount = document.getElementById("amount").value = "0.004";
var chance = $.trim($("#editable-chance-field").val("41.25%"));
var payout = document.getElementById('editable-payout').innerHTML =
"2.4000";
// var increase = document.getElementById('pourc-bet-on-lose').value =
"2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("86"));
// First click the updated condition
$('#updated_condition').click();
// Wait 50 ms
wait(50);
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
}
}
function automode() {
// Here is the method published in version 1.2
var risk1 = prompt("What's your automode risk? 1 - Low, 2 - Medium, 3 -
High", '1');
if (risk1 != "1" && risk1 != "2" && risk1 != "3") {
alert("Invalid automode risk, aborting");
return false;
}
if (risk1 == "1") automode_low();
else if (risk1 == "2") automode_medium();
else automode_high();
function switch_mode() {
var method_1 = Math.random() * 5;
var method = Math.round(method_1);
var current = "";
switch (method) {
case 1:
current = "4.95%";
break;
case 2:
current = "5%";
break;
case 3:
current = "7.14%";
break;
case 4:
current = "5.58%";
break;
case 5:
current = "41.25%";
break;
default:
current = "5%";
break;
}
var amount = document.getElementById("amount").value = balance / 10000;
function automode_low() {
var amount = document.getElementById("amount").value = "0.00000001";
var chance = $.trim($("#editable-chance-field").val("49.5%"));
//var payout = document.getElementById('editable-payout').innerHTML =
"2.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value = "2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("100"));
// First click the updated condition
$('#updated_condition').click();
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
function automode_high() {
var amount = document.getElementById("amount").value = "0.00000001";
var chance = $.trim($("#editable-chance-field").val("49.5%"));
//var payout = document.getElementById('editable-payout').innerHTML =
"2.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value = "2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("300"));
// First click the updated condition
$('#updated_condition').click();
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
}
function automode_medium() {
var amount = document.getElementById("amount").value = "0.00000001";
var chance = $.trim($("#editable-chance-field").val("49.5%"));
//var payout = document.getElementById('editable-payout').innerHTML =
"2.0000";
// var increase = document.getElementById('pourc-bet-on-lose').value = "2";
// jQuery needed here:
var increase = $.trim($("#pourc-bet-on-lose").val("200"));
// First click the updated condition
$('#updated_condition').click();
$('#btn-bet-start-pilot-dice').click();
var stoprollButton = document.getElementById("btn-bet-stop-pilot-
dice").innerHTML = "Stop Bot";
var startrollButton = document.getElementById("btn-bet-start-pilot-
dice").innerHTML = "Start Bot";
function doubleamount() {
var attr = $(this).attr("rel");
var amount = parseFloat($("#amount" + attr).val());
amount = round_float(amount * 2, devise_decimal);
$("#amount" + attr).val(amount);
window['var_amount' + attr] = amount;
calculate_profit();
}
})();
function play() {
if (game_in_progress == true) {
$("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-
dice").button("reset");
return false;
}
game_in_progress = true;
if (autobet_mode == false) {
var amount = $("#amount").val();
var condition = $("#condition-input").val();
var game = $("#game-input").val();
} else {
var amount = auto_amount;
var condition = auto_condition;
var game = auto_game;
}
if (error == true) {
game_in_progress = false;
$("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-
dice").button("reset");
if (autobet_mode == true) {
if (number_bet_done >= 1) {
$("#modal-stop-autobet-numbers").html(number_bet_done);
$("#modal-stop-autobet-value").html(error_value);
$("#modal-stop-autobet-reason").modal("show");
} else {
showErrorNotification(error_title, error_info);
}
stop_pilot_mode();
} else {
showErrorNotification(error_title, error_info);
}
return;
}
$.ajax({
type: "POST",
url: server_front_name + "/api/bet",
data: {
access_token: access_token,
username: user_username,
type: "dice",
amount: amount,
condition: condition,
game: game,
devise: devise
},
success: function(text) {
var val = JSON.parse(text);
if (val.return.success == 'true') {
bet_nb_errors = 0;
$("#won-bet span").html(amount_return);
$("#won-bet span").removeClass("text-danger text-success");
if (amount_return >= 0) {
$("#won-bet span").addClass("text-success");
$("#won-bet span").html("+" +
number_format(round_float(amount_return, 8), 8));
} else {
$("#won-bet span").addClass("text-danger");
$("#won-bet
span").html(number_format(round_float(amount_return, 8), 8));
}
show_result_bet();
if (amount_return >= 0)
$(".balance-" + devise + "-html").addClass("result-bet-win");
else
$(".balance-" + devise + "-html").addClass("result-bet-lose");
if (amount_return >= 0)
setTimeout(function() {
$(".balance-" + devise + "-html").removeClass("result-bet-
win");
}, 350);
else
setTimeout(function() {
$(".balance-" + devise + "-html").removeClass("result-bet-
lose");
}, 350);
if (autobet_mode == false) {
setTimeout(function() {
$("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-
start-fast-dice").button("reset");
}, time_delay);
} else {
number_bet_done++;
if (unlimited_bet == false) {
number_rolls--;
$("#limit-rolls-input").val(number_rolls);
if (amount_return >= 0) {
auto_stats_won++;
} else {
auto_stats_lost++;
}
auto_stats_lucky = ((((parseInt(auto_stats_won) /
parseInt(number_bet_done)) * 100) / parseFloat(winning_chance)) * 100).toFixed(2);
auto_stats_wagered = parseFloat(auto_stats_wagered) +
parseFloat(amount);
auto_stats_profit = parseFloat(auto_stats_profit) +
parseFloat(amount_return);
update_stats_auto();
if (autobet_stop == false) {
setTimeout(function() {
play();
}, time_by_bet);
} else {
stop_pilot_mode();
}
} else {
stop_pilot_mode();
}
}
game_in_progress = false;
if (val.return.event == true) {
socket.emit("event", {});
}
} else {
game_in_progress = false;
if (val.return.type != "abort") {
if (autobet_mode == false) {
showErrorNotification(val.return.value, val.return.info);
$("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-
start-fast-dice").button("reset");
} else {
if (number_bet_done >= 1) {
$("#modal-stop-autobet-numbers").html(number_bet_done);
$("#modal-stop-autobet-value").html(val.return.value);
$("#modal-stop-autobet-reason").modal("show");
} else {
showErrorNotification(val.return.value,
val.return.info);
}
stop_pilot_mode();
}
} else {
if (bet_nb_errors >= 2) {
bet_nb_errors = 0;
if (autobet_mode == false) {
showErrorNotification(val.return.value,
val.return.info);
$("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-
start-fast-dice").button("reset");
} else {
if (number_bet_done >= 1) {
$("#modal-stop-autobet-
numbers").html(number_bet_done);
$("#modal-stop-autobet-
value").html(val.return.value);
$("#modal-stop-autobet-reason").modal("show");
} else {
showErrorNotification(val.return.value,
val.return.info);
}
stop_pilot_mode();
}
} else {
bet_nb_errors++;
setTimeout(function() {
play();
}, 1000);
}
}
},
error: function(xhr, ajaxOptions, thrownError) {
game_in_progress = false;
setTimeout(function() {
play();
}, 1000);
},
timeout: function(xhr, ajaxOptions, thrownError) {
game_in_progress = false;
setTimeout(function() {
play();
}, 1000);
},
abort: function(xhr, ajaxOptions, thrownError) {
game_in_progress = false;
setTimeout(function() {
play();
}, 1000);
}
});