patco307

Untitled

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