Advertisement
Guest User

BustaBit-LastCrash-Script

a guest
Apr 28th, 2017
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*   LastCrash bot by Bator (other BustaBit accounts: Bator2, TheRealNyanCat)
  2. *    The bot tries to get the multiplier where the last game crashed.
  3. *    e.g. Last game crashed at 3.4x, Next game cashout will be 3.4x
  4. */
  5.  
  6.  
  7. //-----------Settings---------------------------------
  8. var baseBet = 1; //The amount you want to bet. (in bits)
  9. var baseMultiplier = 1.01; //This is the multiplier the bot will cash out at on the first game.
  10. var maxCrash = 3; //If the game crashes above this, the next cashout will be maxCashOut
  11. var maxCashOut = 1.5; //It the game crashes above maxCrash, the next cashout will be this
  12. var stopLoss = 100; //Stop after losing this much
  13. var stopProfit= 100; //Stop after winning this much
  14. var minCashout = 1.1; //This is the minimum cashout
  15.  
  16. //-------Do not edit below this line!---------------
  17. var startingBalance = engine.getBalance();
  18. var tempCrash;
  19. var currentGame = 0;
  20.  
  21. // On a game starting
  22. engine.on('game_starting', function(info)
  23. {
  24.  
  25.     if (currentGame < 1)
  26.      {
  27.           engine.placeBet(baseBet*100, baseMultiplier*100, 1);
  28.           currentGame = currentGame + 1;
  29.      }
  30.     else if (currentGame >= 1)
  31.      {
  32.       engine.placeBet(baseBet*100, tempCrash*100, 1);
  33.           currentGame = currentGame + 1;
  34.      }
  35. });
  36.  
  37.  
  38. //On game crash.
  39. engine.on('game_crash', function(data) {
  40.     console.log("The current game is:", currentGame);
  41.     tempCrash = (data.game_crash / 100);
  42.     console.log("Game crashed at:", tempCrash);
  43.   if (tempCrash >= maxCrash){
  44.       tempCrash = maxCashOut;
  45.   }
  46.  
  47.   if (tempCrash <= minCashout){
  48.       tempCrash = minCashout;
  49.   }
  50.  
  51.   if (engine.getBalance() < startingBalance - stopLoss*100){
  52.       engine.stop();
  53.      }
  54.  
  55.   if (engine.getBalance() > startingBalance + stopProfit*100){
  56.       engine.stop();
  57.      }
  58.  
  59.  
  60. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement