//[WARNING] Use this script at your own risk, nobody is responsible if you lose money on bustabit when you use this bot. //Settings var GameMode = 4; //Default: 1 1 = Martingale, 2 = Paroli, 3 = D’Alembert, 4 = Pluscoup var BaseBet = 100; //Default: 100 This is the value of your first bet (in bits). var Multiplier = 1.25; //Default: 2.0 This is the multiplier where the bot will stop (not on all game modes!). 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. var MaxBet = 1000; //Default: 100000 The bot will never bet more than this amount (in bits). var UseChat = true; //Default: true If this is set to true the bot will show messages in the chatbox when you start the bot or when you win a decent amount of bits! // Don't change anything below this if you don't know what you are doing! var Username = engine.getUsername(); var StartBalance = engine.getBalance(); var CurrentGameID = -1; var FirstGame = true; var CurrentBet = BaseBet; var CurrentMultiplier = Multiplier; var d = new Date(); var StartTime = d.getTime(); // Check previous bet var LastBet = 0; var LastProfit = 0; var NewProfit = 0; // Paroli variable's var ParoliRound = 1; var ParoliGame = 1; // Pluscoup variable's var Unit = 1; var SessionProfit = 0; var MaxSessionProfit = Multiplier - 1; // Paroli Confirm dialog to set Multiplier to X2.0. if(GameMode == 2){ if (confirm("[BustaBot] Paroli is currently only available with the multiplier set to X2.0") == true) { // Do nothing and continue with the script. console.log('[BustaBot] Multiplier set to X2.0'); } else { // Canceled Paroli mode, bot stopped. console.log('[BustaBot] Canceled paroli mode on multiplier X2.0'); engine.stop(); } } // D'alambert Confirm dialog to set Multiplier to X2.0. if(GameMode == 3){ if (confirm("[BustaBot] D'alambert is currently only available with the multiplier set to X2.0") == true) { // Do nothing and continue with the script. console.log('[BustaBot] Multiplier set to X2.0'); } else { // Canceled Paroli mode, bot stopped. console.log('[BustaBot] Canceled D alambert mode on multiplier X2.0'); engine.stop(); } } // Welcome message console.log('[BustaBot] Welcome ' + Username); console.log('[BustaBot] Your start ballance is: ' + (StartBalance / 100).toFixed(2) + ' bits'); if (UseChat) { var gamemode = ''; if(GameMode == 1){ gamemode = '1 (Martingale)'; } if(GameMode == 2){ gamemode = '2 (Paroli)'; } if(GameMode == 3){ gamemode = "3 (D'alambert)"; } if(GameMode == 4){ gamemode = "4 (Pluscoup)"; } engine.chat('[BustaBot] ' + Username + ' started BustaBot on game mode: ' + gamemode); } //check if the multiplier is 1 or higher. if(Multiplier < 1){ console.log('[BustaBot] Your multiplier must be 1.0 or higher.'); engine.stop(); } if(GameMode < 1 || GameMode > 4){ console.log('[BustaBot] Select a game mode between 1 and 4.'); engine.stop(); } // Start of a game. engine.on('game_starting', function(info) { CurrentGameID = info.game_id; console.log('---------------------'); console.log('[BustaBot] Game #' + CurrentGameID + ' started.'); if (engine.lastGamePlay() == 'LOST' && !FirstGame) { // Check if you lost the last game if(GameMode == 1){// Martingale NewProfit = LastBet + LastProfit; CurrentBet = Math.round((NewProfit / LastProfit) * LastBet); CurrentMultiplier = Multiplier; } if(GameMode == 2){// Paroli CurrentMultiplier = 2; CurrentBet = BaseBet; console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame); ParoliGame++; } if(GameMode == 3){// D’Alembert CurrentMultiplier = 2; CurrentBet = LastBet + dalembert; } if(GameMode == 4){// Pluscoup SessionProfit = SessionProfit - Unit; CurrentBet = LastBet; CurrentMultiplier = Multiplier; } } else { // If won last game or first game if(GameMode == 1){// Martingale CurrentBet = BaseBet; CurrentMultiplier = Multiplier; } if(GameMode == 2){// Paroli CurrentMultiplier = 2; if(ParoliGame == 1){ CurrentBet = BaseBet; } if(ParoliGame == 2){ CurrentBet = LastBet * 2; } if(ParoliGame == 3){ CurrentBet = LastBet * 2; } console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame); ParoliGame++; } if(GameMode == 3){// D'alambert CurrentMultiplier = 2; if(!FirstGame) { CurrentBet = LastBet - dalembert; } } if(GameMode == 4){// Pluscoup CurrentMultiplier = Multiplier; if(SessionProfit >= MaxSessionProfit) { SessionProfit = 0; Unit = 1; } else { Unit ++; while((((Unit * Multiplier) - Unit) + SessionProfit) > MaxSessionProfit){ Unit = Unit - 1; } } if(FirstGame){ Unit = 1;} if(Unit < 1){ Unit = 1; } CurrentBet = Unit * BaseBet; } } //check if current bet is 0 or negative if(CurrentBet < 1){ CurrentBet = 1; } //Check if a Paroli round is finished and start new round for the next bet. if(ParoliGame == 4){ ParoliGame = 1; ParoliRound++; } // First game is set to false. FirstGame = false; if (CurrentBet <= engine.getBalance()) { // Check if the balance is high enough to place the bet. if (CurrentBet > (MaxBet)) { // Check if the bet is higher than the given maximum bet by the user. console.warn('[BustaBot] Current bet exceeds your maximum bet. Your bet is changed to: ' + (MaxBet) + ' bits'); CurrentBet = MaxBet; } console.log('[BustaBot] Betting ' + (CurrentBet) + ' bits, cashing out at ' + CurrentMultiplier + 'x'); engine.placeBet(CurrentBet * 100, Math.round(CurrentMultiplier * 100), false); LastBet = CurrentBet; LastProfit = (CurrentBet * CurrentMultiplier) - CurrentBet; } else { // Not enough balance to place the bet. if (engine.getBalance() < 100) { // Stop the bot if balance is less then 100 bits. console.error('[BustaBot] Your account balance is to low to place a bet.... BustaBot will close now.'); engine.stop(); } else { // Changes basebet to 1 if balance is to low to make the current bet. console.warn('[BustaBot] Your balance is to low to bet: ' + (CurrentBet / 100) + ' bits.'); BaseBet = 1; } } }); engine.on('cashed_out', function(data) { if (data.username == engine.getUsername()) { console.log('[BustaBot] Successfully cashed out at ' + (data.stopped_at / 100) + 'x'); SessionProfit = SessionProfit + (Unit * MaxSessionProfit); } }); engine.on('game_crash', function(data) { var newdate = new Date(); var timeplaying = ((newdate.getTime() - StartTime) / 1000) / 60; console.log('[BustaBot] Game crashed at ' + (data.game_crash / 100) + 'x'); console.log('[BustaBot] Session profit: ' + ((engine.getBalance() - StartBalance) / 100).toFixed(2) + ' bits in ' + Math.round(timeplaying) + ' minutes.'); });