Anda di halaman 1dari 13

//###############################################################

#######################################
//
// [BITSLER BOT V1.4.7] by thizk/Drwebtutorials
//
// changelog v1.4.7:
// - adapted to new insterface
// - add seleccionable strategies
// - remove low balance mode [don't work]
//
// changelog v1.4.6:
// - low balance settings bug fix
// - add new low balance setup under < 0.00001000
by shadowdoggie
//
// changelog v1.4.5:
// - remove bet speed [input] {prevent bugs on
betting}
// - add low balance mode [beta]
// - add draggable box
// - timer [control of betting time]
// - add interface draggeable
//
// changelog v1.4:
// - add restart on profit [checkbox]
// - add betting speed [input]
// - add change bet mode after 'x' number of loses
// - add win & lose counter
//
// 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
//
//###############################################################
#######################################
var _bet, _chance, _onlost, _mode, _auto, _stopprofit,
_stopstake, _start = false, _stake, _profit, _betting, _task,
_seeds, _restart, _restart2, _double, _first,_betspeed = 1000,
gamelose = 0, gamewin = 0, con = 0, _consecutive;

var strategies = [
{
name: "SELECT A STRATEGY",
bet: "0.00000000",
chance: 0,
perlose: 0
},
{
name:'{B:20|C:3%|LI:5%}',
bet: '0.00000020',
chance: 3,
perlose: 5
},
{
name:'{B:8|C:15%|LI:30%} LOW BALANCE',
bet: '0.00000008',
chance: 15,
perlose: 30
},
{
name:'{B:3|C:0.1%|LI:0%}',
bet: '0.00000003',
chance: 0.1,
perlose: 0
},
{
name:'{B:2|C:6.5%|LI:9.95%}',
bet: '0.00000002',
chance: 6.5,
perlose: 9.95
},
{
name:'{B:10|C:7.5%|LI:9.945%}',
bet: '0.00000010',
chance: 7.5,
perlose: 9.945
},
{
name:'{B:2|C:23.44%|LI:60%}',
bet: '0.00000002',
chance: 23.44,
perlose: 60
},
{
name:'{B:5|C:35%|LI:83%} LOW BALANCE',
bet: '0.00000005',
chance: 35,
perlose: 83
},
{
name:'{B:5|C:50.77%|LI:40%} LOW BALANCE',
bet: '0.00000005',
chance: 50.77,
perlose: 40
},
{
name:'{B:100|C:66%|LI:300%}',
bet: '0.00000100',
chance: 66,
perlose: 300
}
];

var style = `<style>


.boxDice {
margin-top:3px;
padding-bottom: 5px;
width: 327.5px;
background-color: #2e323b;
color: whitesmoke;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial,
sans-serif;
z-index: 999;
position:absolute;
top:0;
right:0;
}

.boxTitle {
text-align: center;
padding: 8px 8px 5px 8px;
font-weight: bold;
border-bottom: solid #181a1e;
}

.boxScon {
text-align: center;
padding: 10px 8px 5px 8px;
border-bottom: solid #181a1e;
}

.boxStatus {
padding: 5px 0;
background-color: #101215;
width: 100%;
font-size: 12.5px !important;
border: 0;
color: white;
text-transform: uppercase;
text-align: center;
}
.boxTDtitle {
padding: 3px;
color: whitesmoke;
text-align: center;
font-size: 11px;
}

.boxTDinput {
padding: 3px;
background-color: #101215;
width: 97%;
border: 0;
color: white !important;
margin: 2px 0;
}

.boxDS {
width: 200px;
}

.boxWinLose {
padding: 6px;
text-align: center;
font-size: 11px !important;
}

.boxWLinput{
padding:3px;
text-align: center;
background-color:#2e323b !important;
width:97%;
border:0;
margin:3px 0;
}
.boxWin{ color: greenyellow !important; }
.boxLose{ color: red !important; }
.boxBalance{ color: white !important; font-size: 9.5px !
important; }

.boxButton{
width:97%;
background-color: #101215;
border: none;
color: white;
padding: 7px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 13px;
}
.timerBetting{
float:right !important;
font-size: 10px !important;
color: yellow !important;
}
</style>`;
var html = `<div class="boxDice">
<table width="100%" border="0" cellspacing="0"
cellpadding="5">
<div class="boxTitle" id="isDynamic">BITSLER DICE v1.4.7
<span id="timerBetting"
class="timerBetting">00:00</span>
</div>
<div class="boxScon">
<input class="boxStatus" type="text" id="_status"
readonly="true">
</div>
<tbody>
<tr>
<td class="boxTDtitle">STRATEGY</td>
<td class="boxDS">
<select class="boxTDinput" id="strategybox"
onchange="onChangeStrategy()"> </select>
</td>
</tr>
<tr>
<td class="boxTDtitle">CHANCE</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_chance" value="49.5"></td>
</tr>
<tr>
<td class="boxTDtitle">INCREASE ON LOST [%]</td>
<td class="boxDS"> <input class="boxTDinput"
type="text" id="_onlost" value="0"></td>
</tr>
<tr>
<td class="boxTDtitle">CHANGE BET MODE AFTER C/L</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_consecutive" value="0"></td>
</tr>
<tr>
<td class="boxTDtitle">BET MODE</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_mode" placeholder="h | l | z"></td>
</tr>
<tr>
<td class="boxTDtitle">BET AMOUNT</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_bet" value=""></td>
</tr>
<tr>
<td class="boxTDtitle">PROFIT</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_profit" value=""></td>
</tr>
<tr>
<td class="boxTDtitle">STAKE</td>
<td class="boxDS"><input class="boxTDinput"
type="text" id="_stake" value="0.00001024"></td>
</tr>
<tr>
<td class="boxTDtitle">DOUBLE BET ON LOST </td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_double"></td>
</tr>
<tr>
<td class="boxTDtitle">STOP ON STAKE </td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_stopstake"></td>
</tr>
<tr>
<td class="boxTDtitle">STOP ON PROFIT </td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_stopprofit"></td>
</tr>
<tr>
<td class="boxTDtitle">RESTART BET ON STAKE</td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_restart"></td>
</tr>
<tr>
<td class="boxTDtitle">RESTART BET ON PROFIT</td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_restart2"></td>
</tr>
<tr>
<td class="boxTDtitle">AUTO CHANGE SEED</td>
<td class="boxDS"><input class="boxTDinput"
type="checkbox" id="_auto"></td>
</tr>
<tr>
<td class="boxWinLose">
<input id="gamewin" class="boxWLinput boxWin"
type="text" readonly="true" value="0">
</td>
<td class="boxWinLose">
<input id="gamelose" class="boxWLinput boxLose"
type="text" readonly="true" value="0">
</td>
</tr>
<tr>
<td><input id="bl_update" class="boxWLinput
boxBalance" type="text" readonly="true" value="0"></td>
<td><button onclick="startDice();return false;"
id="_start" class="boxButton"> START </button></td>
</tr>
</tbody>
</table>
</div>`;

$('head').append(style);
$('body').append(html);
for(var s = 0; s < strategies.length; s++){
var option = document.createElement('option');
option.value = s;
option.innerHTML = strategies[s].name;
document.getElementById('strategybox').appendChild(option);
}

$('#_bet').val(bet_min.toFixed(devise_decimal));
$('#_profit').val(bet_max.toFixed(devise_decimal));

// DRAG BOX
var box_position, offsetBox = [0,0], isDrag = false, source,
dynamic;
source = document.getElementsByClassName('boxDice')[0];
dynamic = document.getElementById('isDynamic');

dynamic.addEventListener('mousedown', function(e) {
isDrag = true;
offsetBox = [
source.offsetLeft - e.clientX,
source.offsetTop - e.clientY
];

}, true);

document.addEventListener('mouseup', function() {
isDrag = false;
}, true);

document.addEventListener('mousemove', function(event) {
//event.preventDefault();
if (isDrag) {
box_position = {
x : event.clientX,
y : event.clientY
};

source.style.left = (box_position.x + offsetBox[0]) +


'px';
source.style.top = (box_position.y + offsetBox[1]) +
'px';
}
}, true);
//

// Timer
var timerTask, totalSeconds = 0, timerBox =
document.querySelector('#timerBetting');

function setTime() {
++totalSeconds;
timerBox.textContent = pad(parseInt(totalSeconds / 60)) + ':'
+ pad(totalSeconds % 60);
}

function pad(val) {
var valString = val + "";
if (valString.length < 2) {
return "0" + valString;
} else {
return valString;
}
}

function onChangeStrategy() {
var index = document.getElementById("strategybox").value;
var strategy = strategies[index];

if(parseFloat(strategy.bet) <= 0){


document.getElementById('_bet').value = strategy.bet;
document.getElementById('_chance').value =
strategy.chance;
document.getElementById('_onlost').value =
strategy.perlose;
return;
}
document.getElementById('_bet').value = strategy.bet;
document.getElementById('_chance').value = strategy.chance;
document.getElementById('_onlost').value = strategy.perlose;
}

function startDice() {
"use strict";
//
_mode = document.getElementById('_mode').value;

//
_betting = 0;
gamewin = 0;
gamelose= 0;
con = 0;
totalSeconds=0;

_first = true;

if (_mode !== 'h' && _mode !== 'l' && _mode !== 'z') {
updateIndex('#_status',"BET MODE INCORRECT USE [H - L -
Z]");
return;
}

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

updateIndex('#_status','');
if ($(".game__container .pie__content__input__show")
[0].innerText.indexOf('>') !== -1 && _mode === 'l') {
$(".game__container .pie__content__input__show")
[0].click();
} else if ($(".game__container .pie__content__input__show")
[0].innerText.indexOf('<') !== -1 && _mode === 'h') {
$(".game__container .pie__content__input__show")
[0].click();
}

_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;
_restart2 = document.getElementById('_restart2').checked;
_consecutive =
parseInt(document.getElementById('_consecutive').value);

betSetting(_bet.toFixed(devise_decimal), _chance);

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

// SET TASK
_seeds = setInterval(function() {
// CHANGE
change_seeds();

for (var it in $.cookie()) {

if(it !== 'sid'){


$.removeCookie(it);
console.log(it);
}
}
updateIndex('#_status',"CHANGE SEED TASK = " +
_seeds.toString());
}, Math.round(Math.random() * (600000 - 300000) +
300000));
}
_betting = _bet;

//
$('#btn-bet-dice').trigger('click');

// First Bet
_first = false;

// Timer
timerTask = setInterval(setTime, 1000);
}

function increaseOnLost(bet, percent) {


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

function doubleOnLost(bet) {
"use strict";
return (bet * 2).toFixed(devise_decimal);
}

function updateIndex(who, value){


"use strict";
$(who).val(value);
}

function betSetting(bet, chance){


//
$('#amount').val(bet);

//
$(".game__container .pie__content__input__show")[2].click();
$("#chance").val(chance);
$("#chance-html").html(chance+"%");
}

var _Handle = function() {


"use strict";
clearInterval(_task);

var bet = 0 , lose, balance;


if (_start)
{

if (_first !== true)


{
lose = ($('#history-my-bets-dice li')
[0].children[7].innerText.indexOf('-') !== -1) ? true : false;
_betting = parseFloat(_betting) + parseFloat($
('#history-my-bets-dice li')[0].children[7].innerText);

updateIndex('#bl_update',
_betting.toFixed(devise_decimal));
if (lose) {
if (_onlost > 0 && !_double) {
bet = increaseOnLost($('#amount').val(),
_onlost);
$
('#amount').val(bet.toFixed(devise_decimal));
} else if (_onlost <= 0 && _double) {
var current = $('#amount').val();
bet = doubleOnLost(current);
$('#amount').val(bet);
}

gamelose++;
con++;
} else {
$('#amount').val(_bet.toFixed(devise_decimal));
gamewin++;
con = 0;
}

if (_stopprofit) {
if (_betting >= _profit) {
startDice();
updateIndex('#_status',"PROFIT REACHED!");
return;
}
} else {
if (_betting >= _profit) {
if (_restart2) {
clearInterval(_task);
_betting = 0;
$
('#amount').val(_bet.toFixed(devise_decimal));
updateIndex('#_status',"PROFIT REACHED,
RESTARTING!");
}
}
}

if (_stopstake) {
if (_betting <= _stake) {
startDice();
updateIndex('#_status',"STAKE REACHED!");
return;
}

} else {
if (_betting <= _stake) {
if (_restart) {
clearInterval(_task);
_betting = 0;
$
('#amount').val(_bet.toFixed(devise_decimal));
updateIndex('#_status',"STAKE REACHED,
RESTARTING!");
}
}
}

updateIndex('#gamewin', gamewin);
updateIndex('#gamelose', gamelose);

_task = setInterval(function(e) {
balance = parseFloat($("#balance-"+devise).val());
if (balance <= bet_min || parseFloat($
('#amount').val()) > balance) {
startDice();
updateIndex('#_status', "Balance Low or Null");
return;
}

if (!_start) {
clearInterval(_task);
clearInterval(_seeds);
return;
}

if (_mode === 'z' && _consecutive <= 0 ) {

$(".game__container .pie__content__input__show")[0].click()
}
else if(_mode === 'z' && _consecutive > 0 ){
updateIndex('#_status', "you can't use zigzag
with c/l.");
return;
}

if( _consecutive > 0 && con >= _consecutive ){

$(".game__container .pie__content__input__show")[0].click()
con=0;
}

$('#btn-bet-dice').trigger('click');
}, _betspeed);

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

Anda mungkin juga menyukai