FreeDogecoin Autobet Script


SUBMITTED BY: netkrool

DATE: Feb. 3, 2017, 4:37 a.m.

FORMAT: Text only

SIZE: 6.6 kB

HITS: 2147

  1. //COMMAND//
  2. //changeBet() ex: changeBet('0.03800000');
  3. console.clear();
  4. var begingbal = $('#balance').text();
  5. var startbalance = 0;
  6. var stopAt= '?';
  7. var round = 0;
  8. var gameLost=0;
  9. var gameWin=0;
  10. var higherbet=0;
  11. startbalance = $('#balance').text();
  12. var startValue = '0.03800000', // Don't lower the decimal point more than 4x of current balance
  13. stopPercentage = 0.04, // In %. I wouldn't recommend going past 0.08
  14. maxWait = 500, // In milliseconds
  15. stopped = false,
  16. stopBefore = 3; // In minutes
  17. var oldbet= 0.03800000;
  18. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link" style="color:#00CCFF;">START BOT</a>';
  19. var $loButton = $('#double_your_doge_bet_lo_button'),
  20. $hiButton = $('#double_your_doge_bet_hi_button');
  21. function higherBet(){
  22. console.log('Highest bet: '+higherbet);
  23. }
  24. function beginingBal(){
  25. console.log('Doge Starting Balance: '+begingbal);
  26. }
  27. function changeBet(bet){
  28. startValue=bet;
  29. }
  30. function realtime(time) {
  31. var sec_num =parseInt(time, 10) ; // don't forget the second param
  32. var hours = Math.floor(sec_num / 3600);
  33. var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
  34. var seconds = sec_num - (hours * 3600) - (minutes * 60);
  35. if (hours!=0) {hours = hours+' Hours ';} else{hours = '';}
  36. if (minutes!=0) {minutes = minutes+' Minutes ';}
  37. else{minutes = '';}
  38. if (seconds < 10) {seconds = seconds;}
  39. var time = 'Playing time = '+hours+minutes+seconds+' Seconds';
  40. return time;
  41. }
  42. function roundnumb(){
  43. console.clear();
  44. if( round == stopAt)
  45. {
  46. stopGame()
  47. }
  48. else
  49. {
  50. round = round + 1;
  51. beginingBal();
  52. console.log('Round #' + round + ' / ' + stopAt);
  53. }
  54. var newbalance= $('#balance').text()
  55. var profit = (Number(newbalance) - Number(startbalance)).toFixed(8) ;
  56. console.log('Profit:' + profit + ' Doge')
  57. }
  58. //Number of round. Type stopatRound(NUMBER_OF_ROUND) to change
  59. //function stopatRound(limitRound){
  60. //stopAt=limitRound;
  61. //}
  62. function multiply(){
  63. var current = $('#double_your_doge_stake').val();
  64. var multiply = (current * 2).toFixed(8);
  65. $('#double_your_doge_stake').val(multiply);
  66. console.log('Bet = ' + multiply);
  67. if( higherbet < multiply ){ higherbet=multiply; }
  68. }
  69. function getRandomWait(){
  70. var wait = Math.floor(Math.random() * maxWait ) + 100; //(Math.floor(Math.random() * 800) + 300) ; // avant 100
  71. console.log('Waiting for ' + wait + 'ms before next bet.');
  72. return wait ;
  73. }
  74. function startGame(limit){
  75. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="free_play_link" style="color:#00CCFF;">STOP BOT</a>';
  76. starttime=(new Date()).getTime();
  77. startValue = prompt("Number of doge you want to bet?", '0.03800000');
  78. oldbet=startValue;
  79. round = 0;
  80. gameLost=0;
  81. gameWin=0;
  82. console.log('Game started!');
  83. reset();
  84. $loButton.trigger('click');
  85. if(limit !== null) {
  86. stopAt=limit;
  87. }
  88. else
  89. {
  90. stopAt=-1;
  91. }
  92. }
  93. function stopGame(){
  94. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link" style="color:#00CCFF;">START BOT</a>';
  95. console.log('Game will stop soon! Let me finish.');
  96. stopped = true;
  97. startValue=oldbet;
  98. }
  99. function reset(){
  100. if( round % 100 === 0 && round !=0)
  101. {
  102. startValue=(startValue * 1.000).toFixed(8); //New bet after 100 round
  103. console.log('Round ' + round + ': bet change for ' + startValue);
  104. }
  105. $('#double_your_doge_stake').val(startValue);
  106. }
  107. // quick and dirty hack if you have very little bitcoins like 0.0000001
  108. function deexponentize(number){
  109. return number * 1000000;
  110. }
  111. function iHaveEnoughMoni(){
  112. var balance = deexponentize(parseFloat($('#balance').text()));
  113. var current = deexponentize($('#double_your_doge_stake').val());
  114. return ((balance*2)/100) * (current*2) > stopPercentage/100;
  115. }
  116. function stopBeforeRedirect(){
  117. var minutes = parseInt($('title').text());
  118. if( minutes < stopBefore )
  119. {
  120. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  121. stopGame();
  122. return true;
  123. }
  124. return false;
  125. }
  126. // Unbind old shit
  127. $('#double_your_doge_bet_lose').unbind();
  128. $('#double_your_doge_bet_win').unbind();
  129. // Loser
  130. $('#double_your_doge_bet_lose').bind("DOMSubtreeModified",function(event){
  131. if( $(event.currentTarget).is(':contains("lose")') )
  132. {
  133. gameLost = gameLost + 1;
  134. roundnumb();
  135. console.log('%cWin: ' + gameWin + ' Lost: ' + gameLost, 'color: #FF0000');
  136. endtime=(new Date()).getTime();
  137. var time=Math.floor((endtime-starttime )/1000);
  138. higherBet();
  139. console.log(realtime(time));
  140. console.log('You LOST!');
  141. multiply();
  142. setTimeout(function(){
  143. $loButton.trigger('click');
  144. }, getRandomWait());
  145. //$loButton.trigger('click');
  146. }
  147. }
  148. );
  149. // Winner
  150. $('#double_your_doge_bet_win').bind("DOMSubtreeModified",function(event){
  151. if( $(event.currentTarget).is(':contains("win")') )
  152. {
  153. gameWin = gameWin + 1;
  154. roundnumb();
  155. console.log('%cWin: ' + gameWin + ' Lost: ' + gameLost, 'color: #00CC00');
  156. endtime=(new Date()).getTime();
  157. var time=Math.floor((endtime-starttime )/1000);
  158. console.log(realtime(time));
  159. higherBet();
  160. if( stopBeforeRedirect() )
  161. {
  162. return;
  163. }
  164. if( iHaveEnoughMoni() )
  165. {
  166. console.log('You WON!');
  167. reset();
  168. if( stopped )
  169. {
  170. stopped = false;
  171. return false;
  172. }
  173. }
  174. else
  175. {
  176. console.log('You WON! ');
  177. }
  178. setTimeout(function(){
  179. $loButton.trigger('click');
  180. }, getRandomWait());
  181. }
  182. }
  183. );

comments powered by Disqus