Advertisement
peterspike12

Pause Script

Jan 14th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. // Bustabit BlackShadow Bot With Sophia Pause V.2
  2. // By: BlackShadow
  3. // Version 2
  4. // A martingale that pauses for a certian number of games after a certian number of losses
  5.  
  6. /******************/
  7.  
  8. var baseBet = 1333; // Your bet ammount in bits
  9. var multiplier = 3; // After loss the next bet will be multiplied (for this method 4)
  10. var cashout = 1.36; // This is the cashout ammount (1.5 rcommended for this)
  11.  
  12. var pauseThreshold = 1000000; // when game crashes above this, betting pauses (Recomended 50)
  13. var continueThreshold = 2; // when paused and the game crashes above this, betting resumes (Recomended 2)
  14.  
  15. var pauseAfterNLosses = 2; // Number of losses before it pauses
  16. var pauseForMGames = 1000000;
  17.  
  18. /***************2**/
  19.  
  20. baseBet = Math.round(baseBet) * 100;
  21. cashout = Math.round(cashout * 100);
  22. pauseThreshold = Math.round(pauseThreshold * 100);
  23. continueThreshold = Math.round(continueThreshold * 100);
  24.  
  25.  
  26. var currentGameData;
  27.  
  28. var bet = baseBet;
  29.  
  30. var lastCrash = cashout;
  31. var paused = false;
  32.  
  33. var pauseLossStreak = 0;
  34. var pausedFor = 0;
  35.  
  36. engine.on('game_started', function(data) {
  37. currentGameData = data;
  38. });
  39.  
  40. engine.on('game_starting', function(info) {
  41. console.log(lastCrash, pauseThreshold);
  42.  
  43. /********************/
  44.  
  45. if(lastCrash >= pauseThreshold) {
  46. paused = true;
  47. console.log("Pausing Betting");
  48. return;
  49. }
  50.  
  51. if(paused) {
  52. if(lastCrash >= continueThreshold) {
  53. console.log("Continuing Betting");
  54. lastCrash = cashout;
  55. paused = false;
  56. } else {
  57. console.log("Betting Is Paused");
  58. return;
  59. }
  60. }
  61.  
  62.  
  63. /********************/
  64.  
  65. if(pausedFor > 0) {
  66. pausedFor++;
  67. if(pausedFor <= pauseForMGames) {
  68. console.log("Paused " + pausedFor + " of " + pauseForMGames + " games");
  69. return;
  70. } else {
  71. console.log("Resuming");
  72. pausedFor = 0;
  73. pauseLossStreak = 0;
  74. }
  75. }
  76.  
  77. if(pauseLossStreak >= pauseAfterNLosses) {
  78. console.log("Pausing for 1 of " + pauseForMGames + " games");
  79. pausedFor = 1;
  80. return;
  81. }
  82.  
  83. /********************/
  84.  
  85. console.log("Betting " + Math.round(bet/100));
  86.  
  87. engine.placeBet(Math.round(bet), cashout);
  88.  
  89. });
  90.  
  91. engine.on('game_crash', function(data) {
  92. lastCrash = data.game_crash;
  93.  
  94. if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
  95. return;
  96. };
  97.  
  98. lostLast = engine.lastGamePlay() == 'LOST';
  99.  
  100. console.log((lostLast ? "Lost" : "Won") + " this game.");
  101.  
  102. /********************/
  103.  
  104. if(!lostLast) {
  105. bet = baseBet;
  106. pauseLossStreak = 0;
  107. } else {
  108. pauseLossStreak++;
  109. bet = bet * multiplier;
  110. }
  111.  
  112. /********************/
  113. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement