Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* LastCrash bot by Bator (other BustaBit accounts: Bator2, TheRealNyanCat)
- * The bot tries to get the multiplier where the last game crashed.
- * e.g. Last game crashed at 3.4x, Next game cashout will be 3.4x
- */
- //-----------Settings---------------------------------
- var baseBet = 1; //The amount you want to bet. (in bits)
- var baseMultiplier = 1.01; //This is the multiplier the bot will cash out at on the first game.
- var maxCrash = 3; //If the game crashes above this, the next cashout will be maxCashOut
- var maxCashOut = 1.5; //It the game crashes above maxCrash, the next cashout will be this
- var stopLoss = 100; //Stop after losing this much
- var stopProfit= 100; //Stop after winning this much
- var minCashout = 1.1; //This is the minimum cashout
- //-------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)
- {
- engine.placeBet(baseBet*100, baseMultiplier*100, 1);
- currentGame = currentGame + 1;
- }
- else if (currentGame >= 1)
- {
- engine.placeBet(baseBet*100, tempCrash*100, 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 (tempCrash >= maxCrash){
- tempCrash = maxCashOut;
- }
- if (tempCrash <= minCashout){
- tempCrash = minCashout;
- }
- if (engine.getBalance() < startingBalance - stopLoss*100){
- engine.stop();
- }
- if (engine.getBalance() > startingBalance + stopProfit*100){
- engine.stop();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement