bluedeep1


SUBMITTED BY: bluedeep123

DATE: July 17, 2016, 3:07 a.m.

FORMAT: Text only

SIZE: 2.5 kB

HITS: 1961

  1. var multiplier = 3;
  2. var baseBet = 0.00000005;
  3. var bet = baseBet;
  4. var balanceOld = parseFloat($('#balances-lg').text());
  5. var losingStreakLimit = 10000;
  6. var losingStreak = 0;
  7. var run = false;
  8. var clicked = true;
  9. $('#history-my-bets-dice').unbind('DOMNodeInserted');
  10. $('#history-my-bets-dice').bind('DOMNodeInserted', function(e){
  11. console.clear();
  12. if(!run) return;
  13. var updatedBalance = parseFloat($($(e.target).children()[7]).text());
  14. var profit = parseFloat($('#balances-lg').text()) - balanceOld;
  15. if(updatedBalance < 0) {//lose
  16. losingStreak++;
  17. console.log('LOSS ' + bet.toFixed(8));
  18. profit -= bet;
  19. if(losingStreak < losingStreakLimit)
  20. bet *= multiplier;
  21. else {
  22. // stop();
  23. // console.log('PROFIT ' + profit.toFixed(8));
  24. // console.log('BALANCE ' + $('#balances-lg').text().trim());
  25. // $('#amount').val(baseBet.toFixed(8));
  26. // return;
  27. bet = baseBet;
  28. }
  29. } else { //win
  30. losingStreak = 0;
  31. profit += bet * 0.2375;
  32. console.log('WIN ' + (bet * 0.2375).toFixed(20));
  33. bet = baseBet;
  34. }
  35. console.log('PROFIT ' + profit.toFixed(8));
  36. console.log('BALANCE ' + $('#balances-lg').text().trim());
  37. $('#amount').val(bet.toFixed(8));
  38. clicked = false;
  39. });
  40. clearInterval(handle);
  41. clearInterval(seedchanger);
  42. var handle = setInterval(function() {
  43. if(clicked == false) {
  44. $('#btn-bet-dice').trigger('click');
  45. }
  46. },100);
  47. var seedchanger = setInterval(function() {
  48. $('#btn-change-seeds').trigger('click');
  49. console.log('SEED CHNGED');
  50. if(run == false) {
  51. start();
  52. }
  53. }, 180000);
  54. function clickEvent(e) {
  55. if(!run) return;
  56. clicked = true;
  57. }
  58. $('#btn-bet-dice').unbind('click',clickEvent);
  59. $('#btn-bet-dice').bind('click',clickEvent);
  60. function end() {
  61. $('#btn-bet-dice').unbind('click',clickEvent);
  62. $('#history-my-bets-dice').unbind('DOMNodeInserted');
  63. clearInterval(handle);
  64. clearInterval(seedchanger);
  65. }
  66. function start() {
  67. balanceOld = parseFloat($('#balances-lg').text());
  68. // baseBet = parseFloat($('#amount').val());
  69. bet = baseBet;
  70. run = true;
  71. $('#btn-bet-dice').trigger('click');
  72. }
  73. function stop() {
  74. losingStreak = 0;
  75. profit = 0;
  76. run = false;
  77. clicked = true;
  78. }

comments powered by Disqus