dergong

Bustabit Script 4 Game Modes

Mar 1st, 2016
619
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //[WARNING] Use this script at your own risk, nobody is responsible if you lose money on bustabit when you use this bot.
  2.  
  3. // Earn 30000 free Satoshis playmoney daily with this Bitcoin Faucet Rotator: http://freebitcoins.geldgefällt.de
  4.  
  5. //Settings
  6. var GameMode = 1;               //Default: 1        1 = Martingale, 2 = Paroli, 3 = D’Alembert, 4 = Pluscoup
  7. var MaxProfitMode = true;       //Default: true     If this setting is true, you will always bet ("PercentOfTotal" / 100 * your balance), if this setting is false you will just bet your BaseBet.
  8. var PercentOfTotal = .025;       //Default: 1        If MaxProfitMode is true, your BaseBet will always be ("PercentOfTotal" / 100 * your balance). Default 0.1% of your total balance.
  9. var BaseBet = 1;              //Default: 100      This is the value of your first bet (in bits).
  10. var Multiplier = 1.45;              //Default: 2.0      This is the multiplier where the bot will stop (not on all game modes!).
  11. var dalembert = 1;              //Default: 1        When you play D'alembert you will raise your bet after a loss or lower your bet after a win with this amount.
  12. var MaxBet = 800;           //Default: 1000000  The bot will never bet more than this amount (in bits).
  13. var MaxProfit = 10000;          //Default: 100000   The bot will stop when your total balance is higher that this value (in bits).
  14. var MaxLoss = 1000;         //Default: 25000    You will never lose more than this amount (in bits). If a bet would exceed this amount, the bot stops automatically.
  15. var RandomBreak = 5;            //Default: 0        Before the bot places a bet it generates a random number between 0 and 100, if that number is lower than "RandomBreak" the bot will take a break for 1 game. (This will not happen on a loss streak )
  16.  
  17. // Don't change anything below this if you don't know what you are doing!
  18. var Username = engine.getUsername();
  19. var StartBalance = engine.getBalance();
  20. var CurrentGameID = -1;
  21. var FirstGame = true;
  22. var CurrentBet = BaseBet;
  23. var CurrentMultiplier = Multiplier;
  24. var d = new Date();
  25. var StartTime = d.getTime();
  26. var LastResult = "WON";
  27. var Break = false;
  28. // Check previous bet
  29. var LastBet = 0;
  30. var LastProfit = 0;
  31. var NewProfit = 0;
  32. // Paroli variable's
  33. var ParoliRound = 1;
  34. var ParoliGame = 1;
  35. var StartBet = BaseBet;
  36. // Pluscoup variable's
  37. var Unit = 1;
  38. var SessionProfit = 0;
  39. var MaxSessionProfit = Multiplier - 1;
  40.  
  41. // Paroli Confirm dialog to set Multiplier to X2.0.
  42. if(GameMode == 2){
  43.     if (confirm("[BustaBot] Paroli is currently only available with the multiplier set to X2.0") == true) {
  44.        // Do nothing and continue with the script.
  45.        console.log('[BustaBot] Multiplier set to X2.0');
  46.     } else {
  47.         // Canceled Paroli mode, bot stopped.
  48.         console.log('[BustaBot] Canceled paroli mode on multiplier X2.0');
  49.         engine.stop();
  50.     }
  51. }
  52.  
  53. // D'alambert Confirm dialog to set Multiplier to X2.0.
  54. if(GameMode == 3){
  55.     if (confirm("[BustaBot] D'alambert is currently only available with the multiplier set to X2.0") == true) {
  56.        // Do nothing and continue with the script.
  57.        console.log('[BustaBot] Multiplier set to X2.0');
  58.     } else {
  59.         // Canceled Paroli mode, bot stopped.
  60.         console.log('[BustaBot] Canceled D alambert mode on multiplier X2.0');
  61.         engine.stop();
  62.     }
  63. }
  64.  
  65. // Welcome message
  66. console.log('[BustaBot] Welcome ' + Username);
  67. console.log('[BustaBot] Your start ballance is: ' + (StartBalance / 100).toFixed(2) + ' bits');
  68.  
  69. //check if the multiplier is 1 or higher.
  70. if(Multiplier < 1){
  71.     console.log('[BustaBot] Your multiplier must be 1.0 or higher.');
  72.     engine.stop();
  73. }
  74.  
  75. if(GameMode < 1 || GameMode > 4){
  76.     console.log('[BustaBot] Select a game mode between 1 and 4.');
  77.     engine.stop();
  78. }
  79.  
  80.  
  81. // Start of a game.
  82. engine.on('game_starting', function(info) {
  83.     CurrentGameID = info.game_id;
  84.     console.log('---------------------');
  85.     console.log('[BustaBot] Game #' + CurrentGameID + ' started.');
  86.    
  87.     var random = randomNumber(1,100);
  88.    
  89.     if(random < RandomBreak){
  90.         console.log("Taking a break this round.");
  91.         Break = true;
  92.     }
  93.    
  94.     if(Break == false){
  95.    
  96.         if(MaxProfitMode == true){
  97.             BaseBet = Math.round((PercentOfTotal / 100) * (engine.getBalance() / 100).toFixed(2));
  98.         }
  99.        
  100.         if (LastResult == 'LOST' && !FirstGame) { // Check if you lost the last game
  101.             if(GameMode == 1){// Martingale
  102.                 NewProfit = LastBet + LastProfit;
  103.                 CurrentBet = Math.round((NewProfit / LastProfit) * LastBet);
  104.                 CurrentMultiplier = Multiplier;
  105.             }
  106.            
  107.             if(GameMode == 2){// Paroli
  108.                 CurrentMultiplier = 2;
  109.                 CurrentBet = StartBet;
  110.                 console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame);
  111.                 ParoliGame++;
  112.             }
  113.            
  114.             if(GameMode == 3){// D’Alembert
  115.                 CurrentMultiplier = 2;
  116.                 CurrentBet = LastBet + dalembert;
  117.             }
  118.            
  119.             if(GameMode == 4){// Pluscoup
  120.                 SessionProfit = SessionProfit - Unit;
  121.                 CurrentBet = LastBet;
  122.                 CurrentMultiplier = Multiplier;
  123.             }
  124.         }
  125.         else { // If won last game or first game
  126.        
  127.             if(GameMode == 1){// Martingale
  128.                 CurrentBet = BaseBet;
  129.                 CurrentMultiplier = Multiplier;
  130.             }
  131.            
  132.             if(GameMode == 2){// Paroli
  133.                 CurrentMultiplier = 2;
  134.                 if(ParoliGame == 1){
  135.                     StartBet = BaseBet;
  136.                     CurrentBet = StartBet;
  137.                 }
  138.                 if(ParoliGame == 2){
  139.                     CurrentBet = LastBet * 2;
  140.                 }
  141.                 if(ParoliGame == 3){
  142.                     CurrentBet = LastBet * 2;
  143.                 }
  144.                 console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame);
  145.                 ParoliGame++;
  146.             }
  147.            
  148.             if(GameMode == 3){// D'alambert
  149.                 CurrentMultiplier = 2;
  150.                 if(!FirstGame)
  151.                 {
  152.                     CurrentBet = LastBet - dalembert;
  153.                 }
  154.             }
  155.            
  156.             if(GameMode == 4){// Pluscoup
  157.                 CurrentMultiplier = Multiplier;
  158.                 if(SessionProfit >= MaxSessionProfit)
  159.                 {
  160.                 StartBet = BaseBet;
  161.                 SessionProfit = 0;
  162.                 Unit = 1;
  163.                 }
  164.                 else
  165.                 {
  166.                     Unit ++;
  167.                     while((((Unit * Multiplier) - Unit) + SessionProfit) > MaxSessionProfit){
  168.                         Unit = Unit - 1;
  169.                     }
  170.                 }
  171.                 if(FirstGame){ Unit = 1; StartBet = BaseBet;}
  172.                 if(Unit < 1){
  173.                     Unit = 1;
  174.                     StartBet = BaseBet;
  175.                 }
  176.                 CurrentBet = Unit * StartBet;  
  177.             }
  178.            
  179.         }
  180.        
  181.         //check if current bet is 0 or negative
  182.         if(CurrentBet < 1){
  183.             CurrentBet = 1;
  184.         }
  185.        
  186.         //Check if a Paroli round is finished and start new round for the next bet.
  187.         if(ParoliGame == 4){
  188.             ParoliGame = 1;
  189.             ParoliRound++;
  190.         }
  191.        
  192.         // First game is set to false.
  193.         FirstGame = false;
  194.         // Changing last result
  195.         LastResult = "LOST";
  196.         if(((engine.getBalance() / 100) - CurrentBet) < ((StartBalance / 100) - MaxLoss)){
  197.             console.log('[BustaBot] This bet would Exceed Your maximum loss, the bot will stop now... ');
  198.             engine.stop();
  199.         }else{
  200.             if (CurrentBet <= engine.getBalance()) { // Check if the balance is high enough to place the bet.
  201.                 if (CurrentBet > (MaxBet)) { // Check if the bet is higher than the given maximum bet by the user.
  202.                     console.warn('[BustaBot] Current bet exceeds your maximum bet. Your bet is changed to: ' + (MaxBet) + ' bits');
  203.                     CurrentBet = MaxBet;
  204.                 }
  205.                 console.log('[BustaBot] Betting ' + (CurrentBet) + ' bits, cashing out at ' + CurrentMultiplier + 'x');
  206.                 engine.placeBet(CurrentBet * 100, Math.round(CurrentMultiplier * 100), false);
  207.                 LastBet = CurrentBet;
  208.                 LastProfit = (CurrentBet * CurrentMultiplier) - CurrentBet;
  209.             }
  210.             else { // Not enough balance to place the bet.
  211.                 if (engine.getBalance() < 100) { // Stop the bot if balance is less then 100 bits.
  212.                     console.error('[BustaBot] Your account balance is to low to place a bet.... BustaBot will close now.');
  213.                     engine.stop();
  214.                 }
  215.                 else { // Changes basebet to 1 if balance is to low to make the current bet.
  216.                     console.warn('[BustaBot] Your balance is to low to bet: ' + (CurrentBet / 100) + ' bits.');
  217.                     BaseBet = 1;
  218.                 }
  219.             }
  220.         }
  221.     }
  222. });
  223.  
  224. engine.on('cashed_out', function(data) {
  225.     if (data.username == engine.getUsername()) {
  226.       console.log('[BustaBot] Successfully cashed out at ' + (data.stopped_at / 100) + 'x');
  227.       SessionProfit = SessionProfit + (Unit * MaxSessionProfit);
  228.       if(((engine.getBalance() - StartBalance) / 100).toFixed(2) > MaxProfit){
  229.         console.log('[BustaBot] Maximum profit reached, bot is shutting down...');
  230.         console.log('[BustaBot] You have made '+((engine.getBalance() - StartBalance) / 100).toFixed(2)+' profit this session.');
  231.         engine.stop();
  232.       }
  233.       LastResult = "WON";
  234.     }
  235. });
  236.  
  237.  
  238. engine.on('game_crash', function(data) {
  239.     var newdate = new Date();
  240.     var timeplaying = ((newdate.getTime() - StartTime) / 1000) / 60;
  241.     if(Break == false){
  242.         console.log('[BustaBot] Game crashed at ' + (data.game_crash / 100) + 'x');
  243.         console.log('[BustaBot] Session profit: ' + ((engine.getBalance() - StartBalance) / 100).toFixed(2) + ' bits in ' + Math.round(timeplaying) + ' minutes.');
  244.     } else{
  245.         Break = false;
  246.     }
  247. });
  248.  
  249. function randomNumber(min,max)
  250. {
  251.     return Math.floor(Math.random()*(max-min+1)+min);
  252. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×