Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Average bot by Bator (other BustaBit accounts: Bator2, TheRealNyanCat)
- * The bot will bet your baseBet and try to cash out at the average of the last 4 games.
- *
- *
- */
- var baseBet = 1;
- var maxMultiplier = 10; //If the average is above this, it will cash out at this multiplier
- var stopLoss = 100; //Stop after losing this much
- var stopProfit= 100; //Stop after winning this much
- //------------------------
- var tempCrash;
- var gameAverage;
- var currentGame = 0;
- var game1;
- var game2;
- var game3;
- var game4;
- //-------Do not edit below this line!---------------
- var startingBalance = engine.getBalance();
- var tempCrash;
- var currentGame = 0;
- // On a game starting
- engine.on('game_starting', function(info)
- {
- if (currentGame < 1)
- {
- console.log("Bot started. It will wait 4 games until it starts betting.");
- currentGame = currentGame + 1;
- }
- else if (currentGame >= 1)
- {
- engine.placeBet(baseBet*100, gameAverage, 1);
- currentGame = currentGame + 1;
- }
- });
- //On game crash.
- engine.on('game_crash', function(data) {
- console.log("The current game is:", currentGame);
- tempCrash = (data.game_crash / 100);
- console.log("Game crashed at:", tempCrash);
- if (engine.getBalance() < startingBalance - stopLoss*100){
- engine.stop();
- }
- if (engine.getBalance() > startingBalance + stopProfit*100){
- engine.stop();
- }
- if (currentGame == 1){
- game1 = tempCrash*100;
- }
- else if(currentGame == 2){
- game2 = tempCrash*100;
- }
- else if(currentGame == 3){
- game3 = tempCrash*100;
- }
- else if(currentGame == 4){
- game4 = tempCrash*100;
- }
- else if(currentGame >= 5){
- currentGame = 1;
- game1 = tempCrash*100;
- }
- gameAverage = Math.round((game1+game2+game3+game4)/4);
- console.log("Average:", gameAverage/100);
- if (gameAverage > maxMultiplier*100){
- console.log("Average is higher than your maxMultipler so we are betting at:", maxMultiplier);
- gameAverage = maxMultiplier*100;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement