Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.clear();
- var basebet = 10.00000001, 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 = 95;
- direction = 'over';
- coin = 'lucky';
- }
- else {
- prediction = 4;
- direction = 'under';
- coin = 'lucky';
- }
- $.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(4, 95) % 2 == 0 ? bethigh = true : bethigh = false;
- nbet = basebet * 10;
- }
- }
- else {
- if (loseStreak == 150)
- {nbet = nextbet;
- chance = randomChance(4, 4);
- nextbet = nextbet * 1.025;}
- else {
- if (loseStreak >=150)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.025;}
- else {
- if (loseStreak >= 101)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.035;}
- else {
- if (loseStreak >= 100)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.5;}
- else {
- if (loseStreak >= 71)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.035;}
- else {
- if (loseStreak >= 75)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 2;}
- else {
- if (loseStreak >= 51)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.035;}
- else {
- if (loseStreak >= 50)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 3;}
- else {
- if (loseStreak >= 26)
- {chance = randomChance(4, 4);
- nextbet = nextbet * 1.035;}
- else {
- if (loseStreak >= 25) {
- chance = randomChance(95, 95);
- nextbet = nextbet * 4;}
- }
- }
- }}}}}}}}
- $('#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