rasyaparsaoran

NEW

Jul 27th, 2017
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. $('body').append('
  2.  
  3. balance
  4. win
  5. bet
  6. time
  7. ');
  8.  
  9. bconfig = {
  10.  
  11. maxBet: 0.00001024,
  12.  
  13. wait: 1,
  14.  
  15. toggleHilo: false,
  16.  
  17. alertMultiplier: 5
  18.  
  19. };
  20.  
  21. initialBalance = parseFloat($('#balance').html());
  22.  
  23. hilo = 'hi';
  24.  
  25. multiplier = 1;
  26.  
  27. startTime = new Date().getTime();
  28.  
  29. rollDice = function() {
  30.  
  31. if ($('#double_your_btc_bet_lose').html() !== '') {
  32.  
  33. $('#double_your_btc_2x').click();
  34.  
  35. multiplier++;
  36.  
  37. if (bconfig.toggleHilo) toggleHiLo();
  38.  
  39. } else {
  40.  
  41. setStartBet();
  42.  
  43. $('#double_your_btc_bet_win').html('');
  44.  
  45. var cmsg = {
  46.  
  47. lose: $('#double_your_btc_bet_lose').html(),
  48.  
  49. win: $('#double_your_btc_bet_win').html()
  50.  
  51. };
  52.  
  53. cmsg = JSON.stringify(cmsg);
  54.  
  55. }
  56.  
  57. if (multiplier > bconfig.alertMultiplier) {
  58.  
  59. if (window.confirm("You have already lost " + (Math.pow(2, (multiplier - 1)) - 1) + " and you are about to lose " + Math.pow(2, (multiplier - 1)) + ". Click 'cancel' to reset the bet amount to 1 or 'ok' to take the risk?")) {
  60.  
  61. } else {
  62.  
  63. $('#double_your_btc_min').click();
  64.  
  65. multiplier = 1;
  66.  
  67. }
  68.  
  69. $('#double_your_btc_bet_' + hilo + '_button').click();
  70.  
  71. } else {
  72.  
  73. if (parseFloat($('#balance').html()) parseFloat($('#double_your_btc_stake').val()) > bconfig.maxBet) {
  74.  
  75. $('#double_your_btc_min').click();
  76.  
  77. multiplier = 1;
  78.  
  79. }
  80.  
  81. $('#double_your_btc_bet_' + hilo + '_button').click();
  82.  
  83. }
  84.  
  85. // setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 100));
  86.  
  87. };
  88.  
  89. toggleHiLo = function() {
  90.  
  91. if (hilo === 'hi') {
  92.  
  93. hilo = 'lo';
  94.  
  95. } else {
  96.  
  97. hilo = 'hi';
  98.  
  99. }
  100.  
  101. };
  102.  
  103. setStartBet = function() {
  104.  
  105. $('#double_your_btc_min').click();
  106.  
  107. multiplier = 1;
  108.  
  109. // if ((Math.random() * 10) > 5) {
  110.  
  111. // } else {
  112.  
  113. // $('#double_your_btc_min').click();
  114.  
  115. // $('#double_your_btc_2x').click();
  116.  
  117. // multiplier = 2;
  118.  
  119. // }
  120.  
  121. }
  122.  
  123. currentMsg = '';
  124.  
  125. bChange = function(next) {
  126.  
  127. var cmsg = {
  128.  
  129. lose: $('#double_your_btc_bet_lose').html(),
  130.  
  131. win: $('#double_your_btc_bet_win').html()
  132.  
  133. };
  134.  
  135. cmsg = JSON.stringify(cmsg);
  136.  
  137. if (currentMsg !== cmsg) {
  138.  
  139. $('#balance_b').html($('#balance').html());
  140.  
  141. $('#roundwin_b').html((parseFloat($('#balance').html()) - initialBalance).toFixed(8));
  142.  
  143. $('#current_bet_b').html($('#double_your_btc_stake').val());
  144.  
  145. $('#time_b').html((Math.round(((new Date().getTime()) - startTime) / 1000) / 60 / 60).toFixed(2) + ' h');
  146.  
  147. currentMsg = cmsg;
  148.  
  149. next();
  150.  
  151. }
  152.  
  153. setTimeout(function() {
  154.  
  155. setTimeout(function() {
  156.  
  157. bChange(next);
  158.  
  159. }, bconfig.wait)
  160.  
  161. }, 50);
  162.  
  163. };
  164.  
  165. bChange(rollDice);
Advertisement
Add Comment
Please, Sign In to add comment