Advertisement
Guest User

saldo 1 juta satoshi

a guest
Dec 8th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1.  
  2.  
  3. $('#gameContainer').html('<div id="chart"></div>');
  4. $('#gameContainer').css('width', '1000px');
  5. $('#gameContainer').css('margin', 'auto');
  6.  
  7. var basebet = 0.00000001, chance = 1;nextbet = basebet, nbet = nextbet * 10, chance = 4, bethigh = false;
  8. var dps = [], chart, bet = 0, win = 0, winStreak = 0, lose = 0, loseStreak = 0, profit = 0, balance = 0, color, startTime, runTime;
  9.  
  10. function randomChance(min, max) {
  11. return Math.floor(Math.random() * (max - min)) + min;
  12. }
  13.  
  14. function drawChart() {
  15. return new Promise(function (resolve, reject) {
  16. $.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function () {
  17. dps = [{
  18. x: 0,
  19. y: 0
  20. }];
  21. chart = new CanvasJS.Chart('chart', {
  22. theme: 'light1',
  23. axisX: {
  24. title: ''
  25. },
  26. axisY: {
  27. title: 'Profit'
  28. },
  29. title: {
  30. text: ''
  31. },
  32. data: [{
  33. type: 'area',
  34. dataPoints: dps
  35. }]
  36. });
  37. chart.render(resolve({ err: 0, msg: 'OK' }));
  38. }).fail(function (error) {
  39. reject({ err: 1, msg: 'ERROR' });
  40. });
  41. });
  42. }
  43.  
  44. function updateChart() {
  45. dps.push({
  46. x: bet,
  47. y: profit,
  48. color: color
  49. })
  50. if (dps[dps.length - 2]) {
  51. dps[dps.length - 2].lineColor = color;
  52. }
  53. if (dps.length > 150) {
  54. dps.shift();
  55. }
  56. chart.render();
  57. }
  58.  
  59. function dobet() {
  60. var betAmount = nextbet, prediction, direction;
  61. if (bethigh) {
  62. prediction = 98;
  63. direction = 'over';
  64. }
  65. else {
  66. prediction = 1;
  67. direction = 'under';
  68. }
  69. $.post('https://luckygames.cc/play/', {
  70. game: 'dice',
  71. coin: $('#coin').val(),
  72. betAmount: betAmount,
  73. prediction: prediction,
  74. direction: direction,
  75. clientSeed: $('#clientSeed').val(),
  76. serverSeedHash: $('#serverSeedHash').text(),
  77. hash: user.hash
  78. }).done(function (response) {
  79. var l = JSON.parse(response);
  80. if (l.result) {
  81. bet += 1;
  82. profit += parseFloat(l.profit);
  83. var onTime = new Date().getTime();
  84. runTime = onTime - startTime;
  85. var runSeconds = Math.floor((runTime % (1000 * 60)) / 1000),
  86. runMinutes = Math.floor((runTime % (1000 * 60 * 60)) / (1000 * 60)),
  87. runHours = Math.floor((runTime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)),
  88. runDays = Math.floor(runTime / (1000 * 60 * 60 * 24)),
  89. runSpeed = parseFloat((bet / runTime) * 1000);
  90. $('#serverSeedHash').text(l.serverSeedHash);
  91. $('#balance').val(l.balance);
  92. if ($('#myBets').hasClass('active')) {
  93. var e = $('#listContainer .table .tbody .tr:first-child');
  94. if (e.hasClass('full')) e.remove(), $('#listContainer .table .tbody').append(l.betHtml);
  95. else {
  96. e.before(l.betHtml);
  97. var t = $('#listContainer .table .tbody .tr').length;
  98. if (50 < t && (t = 40), 40 < t)
  99. for (var o = 0; o < t - 40; o++) $('#listContainer .table .tbody .tr:last-child').remove()
  100. }
  101. }
  102. if (l.gameResult == 'win') {
  103. win += 1;
  104. winStreak += 1;
  105. loseStreak = 0;
  106. color = 'green';
  107. randomizeSeed();
  108.  
  109.  
  110. }
  111. else {
  112. lose += 1;
  113. loseStreak += 1;
  114. winStreak = 0;
  115. color = 'red';
  116.  
  117. }
  118. if (l.gameResult == 'win') {nextbet = basebet;if (l.balance >= balance) {
  119. randomChance(1, 98) % 2 == 0 ? bethigh = true : bethigh = false;
  120. nbet = basebet * 10;
  121. }}
  122.  
  123.  
  124. else {if (loseStreak >= 272) {nextbet = nextbet * 1.015;}
  125. else {if (loseStreak >= 250) {nextbet = nextbet * 1;}
  126. else {if (loseStreak >= 249) {nextbet = nextbet * 2;}
  127. else {if (loseStreak >= 205) {nextbet = nextbet * 1;}
  128. else {if (loseStreak >= 204) {nextbet = nextbet * 2;}
  129. else {if (loseStreak >= 166) {nextbet = nextbet * 1;}
  130. else {if (loseStreak >= 165) {nextbet = nextbet * 2;}
  131. else {if (loseStreak >= 132) {nextbet = nextbet * 1;}
  132. else {if (loseStreak >= 131) {nextbet = nextbet * 2;}
  133. else {if (loseStreak >= 90) {nextbet = nextbet * 1;}
  134. else {if (loseStreak >= 89) {nextbet = nextbet * 2;}
  135. else {if (loseStreak >= 1) {nextbet = basebet * 1;}
  136. }}}}}}}}}}}}
  137. console.clear();
  138. console.log(`Balance: ${l.balance} ${$('#coin').val()}`);
  139. console.log(`Profit: ${profit.toFixed(8)} ${$('#coin').val()}`);
  140. console.log(`Next bet: ${nextbet.toFixed(8)} ${$('#coin').val()}`);
  141. console.log(`Lose strike: ${loseStreak} X lose`);
  142. console.log(`speed: ${runSpeed.toFixed(2)}`);
  143. console.log(`run time: ${runDays}:${runHours}:${runMinutes}:${runSeconds}`);
  144. l.balance > balance ? balance = l.balance : balance = balance;
  145. updateChart();
  146. dobet();
  147. }
  148. else {
  149. dobet();
  150. }
  151. }).fail(function (error) {
  152. dobet();
  153. });
  154. }
  155.  
  156. async function start() {
  157. drawChart().then(function () {
  158. startTime = new Date();
  159. dobet();
  160. }).catch(function () {
  161.  
  162. });
  163. }
  164.  
  165. randomizeSeed(start());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement