Advertisement
Guest User

LastCrash-BustaBit-Scriptt

a guest
Apr 28th, 2017
86
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 try to get the multiplier where the last game crashed.
  3. *    eg. 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, place the bet.
  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. /*engine.on('game_started', function( data ){
  38. *    if (engine.getCurrentPayout() >= 3.00){
  39. *        engine.cashOut();
  40. *        }
  41. *});
  42. */
  43.  
  44. //On game crash.
  45. engine.on('game_crash', function(data) {
  46.     console.log("The current game is:", currentGame);
  47.     tempCrash = (data.game_crash / 100);
  48.     console.log("Game crashed at:", tempCrash);
  49.   if (tempCrash >= maxCrash){
  50.       tempCrash = maxCashOut;
  51.   }
  52.  
  53.   if (tempCrash <= minCashout){
  54.       tempCrash = minCashout;
  55.   }
  56.  
  57.   if (engine.getBalance() < startingBalance - stopLoss){
  58.       engine.stop();
  59.      }
  60.  
  61.   if (engine.getBalance() > startingBalance + stopProfit){
  62.       engine.stop();
  63.      }
  64.  
  65.  
  66. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement