Advertisement
rasyaparsaoran

NEW 2 continoued roll

Jul 27th, 2017
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. // If value = false
  2. //then win often.
  3. //If Value = true
  4. //then continous the flow
  5. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  6. stopPercentage = 0.001,
  7. maxWait = 777,
  8. stopped = false, // debugging
  9. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  10. var $loButton = $('#double_your_btc_bet_lo_button'),
  11. $hiButton = $('#double_your_btc_bet_hi_button');
  12. function multiply(){
  13. var current = $('#double_your_btc_stake').val();
  14. var multiply = (current * 2).toFixed(8);
  15. $('#double_your_btc_stake').val(multiply);
  16. }
  17. function getRandomWait(){
  18. var wait = Math.floor(Math.random() * maxWait ) + 100;
  19. console.log('Waiting for ' + wait + 'ms before next bet.');
  20. return wait ;
  21. }
  22. function startGame(){
  23. console.log('Game started!');
  24. reset();
  25. $loButton.trigger('click');
  26. }
  27. function stopGame(){
  28. console.log('Game will stop soon! Let me finish.');
  29. stopped = true;
  30. }
  31. function reset(){
  32. $('#double_your_btc_stake').val(startValue);
  33. }
  34. function deexponentize(number){
  35. return number * 10000000;
  36. }
  37. function iHaveEnoughMoni(){
  38. var balance = deexponentize(parseFloat($('#balance').text()));
  39. var current = deexponentize($('#double_your_btc_stake').val());
  40. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  41. }
  42. function stopBeforeRedirect(){
  43. var minutes = parseInt($('title').text());
  44. if( minutes < stopBefore )
  45. {
  46. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  47. stopGame();
  48. return true;
  49. }
  50. return false;
  51. }
  52. $('#double_your_btc_bet_lose').unbind();
  53. $('#double_your_btc_bet_win').unbind();
  54. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  55. if( $(event.currentTarget).is(':contains("lose")') )
  56. {
  57. console.log('You LOST! Multiplying your bet and betting again.');
  58. multiply();
  59. setTimeout(function(){
  60. $loButton.trigger('click');
  61. }, getRandomWait());
  62. }
  63. });
  64. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  65. if( $(event.currentTarget).is(':contains("win")') )
  66. {
  67. if( stopBeforeRedirect() )
  68. {
  69. return;
  70. }
  71. if( iHaveEnoughMoni() )
  72. {
  73. console.log('You WON! But don\'t be greedy. Restarting!');
  74. reset();
  75. if( stopped )
  76. {
  77. stopped = false;
  78. return false;
  79. }
  80. }
  81. else
  82. {
  83. console.log('You WON! Betting again');
  84. }
  85. setTimeout(function(){
  86. $loButton.trigger('click');
  87. }, getRandomWait());
  88. }
  89.  
  90. });startGame();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement