Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.clear();
- var basebet = 0.0000001, nextbet = basebet, nbet = basebet * 10, chance = 50, bethigh = false;
- var dps = [], chart, bet = 0, win = 0, winStreak = 0, lose = 0, loseStreak = 0, profit = 0, balance = 0, color;
- function randomChance(min, max) {
- return Math.floor(Math.random() * (max - min)) + min;
- }
- function dobet() {
- var betAmount = nextbet, prediction, direction, coin;
- if (bethigh) {
- prediction = 94;
- direction = 'over';
- coin = 'btc';
- }
- else {
- prediction = 5;
- direction = 'under';
- coin = 'btc';
- }
- $.post('https://luckygames.cc/play/', {
- game: 'dice',
- coin: $('#coin').val(),
- coin: coin,
- betAmount: betAmount,
- prediction: prediction,
- direction: direction,
- clientSeed: $('#clientSeed').val(),
- serverSeedHash: $('#serverSeedHash').text(),
- hash: user.hash
- }).done(function (response) {
- var l = JSON.parse(response);
- if (l.result) {
- bet += 1;
- profit += parseFloat(l.profit);
- l.balance > balance ? balance = l.balance : balance = balance;
- $('#serverSeedHash').text(l.serverSeedHash);
- $('#balance').val(l.balance);
- if ($('#myBets').hasClass('active')) {
- var e = $('#listContainer .table .tbody .tr:first-child');
- if (e.hasClass('full')) e.remove(), $('#listContainer .table .tbody').append(l.betHtml);
- else {
- e.before(l.betHtml);
- var t = $('#listContainer .table .tbody .tr').length;
- if (50 < t && (t = 40), 40 < t)
- for (var o = 0; o < t - 40; o++) $('#listContainer .table .tbody .tr:last-child').remove()
- }
- }
- if (l.gameResult == 'win') {
- win += 1;
- winStreak += 1;
- loseStreak = 0;
- color = 'green';
- randomizeSeed()
- }
- else {
- lose += 1;
- loseStreak += 1;
- winStreak = 0;
- color = 'red';
- }
- if (l.gameResult == 'win') {
- nextbet = basebet;
- if (l.balance >= balance) {
- randomChance(6, 94) % 2 == 0 ? bethigh = true : bethigh = false;
- nbet = basebet * 10;
- }
- }
- else {
- if (loseStreak == 20) {
- nbet = nextbet;
- chance = randomChance(2, 2);
- nextbet = basebet;
- } else {
- if (loseStreak >= 20) {
- chance = randomChance(2, 2);
- nextbet = nextbet * 1.075;
- } else {
- if (loseStreak >= 5) {
- chance = randomChance(97, 97);
- nextbet = nextbet * 1.005;
- }
- }
- }
- }
- $('#currentProfit').css('color', 'green');
- $('#currentProfit').text(profit.toFixed(8));
- dobet();
- }
- else {
- dobet();
- }
- }).fail(function (error) {
- dobet();
- });
- }
- function start() {
- setTimeout(function () {
- dobet();
- }, 1e3);
- }
- randomizeSeed(start());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement