BustaBit AutoBet Bot Script 2


SUBMITTED BY: raiborne

DATE: Nov. 17, 2015, 1:55 p.m.

FORMAT: Text only

SIZE: 5.0 kB

HITS: 355

  1. To use this code on bustabit, first goto the auto menu on the play screen, then change your selection from autobit to custom. After you have done this, delete the current text and post this code in the custom box and run! It should be autopilot from there. To maximize your profits you could run this bot 24/7 on a rdp. The bot will auto-calculate and take a percentage of your balance to use.
  2. /* Copyright
  3. * Made for HF
  4. * Re-Coded v.2.1
  5. */
  6. // Settings
  7. var baseBet = 10; // In bits
  8. var baseMultiplier = 1.10; // Target multiplier: 1.13 recommended
  9. var variableBase = true; // Enable variable mode (very experimental), read streakSecurity.
  10. var streakSecurity = 4; // Number of loss-streak you wanna be safe for. Increasing this massively reduces the variableBase calculated. (1-loss = 20%, 2-loss = 5%, 3-loss = 1.25% of your maximum balance). Recommended: 2+
  11. var maximumBet = 999999; // Maximum bet the bot will do (in bits).
  12. // Variables - Do not touch!
  13. var baseSatoshi = baseBet * 100; // Calculated
  14. var currentBet = baseSatoshi;
  15. var currentMultiplier = baseMultiplier;
  16. var currentGameID = -1;
  17. var firstGame = true;
  18. var lossStreak = 0;
  19. var coolingDown = false;
  20. // Initialization
  21. console.log('====== Procon\'s BustaBit Bot ======');
  22. console.log('My username is: ' + engine.getUsername());
  23. console.log('Starting balance: ' + (engine.getBalance() / 100).toFixed(2) + ' bits');
  24. var startingBalance = engine.getBalance();
  25. if (variableBase) {
  26. console.warn('[WARN] Variable mode is enabled and not fully tested. Bot is resillient to ' + streakSecurity + '-loss streaks.');
  27. }
  28. // On a game starting, place the bet.
  29. engine.on('game_starting', function(info) {
  30. console.log('====== New Game ======');
  31. console.log('[Bot] Game #' + info.game_id);
  32. currentGameID = info.game_id;
  33. if (coolingDown) {
  34. if (lossStreak == 0) {
  35. coolingDown = false;
  36. }
  37. else {
  38. lossStreak--;
  39. console.log('[Bot] Cooling down! Games remaining: ' + lossStreak);
  40. return;
  41. }
  42. }
  43. if (!firstGame) { // Display data only after first game played.
  44. console.log('[Stats] Session profit: ' + ((engine.getBalance() - startingBalance) / 100).toFixed(2) + ' bits');
  45. console.log('[Stats] Profit percentage: ' + (((engine.getBalance() / startingBalance) - 1) * 100).toFixed(2) + '%');
  46. }
  47. if (engine.lastGamePlay() == 'LOST' && !firstGame) { // If last game loss:
  48. lossStreak++;
  49. var totalLosses = 0; // Total satoshi lost.
  50. var lastLoss = currentBet; // Store our last bet.
  51. while (lastLoss >= baseSatoshi) { // Until we get down to base bet, add the previous losses.
  52. totalLosses += lastLoss;
  53. lastLoss /= 4;
  54. }
  55. if (lossStreak > streakSecurity) { // If we're on a loss streak, wait a few games!
  56. coolingDown = true;
  57. return;
  58. }
  59. currentBet *= 4; // Then multiply base bet by 4!
  60. currentMultiplier = 1 + (totalLosses / currentBet);
  61. }
  62. else { // Otherwise if win or first game:
  63. lossStreak = 0; // If it was a win, we reset the lossStreak.
  64. if (variableBase) { // If variable bet enabled.
  65. // Variable mode resists (currently) 1 loss, by making sure you have enough to cover the base and the 4x base bet.
  66. var divider = 100;
  67. for (i = 0; i < streakSecurity; i++) {
  68. divider += (100 * Math.pow(4, (i + 1)));
  69. }
  70. newBaseBet = Math.min(Math.max(1, Math.floor(engine.getBalance() / divider)), maximumBet * 100); // In bits
  71. newBaseSatoshi = newBaseBet * 100;
  72. if ((newBaseBet != baseBet) || (newBaseBet == 1)) {
  73. console.log('[Bot] Variable mode has changed base bet to: ' + newBaseBet + ' bits');
  74. baseBet = newBaseBet;
  75. baseSatoshi = newBaseSatoshi;
  76. }
  77. }
  78. // Update bet.
  79. currentBet = baseSatoshi; // in Satoshi
  80. currentMultiplier = baseMultiplier;
  81. }
  82. // Message and set first game to false to be sure.
  83. console.log('[Bot] Betting ' + (currentBet / 100) + ' bits, cashing out at ' + currentMultiplier + 'x');
  84. firstGame = false;
  85. if (currentBet <= engine.getBalance()) { // Ensure we have enough to bet
  86. if (currentBet > (maximumBet * 100)) { // Ensure you only bet the maximum.
  87. console.warn('[Warn] Bet size exceeds maximum bet, lowering bet to ' + (maximumBet * 100) + ' bits');
  88. currentBet = maximumBet;
  89. }
  90. engine.placeBet(currentBet, Math.round(currentMultiplier * 100), false);
  91. }
  92. else { // Otherwise insufficent funds...
  93. if (engine.getBalance() < 100) {
  94. console.error('[Bot] Insufficent funds to do anything... stopping');
  95. engine.stop();
  96. }
  97. else {
  98. console.warn('[Bot] Insufficent funds to bet ' + (currentBet / 100) + ' bits.');
  99. console.warn('[Bot] Resetting to 1 bit basebet');
  100. baseBet = 1;
  101. baseSatoshi = 100;
  102. }
  103. }
  104. });
  105. engine.on('game_started', function(data) {
  106. if (!firstGame) { console.log('[Bot] Game #' + currentGameID + ' has started!'); }
  107. });
  108. engine.on('cashed_out', function(data) {
  109. if (data.username == engine.getUsername()) {
  110. console.log('[Bot] Successfully cashed out at ' + (data.stopped_at / 100) + 'x');
  111. }
  112. });
  113. engine.on('game_crash', function(data) {
  114. if (!firstGame) { console.log('[Bot] Game crashed at ' + (data.game_crash / 100) + 'x'); }
  115. });

comments powered by Disqus