SellingScripts

Bustabit

Jan 9th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 KB | None | 0 0
  1. var config = {
  2. msg: { type: 'noop', label: '-- Created By SellingScripts --' },
  3. baseBet: { value: 10000, type: 'balance', label: 'Base Bet' },
  4. crashTarget: { value: 5, type: 'multiplier', label: 'Cash Out' },
  5. multiOnloss: { value: 1.25, type: 'multiplier', label: 'Increase on Loss - First Cash Out' },
  6. playafterXgames: { value: 5, type: 'multiplier', label: 'Only Play After X Games' },
  7. underXgames: { value: 2500, type: 'multiplier', label: 'Only Play After X Games UNDER this multiplier' },
  8. maxLosestreak1: { value: 2, type: 'text', label: 'Number of Reds Before Pausing' },
  9. maxSkipAfterGreen1: { value: 2, type: 'text', label: 'Number of Greens Before Resuming' },
  10. secondCrashTarget: { value: 3, type: 'multiplier', label: 'New Cash Out After Resuming' },
  11. secondMultiOnLoss1: { value: 1.6, type: 'text', label: 'Increase on Loss - Second Cash Out' },
  12. };
  13.  
  14. log('Script is running..');
  15. log('Welcome! Your balance is ' + userInfo.balance / 100 + ' bits!');
  16. log('Good Luck =)');
  17.  
  18.  
  19.  
  20. var maxLosestreak = parseFloat(config.maxLosestreak1.value);
  21. var maxSkipAfterGreen = parseFloat(config.maxSkipAfterGreen1.value);
  22. var secondMultiOnLoss = parseFloat(config.secondMultiOnLoss1.value);
  23.  
  24.  
  25.  
  26.  
  27. var lastBet;
  28.  
  29. var losestreak = 0;
  30. var skipAfterGreen = 0;
  31. var roundCounter = 0;
  32.  
  33. var isLosestreak = false;
  34. var isAfterGreen = false;
  35.  
  36.  
  37. var currentBet = 0;
  38. var Xgames = 0;
  39.  
  40.  
  41.  
  42. //Events to follow
  43. engine.on('GAME_STARTING', ongamestart);
  44. engine.on('GAME_ENDED', ongameend);
  45.  
  46. //Game Starting Event
  47. function ongamestart() {
  48. if (isAfterGreen) {
  49. engine.bet(roundBit(currentBet), config.secondCrashTarget.value);
  50. skipAfterGreen = 0;
  51. log("Betting: " + roundBit(currentBet) / 100 + " bits for ");
  52. log("Gay 1");
  53. } else {
  54. engine.bet(roundBit(currentBet), config.crashTarget.value);
  55. log("Betting: " + roundBit(currentBet) / 100 + " bits");
  56. log("Gay 2");
  57. }
  58. }
  59.  
  60. //Game Ending Event
  61. function ongameend() {
  62. var lastGame = engine.history.first()
  63.  
  64. // Xgames counter
  65. if (lastGame.bust < config.underXgames.value) {
  66. Xgames++;
  67. } else {
  68. Xgames = 0;
  69. }
  70.  
  71. // Did we bet last round?
  72. if (lastGame.wager) {
  73. //We Won
  74. if (lastGame.cashedAt) {
  75. currentBet = 0;
  76. lastBet = 0;
  77. isAfterGreen = false;
  78. losestreak = 0;
  79. log("We won, cashed at: " + lastGame.cashedAt + "x");
  80. log("Gay 5");
  81. } else {
  82. losestreak++;
  83. log("We lost!");
  84. log("Gay 6");
  85. if (losestreak >= maxLosestreak) {
  86. if (isLosestreak === false) {
  87. lastBet = currentBet*config.multiOnloss.value;
  88. log("First gay, " + lastBet);
  89. log("Gay 7");
  90. }
  91. currentBet = 0;
  92. isLosestreak = true;
  93. log("We will pause. Maximum of " + maxLosestreak + " losses reached.");
  94. log("Gay 8");
  95. } else {
  96. if (isAfterGreen) {
  97. currentBet *= secondMultiOnloss;
  98. isLosestreak = false;
  99. log('We lost. Betting', roundBit(currentBet) / 100, 'next round');
  100. log("Gay 9");
  101. } else {
  102. currentBet *= config.multiOnloss.value;
  103. isLosestreak = false;
  104. log('We lost. Betting', roundBit(currentBet) / 100, 'next round');
  105. log("Gay 10");
  106. }
  107. }
  108. }
  109. } else {
  110. if (isLosestreak === true && roundCounter !== 0) {
  111. if (lastGame.bust >= 2) {
  112. skipAfterGreen++;
  113. log("Gay 12");
  114. losestreak = 0;
  115. log('The red streak ended, waiting for ' + maxSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);
  116. if (skipAfterGreen >= maxSkipAfterGreen) {
  117. currentBet = lastBet;
  118. losestreak = 0;
  119. isAfterGreen = true;
  120. isLosestreak = false;
  121. log("Yo Gay" + currentBet)
  122. log("Gay Gay" + skipAfterGreen + maxSkipAfterGreen);
  123. log("We will resume. There has been " + maxSkipAfterGreen " greens.");
  124. log("Gay 13");
  125. }
  126. }
  127. } else {
  128. if (Xgames >= config.playafterXgames.value) {
  129. currentBet = config.baseBet.value;
  130. log('X Games target of', config.playafterXgames.value, 'has been met. Next round we will bet. ');
  131. isAfterGreen = false;
  132. losestreak = 0;
  133. log("Gay 14");
  134. } else {
  135. currentBet = 0;
  136. log('X Games count', Xgames);
  137. losestreak = 0;
  138. log("Gay 15");
  139. }
  140. }
  141. }
  142. roundCounter++;
  143. }
  144.  
  145. //Math Rounding Function
  146. function roundBit(bet) {
  147. return Math.round(bet / 100) * 100;
  148. }
Add Comment
Please, Sign In to add comment