//Bc Game Hash Dice
var config = {
//divider: { label: "Divider", value: 230000, type: "number" },
baseBet: { label: "Base-Bet", value: 0.00000100, type: "number" },
minChance: { label: "Min-Chance", value: 49, type: "number" },
maxChance: { label: "Max-Chance", value: 49, type: "number" },
stopprof: { label: "Stop-Profit", value: 100000, type: "number" },
stoploss: { label: "Stop-Loss-%", value: 100, type: "number" }
/*
stop: { label: "stop if bet >", value: 1e8, type: "number" },
balanceRisk: { label: "balance risk %", value: 100, type: "number" },
targetProfit: {label:'Target-Profit-Stop', value: 1000, type:'number'},
targetBalance: {label:'Target-Balance-Stop', value: 1000, type:'number'},
onLoseTitle: { label: "On Lose", type: "title" }
*/
};
var run = false;
//var bet = [Link]/[Link];
//var bet = [Link];
//var basebet = bet;
var startTime = new Date();
var timestring = '';
var roundWins = 0;
var roundLosses = 0;
var chance = [Link]() * ([Link] - [Link]) +
[Link];
var currentProfitt = 0;
var currentProfittt = 0;
var curProf = 0;
var profitTotal = 0;
var balance = [Link];
var lastbalance = balance;
var currentBet = 0;
var
//bb = balance / [Link],
bb = [Link];
filthy = false,
old = balance,
oldy = balance,
oldbaly = balance,
oldbal = balance,
startbalance = balance,
wage = 0,
r = 0,
basebet = bb,
nextbet = bb,
rst = 0,
profreset = 0,
stavka = 0,
b = balance,
prof = (balance - b) * 100 / b;
function main() {
run = true;
//nextbet = balance / [Link];
nextbet = [Link];
[Link] = function () {
//balance = [Link];
//if(balance >= lastbalance) lastbalance = balance;
chance = [Link]() * ([Link] - [Link]) +
[Link];
//[Link](currentBet, [Link]).then(function (payout) {
[Link](nextbet, (99/chance).toFixed(4)).then(function (payout) {
/*
currentProfitt += curProf;
if (currentProfitt >= currentProfittt) {
currentProfittt = currentProfitt;
currentBet = [Link];
roundWins = 0;
roundLosses = 0;
}
*/
currentBet = nextbet;
if (payout > 1) {
balance += currentBet*99/chance-currentBet;
profitTotal += currentBet*99/chance-currentBet;
profreset += currentBet*99/chance-currentBet;
}else{
balance -= currentBet;
profitTotal -= currentBet;
profreset -= currentBet;
}
if(balance >= lastbalance) lastbalance = balance;
prof = (balance - b) * 100 / b;
stavka += 1;
if (profreset >= 0) {
profreset = 0;
rst += 1;
r += 1;
/*
if r == 2 then
bethigh = !bethigh
r = 0
end
*/
//bb = balance / [Link];
bb = [Link];
if (rst == 500) {
//seed_reset();
rst = 0;
}
}
if (payout > 1) {
wage = wage-1;
}else{
wage = wage+1;
}
if (wage>=([Link]([Link]() * (5 - 2 + 1) + 2))) {
nextbet = nextbet*2;
basebet = nextbet;
wage = 0;
filthy = true;
}
if (balance>=(oldy+(basebet*([Link]([Link]() * (7 - 2 + 1) + 2)))))
{
nextbet = nextbet*2;
basebet = nextbet;
oldy = balance;
}
if (balance<oldy) {
oldy = balance;
}
if (balance>=oldbal && filthy==false) {
oldbal = balance;
}
if (balance>=oldbal && filthy==true) {
nextbet = bb;
basebet = bb;
oldy = balance;
oldbal = balance;
oldbaly = balance;
filthy = false;
}
if (balance>=(oldbaly+(bb*10))) {
nextbet = bb;
basebet = bb;
oldy = balance;
oldbal = balance;
filthy = false;
oldbaly = balance;
}
if (payout > 1) {
[Link](
"We won, so next bet will be " +
nextbet +
" " +
[Link]
);
}else{
[Link](
"We lost, so next bet will be " +
nextbet +
" " +
[Link]
);
}
if (prof >= [Link]) {
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]('Сделано ставок = ' +stavka);
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]('Профит составил >= ' +prof+ '%');
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]();
}
if ((startbalance - balance - nextbet) > startbalance *
([Link]/100)) {
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]('STOP LOSS ');
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]('Сделано ставок = ' +stavka);
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]("Финальный баланс : " +balance);
[Link](':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::');
[Link]();
}
/*
currentProfitt += curProf;
if (currentProfitt >= currentProfittt) {
currentProfittt = currentProfitt;
currentBet = [Link];
roundWins = 0;
roundLosses = 0;
}
if (currentBet < [Link]) {
currentBet = [Link]
}
var stoplevel = ([Link])*lastbalance/100;
if(balance - currentBet < stoplevel){
[Link](
"Balance Risk " + currentBet + " Stop"
);
[Link]();
}
if (currentBet > [Link]) {
[Link](
"Was about to bet " + currentBet + " which triggers the stop"
);
[Link]();
}
if (currentBet > balance) {
[Link](
"Loss " + balance + " which triggers the stop"
);
[Link]();
}
if (profitTotal >= [Link]) {
//bet = [Link]/[Link];
[Link]('Target Profit ' + (profitTotal).toFixed(8) + ' ' +
[Link]);
[Link]();
}
if (balance >= [Link]) {
//bet = [Link]/[Link];
[Link]('Target Balance ' + balance + ' ' +
[Link]);
[Link]();
}
*/
});
};
}
setInterval(function(){
var cur = new Date();
var t = [Link]((cur - startTime) / 1000);
var hour = [Link](t / 3600);
if (hour < 10) hour = '0' + [Link](t / 3600);
t = t % 3600;
var minutes = [Link](t / 60);
if (minutes < 10) minutes = '0' + [Link](t / 60);
var seconds = t % 60;
if (seconds < 10) seconds = '0' + t % 60;
if(run) timestring = 'PlayTime ' + hour + ':' + minutes + ':' + seconds + '
';
else timestring = '';
},'1000');