Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#body').css('background', 'linear-gradient(45deg, #111111 0%, #111111 50%, #111111 100%)');
- $('#main').css('min-width', '100%');
- $('#header').css('display', 'none');
- $('#news').css('display', 'none');
- $('#content').css('background', 'none');
- $('#gameContainer').html('<h2 style="margin: 0px; color: green;">BOT Luckygames Dice - Exclusive Edition</h2> <br><span id="notification">...</span><br><br> <span id="notification1">...</span><br> <span style="float: left;"><input id="basebetAmount" value="0.00000001" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="basebetAmount" autocomplete="off"> <input id="overBalance" value="0.00000000" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="overBalance" autocomplete="off"> <input id="underBalance" value="0.00000000" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="underBalance" autocomplete="off"></span> <span style="float: right;"><button id="min" onclick="min();" style="border: 1px solid #fff; padding: 2px;">Min</button> <button id="play" style="border: 1px solid #fff; padding: 2px;">Start</button> <button id="reset" onclick="reset();" style="border: 1px solid #fff; padding: 2px;">Reset</button> <button id="showChart" style="border: 1px solid #fff; padding: 2px;">Show Chart</button> <button id="showStatic" style="border: 1px solid #fff; padding: 2px;">Show Static</button> <button id="showLog" style="border: 1px solid #fff; padding: 2px;">Show Log</button></span><br><br> <div id="static">...</div><br> <div style="float: left;" id="chart" style="height: 320px;"></div> <div style="float: right;" id="log"></div><br>');
- $('#gameContainer').css('width', '80%');
- $('#gameContainer').css('height', '100%');
- $('#gameContainer').css('color', '#fff');
- $('#gameContainer').css('font-size', '16px');
- $('#gameContainer').css('margin', 'auto');
- $('#gameContainer').css('padding', '0px');
- $('#notification').html('Bot has applied!');
- $('#static').css('text-align', 'center');
- $('#controlContainer').css('display', 'none');
- $('#listContainer').css('display', 'none');
- $('#frontText').css('display', 'none');
- $('#footer').css('display', 'none');
- $('#notification').html('Bot has applied');
- $('#notification1').html('______Base Bet______ ___Target Balance___ _Stop Lost Balance_');
- $('#static').html('...');
- $('#log').css('background', '#1C1C1C');
- $('#log').css('overflow', 'auto');
- $('#log').css('width', '35%');
- $('#log').css('height', '390px');
- //$('#log').css('text-align', 'center');
- $('#log').css('float', 'right');
- $('#log').css('color', '#fff');
- //$('#log').css('margin-top', '20px');
- $('#log').css('padding', '5px');
- $('#log').css('font-size', '14px');
- $('#log').css('border', '1px solid grey');
- $('#log').css('border-top-left-radius', '3px');
- $('#log').css('border-bottom-left-radius', '3px');
- $('#chart').width('63.7%');
- log('BOT has applied!');
- $('.inputBox input')['css']('background', 'none');
- $('.inputBox input')['css']('border', '1px solid green');
- $('.inputBox input')['css']('-webkit-box-shadow', 'none');
- document.getElementById('chart').hidden = true;
- document.getElementById('static').hidden = true;
- document.getElementById('log').hidden = true;
- randomizeSeed();
- console.clear();
- var run = false;
- hideChart = true;
- hideStatic = true;
- hideLog = true;
- sbalance = parseFloat(document.getElementById('balance').value);
- basebetAmount = 0;
- betAmount = 0;
- maxbetAmount = 0;
- prediction = 0;
- direction = '';
- chance = 0;
- balance = 0;
- overBalance = 0;
- underBalance = 0;
- bet = 0;
- win = 0;
- lose = 0;
- winStreak = 0;
- loseStreak = 0;
- maxWinStreak = 0;
- maxLoseStreak = 0;
- lossAmount = 0;
- loseAmount = 0;
- maxloseAmount = 0;
- wagered = 0;
- profitWagered = 0;
- profit = 0;
- profitt = 0;
- largestProfit = 0;
- startTime = new Date();
- onTime = 0;
- playTime = 0;
- playDay = 0;
- playHour = 0;
- playMinute = 0;
- playSecond = 0;
- speed = 0;
- round = 0;
- roundd = 0;
- seed = 111;
- runseed = 0;
- changeseed = Math.floor(10);
- dsp = [];
- chart = '';
- color = '';
- runLog = 0;
- n = Math.floor(6);
- $.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function (script, textStatus) {
- dps = [{
- x: 0,
- y: 0
- }
- ];
- chart = new CanvasJS.Chart('chart', {
- //backgroundColor: "#F5DEB3",
- backgroundColor: "#1C1C1C",
- //backgroundColor: "transparent",
- theme: 'light1',
- zoomEnabled: true,
- axisX: {
- //title: 'Bet',
- includeZero: false,
- },
- axisY: {
- //title: 'Profit',
- includeZero: false,
- },
- title: {
- //text: 'Dice Vip Ultimate - Exclusive Edition',
- fontColor: 'green',
- fontSize: 2e1,
- padding: 2e1
- },
- data: [{
- type: 'line',
- dataPoints: dps
- }
- ]
- });
- chart.render();
- });
- function updateChart(bet, profit, color) {
- dps.push({
- x: bet,
- y: profit,
- color: color
- });
- if (dps[dps.length - 2]) {
- dps[dps.length - 2].lineColor = color;
- }
- if (dps.length > 1e3) {
- dps.shift();
- }
- chart.render();
- }
- function min() {
- $('#basebetAmount').val((0.00000001).toFixed(8));
- }
- $('#play').on('click', function () {
- run == true ? play(this, "Start", false, false) : play(this, "Stop", true, true);
- basebetAmount = parseFloat($('#basebetAmount').val());
- overBalance = parseFloat($('#overBalance').val());
- underBalance = parseFloat($('#underBalance').val());
- betAmount = basebetAmount;
- prediction = Math.floor((Math.random() * (98 - 1 + 1)) + 1);
- direction = 'under';
- chance = prediction;
- $('#basebetAmount').val(basebetAmount.toFixed(8));
- $('#overBalance').val(overBalance.toFixed(8));
- $('#underBalance').val(underBalance.toFixed(8));
- doBet();
- });
- function play(e, d, v) {
- $(e).html(d);
- run = v;
- $('#basebetAmount').prop('disabled', v);
- $('#overBalance').prop('disabled', v);
- $('#underBalance').prop('disabled', v);
- $('#min').prop('disabled', v);
- $('#reset').prop('disabled', v);
- }
- $('#showChart').on('click', function () {
- hideChart == true ? showChart(this, "Hide Chart", false) : showChart(this, "Show Chart", true);
- });
- function showChart(e, d, v) {
- $(e).html(d);
- hideChart = v;
- document.getElementById('chart').hidden = v;
- }
- $('#showStatic').on('click', function () {
- hideStatic == true ? showStatic(this, "Hide Static", false) : showStatic(this, "Show Static", true);
- });
- function showStatic(e, d, v) {
- $(e).html(d);
- hideStatic = v;
- document.getElementById('static').hidden = v;
- }
- $('#showLog').on('click', function () {
- hideLog == true ? showLog(this, "Hide Log", false) : showLog(this, "Show Log", true);
- });
- function showLog(e, d, v) {
- $(e).html(d);
- hideLog = v;
- document.getElementById('log').hidden = v;
- }
- function log(string) {
- $('<p style="margin: 0px;">' + string + '</p>').appendTo('#log');
- }
- function reset() {
- randomizeSeed();
- sbalance = parseFloat(document.getElementById('balance').value);
- basebetAmount = 0;
- betAmount = 0;
- maxbetAmount = 0;
- prediction = 0;
- direction = '';
- chance = 0;
- balance = 0;
- overBalance = 0;
- underBalance = 0;
- bet = 0;
- win = 0;
- lose = 0;
- winStreak = 0;
- loseStreak = 0;
- maxWinStreak = 0;
- maxLoseStreak = 0;
- lossAmount = 0;
- loseAmount = 0;
- maxloseAmount = 0;
- wagered = 0;
- profitWagered = 0;
- profit = 0;
- profitt = 0;
- largestProfit = 0;
- startTime = new Date();
- onTime = 0;
- playTime = 0;
- playDay = 0;
- playHour = 0;
- playMinute = 0;
- playSecond = 0;
- speed = 0;
- round = 0;
- roundd = 0;
- dsp = [];
- chart = '';
- color = '';
- n = Math.floor(6);
- runLog = 0;
- $('#log p').remove();
- $.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function (script, textStatus) {
- dps = [{
- x: 0,
- y: 0
- }
- ];
- chart = new CanvasJS.Chart('chart', {
- //backgroundColor: "#F5DEB3",
- backgroundColor: "#1C1C1C",
- //backgroundColor: "transparent",
- theme: 'light1',
- zoomEnabled: true,
- axisX: {
- //title: 'Bet',
- includeZero: false,
- },
- axisY: {
- //title: 'Profit',
- includeZero: false,
- },
- title: {
- //text: 'Dice Vip Ultimate - Exclusive Edition',
- fontColor: 'green',
- fontSize: 2e1,
- padding: 2e1
- },
- data: [{
- type: 'line',
- dataPoints: dps
- }
- ]
- });
- chart.render();
- });
- $('#notification').html('Bot has reset');
- $('#static').html('...');
- log('BOT has reset!');
- return;
- }
- function doBet() {
- if (run === true) {
- jQuery.ajax({
- url: "https://"+user.domain+"/play/",
- type: "POST",
- dataType: "html",
- timeout: 6e4,
- data: {
- game: "dice",
- coin: $('#coin').val(),
- betAmount: betAmount,
- prediction: prediction,
- direction: direction,
- clientSeed: $('#clientSeed').val(),
- serverSeedHash: $('#serverSeedHash').html(),
- session: getCookie("SESSION"),
- //action: "playBet",
- hash: user.hash
- },
- success: function (data) {
- var data = JSON.parse(data);
- if (data.result === true) {
- //randomizeSeed();
- bet++;
- onTime = new Date().getTime();
- playTime = onTime - startTime;
- playDay = Math.floor(playTime / (1e3 * 6e1 * 6e1 * 24));
- playHour = Math.floor((playTime % (1e3 * 6e1 * 6e1 * 24)) / (1e3 * 6e1 * 6e1));
- playMinute = Math.floor((playTime % (1e3 * 6e1 * 6e1)) / (1e3 * 6e1));
- playSecond = Math.floor((playTime % (1e3 * 6e1)) / 1e3);
- speed = parseFloat((bet / playTime) * 1000);
- balance = parseFloat(data.balance);
- wagered += parseFloat(betAmount);
- profit += parseFloat(data.profit);
- profitWagered = (wagered * 0.1) / 1e2;
- profitt = 100*(balance-sbalance)/sbalance;
- if (profit > largestProfit) {
- largestProfit = profit;
- }
- if (data.gameResult === 'win') {
- /**********************************************///randomizeSeed();
- win++;
- winStreak++;
- loseStreak = 0;
- color = 'green';
- } else {
- lose++;
- loseStreak++;
- winStreak = 0;
- color = 'red';
- }
- if (winStreak >= maxWinStreak) {
- maxWinStreak = winStreak;
- }
- if (loseStreak >= maxLoseStreak) {
- maxLoseStreak = loseStreak;
- }
- if (betAmount >= maxbetAmount) {
- maxbetAmount = betAmount;
- }
- loseAmount = largestProfit - profit;
- if (loseAmount >= maxloseAmount) {
- maxloseAmount = loseAmount;
- }
- runLog++;
- if (runLog > 1e2) {
- runLog = 0;
- $('#log p').remove();
- }
- log('<font style="color: ' + color + ';">' + betAmount.toFixed(8) + ' ' + direction + ' ' + prediction + ' -> ' + data.resultNumber + ' ' + data.gameResult + ' ' + parseFloat(data.profit).toFixed(8) + '</font>');
- $('#log').stop().animate({ scrollTop: $('#log')[0].scrollHeight });
- $('#serverSeedHash').html(data.serverSeedHash);
- //$('#notification').html('Bot on running: ' + prediction + ' : ' + direction);
- $('#notification').html('Bot on running');
- $('#static').html('<span style="float: left;">Game = dice</span> <span style="float: center;">Bet Amount : Prediction : Direction = ' + betAmount.toFixed(8) + ' : ' + prediction + ' : ' + direction + '</span> <span style="float: right;">Coin = ' + $('#coin').val() + '</span><br> <span style="float: left;">Time = ' + playDay + 'd:' + playHour + 'h:' + playMinute + 'm:' + playSecond + 's</span> <span style="float: center;">Roll = ' + data.resultNumber + ' : ' + data.gameResult + '</span> <span style="float: right;">Speed = ' + speed.toFixed(2) + '</span><br> <span style="float: left;">Balance = ' + balance.toFixed(8) + '</span> <span style="float: center;">Bet = ' + bet + ' : Win = ' + win + ' : Lose = ' + lose + '</span> <span style="float: right;">Wagered = ' + wagered.toFixed(8) + '</span><br> <span style="float: left;">Profit = ' + profit.toFixed(8) + ' (' + profitt.toFixed(2) + '%)</span> <span style="float: right;">Profit Wagered = ' + profitWagered.toFixed(8) + '</span><br> <span style="float: left;">Win Streak = ' + winStreak + '</span> <span style="float: center;">Loss Amount = ' + loseAmount.toFixed(8) + ' : Max Loss Amount = ' + maxloseAmount.toFixed(8) + '</span> <span style="float: right;">Lose Streak = ' + loseStreak + '</span><br> <span style="float: left;">Max Win Streak = ' + maxWinStreak + '</span> <span style="float: center;">Max Bet Amount = ' + maxbetAmount.toFixed(8) + '</span> <span style="float: right;">Max Lose Streak = ' + maxLoseStreak + '</span>');
- updateChart(bet, profit, color);
- if (betAmount >= balance) {
- stop();
- $('#notification').html('You lose');
- alert('You lose')
- log('You lose!')
- return;
- } else {
- if (overBalance != 0 && balance >= overBalance) {
- stop();
- $('#notification').html('Over balance - Target Balance achieved');
- alert('Over balance - Target Balance achieved')
- log('Over balance!')
- return;
- } else if (underBalance != 0 && balance <= underBalance) {
- stop();
- $('#notification').html('Under balance - balance under Stop Lost Balance');
- alert('Under balance - balance under Stop Lost Balance')
- log('Under balance!')
- return;
- } else {
- if (profit >= largestProfit) {
- //if (data.gameResult === 'win') {
- var rdseedd = Math.floor(Math.random() * (2 - 0 + 1)) + 0;
- switch(rdseedd) {
- case 0:
- $('#clientSeed').val(generateClientSeed());
- break;
- case 1:
- $('#clientSeed').val((Math['random']() * (1000000000000000000000 - 1) + 1).toFixed(0));
- break;
- case 2:
- $('#clientSeed').val((Math['random']() * (100 - 1) + 1).toFixed(0));
- break;
- default:
- }
- var rd = Math.floor((Math.random() * (2 - 1 + 1)) + 1);
- if (rd == 1) {
- prediction = Math.floor((Math.random() * (98 - 1 + 1)) + 1);
- direction = 'under';
- chance = prediction;
- } else {
- prediction = Math.floor((Math.random() * (98 - 1 + 1)) + 1);
- direction = 'over';
- chance = 99 - prediction;
- }
- //round = 0;
- lossAmount = 0;
- //n = Math.floor((Math.random() * (6 - 4 + 1)) + 4);
- betAmount = basebetAmount;
- } else {
- var rdd = Math.floor((Math.random() * (2 - 1 + 1)) + 1);
- if (rdd == 1) {
- prediction = Math.floor((Math.random() * (98 - 1 + 1)) + 1);
- direction = 'under';
- chance = prediction;
- } else {
- prediction = Math.floor((Math.random() * (98 - 1 + 1)) + 1);
- direction = 'over';
- chance = 99 - prediction;
- }
- lossAmount = largestProfit - profit;
- var betbetAmount = lossAmount/(96/chance-1);
- if (chance < 30 && chance > 0) {
- betAmount = betbetAmount;
- } else {
- betAmount = basebetAmount;
- }
- if (betAmount < 0.00000001) {
- betAmount = 0.00000001;
- }
- }
- }
- }
- doBet();
- } else {
- randomizeSeed();
- setInterval(doBet(), 1e3);
- }
- },
- error: function (xhr, ajaxOptions, throwagerednError) {
- randomizeSeed();
- setInterval(doBet(), 1e3);
- },
- timeout: function (xhr, ajaxOptions, throwagerednError) {
- randomizeSeed();
- setInterval(doBet(), 1e3);
- },
- abetort: function (xhr, ajaxOptions, throwagerednError) {
- randomizeSeed();
- setInterval(doBet(), 1e3);
- }
- });
- } else {
- $('#notification').html('Bot has stopped');
- log('BOT has stopped!');
- return;
- }
- }
- function generateSeed(length) {
- let seed = '';
- const charset = 'abcdef0123456789';
- const array = new Uint32Array(length);
- window.crypto.getRandomValues(array);
- for (const val of array) {
- seed += charset.charAt(val % 11);
- }
- return seed;
- }
- function generateClientSeed() {
- return generateSeed(32);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement