Вы находитесь на странице: 1из 7

// [BITSLER BOT V1.

3] by thizk
//
// changelog v1.3:
// - add doble your bet on lose [checkbox]
// - fix errors on betting
//
// changelog v1.2:
// - seprate stop profit - stake
//
// changelog v1.1:
// - add option "restart bet on stake"
// - fix stake and profit calculation
//
// changelog v1.0:
// - start or stop button
// - chance % change
// - hi or lo betting
// - zigzag betting
// - profit or stake limitation
// - user interface
// - auto change seeds
// - increase bet on lose
if ($('#aside-container').is(":visible") != false) {
$('#close-chat').trigger('click');
}

$("#column-right").append('\
<div style="margin-top:5px; padding-bottom:5px;
width:327.5px;background-color: #2e323b;color:whitesmoke;font-
family:\'Open Sans\',\'Helvetica Neue\',Helvetica,Arial,sans-serif;">\
<table width="100%" border="0" cellspacing="0"
cellpadding="5">\
<div style="text-align: center; padding: 10px 8px 5px 8px;
width:327.5px; font-weight: bold; border-bottom: solid #181a1e;">
BITSLER BOT v1.3</div>\
<div style="text-align: center; padding: 10px 8px 5px 8px;
width:327.5px; border-bottom: solid #181a1e;"><input
style="padding:5px; background-color:#101215;width:97%;font-
size:14px;border:0;color:white; margin:3px 0;text-
transform:uppercase;" type="text" id="_status"
readonly="true"></div>\
<tbody>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center; font-size:11px;">CHANCE</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_chance" value="49.1"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">INCREASE ON LOST [%]</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_onlost" value="0"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">DOUBLE BET ON LOST </td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="checkbox" id="_double"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center; font-size:11px;">BET MODE</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_mode" placeholder="h | l | z"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">BET AMOUNT</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_bet" value="0.00000001"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">PROFIT</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_profit" value="0.00001024"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">STAKE</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="text" id="_stake" value="0.00001024"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">STOP ON STAKE </td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="checkbox" id="_stopstake"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">STOP ON PROFIT </td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="checkbox" id="_stopprofit"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">RESTART BET ON STAKE</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="checkbox" id="_restart"></td>\
</tr>\
<tr>\
<td style="padding:6px;color:whitesmoke;text-align:
center;font-size:11px;">AUTO CHANGE SEED</td>\
<td style="width:200px;"><input style="padding:5px;
background-color:#101215;width:97%;border:0;color:white;
margin:3px 0;" type="checkbox" id="_auto"></td>\
</tr>\
<tr>\
<td></td><td><button onclick="startDice();return false;"
id="_start" style="width:97%;background-color: #101215;border:
none; color: white; padding: 7px 15px; text-align: center; text-
decoration: none; display: inline-block; font-size: 16px;"> START
</button></td>\
</tr>\
</tbody>\
</table>\
</div>');

var _bet, _chance, _onlost, _mode, _auto, _stopprofit, _stopstake,


_start = false
, _stake, _profit, _betting, _task, _seeds, _restart, _double,
_first,_betspeed = 1000;

function statusUpdate(message) {
$('#_status').val(message);
}

function startDice() {
_mode = document.getElementById('_mode').value;
_bet = parseFloat(document.getElementById('_bet').value);
_profit = parseFloat(document.getElementById('_profit').value);
_stake = parseFloat(document.getElementById('_stake').value);
_stake = -_stake;
_chance =
parseFloat(document.getElementById('_chance').value);
_onlost = parseFloat(document.getElementById('_onlost').value);
_stopprofit = document.getElementById('_stopprofit').checked;
_stopstake = document.getElementById('_stopstake').checked;
_double = document.getElementById('_double').checked;
_auto = document.getElementById('_auto').checked;
_restart = document.getElementById('_restart').checked;
_betting = 0;
_first = true;
statusUpdate('');

if (_mode != 'h' && _mode != 'l' && _mode != 'z') {


statusUpdate("Bet Mode incorrect!");
return;
}

_start = !_start;
if (_start != true) {
$('#_start').text("START");
_betting = 0;
clearInterval(_task);
clearInterval(_seeds);
return;
} else {
$('#_start').text("STOP");
}

if ($("#updated_condition").text().indexOf('>') !== -1 && _mode ==


'l') {
$("#updated_condition").trigger('click');
} else if ($("#updated_condition").text().indexOf('<') !== -1 &&
_mode == 'h') {
$("#updated_condition").trigger('click');
}

//
$('#amount').val(_bet.toFixed(8));
//
$("#editable-chance").trigger('click');
$("#editable-chance-field").val(_chance);
$("#editable-chance-field").trigger('focusout');

if (_auto) {
// CHANGE
change_seeds();

// SET TASK
_seeds = setInterval(function() {
change_seeds();
statusUpdate("CHANGE SEED TASK = " + _seeds.toString());
}, Math.round(Math.random() * (600000 - 300000) + 300000));
}
_betting = _bet;
//
$('#btn-bet-dice').trigger('click');

_first = false;
}

function increaseOnLost(bet, percent) {


return parseFloat(bet) + ((parseFloat(bet) * percent) / 100);
}

function doubleOnLost(bet) {
return (bet * 2).toFixed(8);
}

var _Handle = function() {


clearInterval(_task);

var bet = 0 , x, balance;


if (_start) {
balance = parseFloat(document.getElementById('balances-
lg').innerText);
if (balance <= 0 || parseFloat($('#amount').val()) > balance) {
startDice();
return;
}
if (_first != true) {
x = ($('#history-my-bets-dice tr td:last-child span')
[0].innerText.indexOf('+') != 0) ? false : true;
_betting = parseFloat(_betting) + parseFloat($('#history-my-
bets-dice tr td:last-child span')[0].innerText);

if (!x) {
if (_onlost > 0 && !_double) {
bet = increaseOnLost($('#amount').val(), _onlost);
$('#amount').val(bet.toFixed(8));
} else if (_onlost <= 0 && _double) {
var current = $('#amount').val();
bet = doubleOnLost(current);
$('#amount').val(bet);
}
} else {
$('#amount').val(_bet.toFixed(8));
}

if (_stopprofit) {
if (_betting >= _profit) {
startDice();
statusUpdate("PROFIT REACHED!");
return;
}
}

if (_stopstake) {
if (_betting <= _stake) {
startDice();
statusUpdate("STAKE REACHED!");
return;
}
} else {
if (_betting <= _stake) {
if (_restart) {
clearInterval(_task);
_betting = 0;
$('#amount').val(_bet.toFixed(8));
statusUpdate("STAKE REACHED, RESTARTING!");
} else {
startDice();
statusUpdate("STAKE REACHED!");
return;
}
}
}
}

_task = setInterval(function(e) {
if (!_start) {
clearInterval(_task);
clearInterval(_seeds);
return;
}

if (_mode == 'z') {
$("#updated_condition").trigger('click');
}

$('#btn-bet-dice').trigger('click');
}, _betspeed)
}
}
//
var timer;
$('#history-my-bets-dice').unbind();
$('#history-my-bets-dice').bind("DOMSubtreeModified",
function(event) {
if (timer) clearTimeout(timer);
timer = setTimeout( _Handle, 100);
});

Вам также может понравиться