marwanpro

script freebitcoin

Feb 23rd, 2016
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 2.53 KB | None | 0 0
  1. var startValue = '0.0000001', // Mise de départ ou en cas de Victore
  2. stopPercentage = 0.001,
  3. maxWait = 300, //Délai max en milliseconde entre chaque coup
  4. limitlose = 0.00003000, //Pari Maximum (Pour ne pas faire banqueroute)
  5. stopped = false,
  6. stopBefore = 1;
  7. var $loButton = $('#double_your_btc_bet_lo_button'),
  8. $hiButton = $('#double_your_btc_bet_hi_button');
  9. function multiply(){
  10.     var current = $('#double_your_btc_stake').val();
  11.     var multiply = (current * 2.5).toFixed(8); // 2.5 c'est le multiplicateur en cas de lose
  12.     $('#double_your_btc_stake').val(multiply);
  13. }
  14. function getRandomWait(){
  15.     var wait = Math.floor(Math.random() * maxWait ) + 100;
  16.     console.log('Waiting for ' + wait + 'ms before next bet.');
  17.     return wait ;
  18. }
  19. function startGame(){
  20.     console.log('Game started!');
  21.     reset();
  22.     $loButton.trigger('click');
  23. }
  24. function stopGame(){
  25.     console.log('Game will stop soon! Let me finish.');
  26.     stopped = true;
  27. }
  28. function reset(){
  29.     $('#double_your_btc_stake').val(startValue);
  30. }
  31. function deexponentize(number){
  32.     return number * 10000000;
  33. }
  34. function iHaveEnoughMoni(){
  35.     var balance = deexponentize(parseFloat($('#balance').text()));
  36.     var current = deexponentize($('#double_your_btc_stake').val());
  37.     return ((balance)*2/100) * (current*2) > stopPercentage/100;
  38. }
  39. function stopBeforeRedirect(){
  40.     var minutes = parseInt($('title').text());
  41.     if( minutes < stopBefore ) {
  42.     console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  43.     stopGame();
  44.     return true;
  45.     }
  46. return false;
  47. }
  48.  
  49. $('#double_your_btc_bet_lose').unbind();
  50. $('#double_your_btc_bet_win').unbind();
  51. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  52. if( $(event.currentTarget).is(':contains("lose")') )
  53. {
  54.     console.log('You LOST! Multiplying your bet and betting again.');
  55.     multiply();
  56.     var currchecker = $('#double_your_btc_stake').val();
  57.     if(currchecker > limitlose)
  58.     {
  59.         reset();
  60.     }
  61.     setTimeout(function(){
  62.     $loButton.trigger('click');
  63.     }, getRandomWait());
  64. }
  65. });
  66. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  67. if( $(event.currentTarget).is(':contains("win")') )
  68. {
  69. if( stopBeforeRedirect() )
  70.                 {
  71.                         return;
  72.                 }
  73. if( iHaveEnoughMoni() )
  74. {
  75.     console.log('You WON! But don\'t be greedy. Restarting!');
  76.     reset();
  77.     if( stopped )
  78.     {
  79.         stopped = false;
  80.         return false;
  81.     }
  82. }
  83. else
  84. {
  85.     console.log('You WON! Betting again');
  86. }
  87. setTimeout(function(){
  88. $loButton.trigger('click');
  89. }, getRandomWait());
  90. }
  91. });startGame()
Add Comment
Please, Sign In to add comment