Advertisement
Guest User

tah mun ieu aman mang

a guest
Sep 21st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. console.clear();
  2. var basebet = 10.00000001, nextbet = basebet, nbet = basebet * 10, chance = 50, bethigh = false;
  3. var dps = [], chart, bet = 0, win = 0, winStreak = 0, lose = 0, loseStreak = 0, profit = 0, balance = 0, color;
  4. function randomChance(min, max) {
  5. return Math.floor(Math.random() * (max - min)) + min;
  6. }
  7. function dobet() {
  8. var betAmount = nextbet, prediction, direction, coin;
  9. if (bethigh) {
  10. prediction = 95;
  11. direction = 'over';
  12. coin = 'lucky';
  13. }
  14. else {
  15. prediction = 4;
  16. direction = 'under';
  17. coin = 'lucky';
  18. }
  19. $.post('https://luckygames.cc/play/', {
  20. game: 'dice',
  21. coin: $('#coin').val(),
  22. coin: coin,
  23. betAmount: betAmount,
  24. prediction: prediction,
  25. direction: direction,
  26. clientSeed: $('#clientSeed').val(),
  27. serverSeedHash: $('#serverSeedHash').text(),
  28. hash: user.hash
  29. }).done(function (response) {
  30. var l = JSON.parse(response);
  31. if (l.result) {
  32. bet += 1;
  33. profit += parseFloat(l.profit);
  34. l.balance > balance ? balance = l.balance : balance = balance;
  35. $('#serverSeedHash').text(l.serverSeedHash);
  36. $('#balance').val(l.balance);
  37. if ($('#myBets').hasClass('active')) {
  38. var e = $('#listContainer .table .tbody .tr:first-child');
  39. if (e.hasClass('full')) e.remove(), $('#listContainer .table .tbody').append(l.betHtml);
  40. else {
  41. e.before(l.betHtml);
  42. var t = $('#listContainer .table .tbody .tr').length;
  43. if (50 < t && (t = 40), 40 < t)
  44. for (var o = 0; o < t - 40; o++) $('#listContainer .table .tbody .tr:last-child').remove()
  45. }
  46. }
  47. if (l.gameResult == 'win') {
  48. win += 1;
  49. winStreak += 1;
  50. loseStreak = 0;
  51. color = 'green';
  52. randomizeSeed()
  53.  
  54. }
  55. else {
  56. lose += 1;
  57. loseStreak += 1;
  58. winStreak = 0;
  59. color = 'red';
  60. }
  61. if (l.gameResult == 'win') {
  62. nextbet = basebet;
  63. if (l.balance >= balance) {
  64. randomChance(4, 95) % 2 == 0 ? bethigh = true : bethigh = false;
  65. nbet = basebet * 10;
  66. }
  67. }
  68. else {
  69. if (loseStreak == 150)
  70. {nbet = nextbet;
  71. chance = randomChance(4, 4);
  72. nextbet = nextbet * 1.025;}
  73. else {
  74. if (loseStreak >=150)
  75. {chance = randomChance(4, 4);
  76. nextbet = nextbet * 1.025;}
  77. else {
  78. if (loseStreak >= 101)
  79. {chance = randomChance(4, 4);
  80. nextbet = nextbet * 1.035;}
  81. else {
  82. if (loseStreak >= 100)
  83. {chance = randomChance(4, 4);
  84. nextbet = nextbet * 1.5;}
  85. else {
  86. if (loseStreak >= 71)
  87. {chance = randomChance(4, 4);
  88. nextbet = nextbet * 1.035;}
  89. else {
  90. if (loseStreak >= 75)
  91. {chance = randomChance(4, 4);
  92. nextbet = nextbet * 2;}
  93. else {
  94. if (loseStreak >= 51)
  95. {chance = randomChance(4, 4);
  96. nextbet = nextbet * 1.035;}
  97. else {
  98. if (loseStreak >= 50)
  99. {chance = randomChance(4, 4);
  100. nextbet = nextbet * 3;}
  101. else {
  102. if (loseStreak >= 26)
  103. {chance = randomChance(4, 4);
  104. nextbet = nextbet * 1.035;}
  105. else {
  106. if (loseStreak >= 25) {
  107. chance = randomChance(95, 95);
  108. nextbet = nextbet * 4;}
  109. }
  110. }
  111. }}}}}}}}
  112. $('#currentProfit').css('color', 'green');
  113. $('#currentProfit').text(profit.toFixed(8));
  114. dobet();
  115. }
  116. else {
  117. dobet();
  118. }
  119. }).fail(function (error) {
  120. dobet();
  121. });
  122. }
  123.  
  124. function start() {
  125. setTimeout(function () {
  126. dobet();
  127. }, 1e3);
  128. }
  129. randomizeSeed(start());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement