Advertisement
Guest User

Dexon's Bustabit script. (Customized for slavadp1)

a guest
Nov 28th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  Dexon's Bustabit script. (Customized for slavadp1)
  2.  *   Current status: Little more safer but greedy...
  3.  *  Version 1.2.4
  4.  *  + When editing the variables, be careful to not remove any ';' or ',' character.
  5.  */
  6.  
  7. var baseBet     =   1, // 1 bits
  8.     baseCashout =   1.01, // Cashout at x1.01
  9.     maxLoss     =   4; // Amount of loss the bot will keep betting.
  10.  
  11. var Simulation = false; // (true/false) Setting this to true will make the bot to simulate a betting run.
  12.  
  13. //// ^EDIT OVER THIS LINE^ \\\\
  14.  
  15. var bet = baseBet;
  16. var cashout = baseCashout;
  17. var lastBet = bet;
  18. var lossStreak = 0;
  19. var firstGame = true;
  20. var profit = 0;
  21. var chill = false;
  22. var wins = 0;
  23. var loss = 0;
  24.  
  25. engine.on('game_starting', function(){
  26.     if(lossStreak<maxLoss){
  27.         console.log("Betting "+bet+" Bits on x"+cashout);
  28.         if(Simulation){
  29.             lastBet = bet;
  30.         }else{
  31.             engine.placeBet(bet*100, (cashout*100), function(){
  32.                 lastBet = bet;
  33.             });
  34.         }
  35.     }else{
  36.         console.log("Max loss reached! Passing one game then resetarting.");
  37.         chill = true;
  38.         bet = baseBet;
  39.         cashout = baseCashout;
  40.         lossStreak = 0;
  41.     }
  42. });
  43.  
  44. engine.on('game_crash', function(data){
  45.     if(data.game_crash/100<cashout && !firstGame && !chill){
  46.         loss++;
  47.         console.log("Game crashed under x"+cashout+" :( ("+wins+" Wins | "+loss+" Loses)");
  48.         profit -= lastBet;
  49.         console.log("Current Profit: "+profit.toFixed(2));
  50.         lossStreak++;
  51.         if(lossStreak==1){
  52.             cashout = 1.25;
  53.             bet *= 4;
  54.         }
  55.         if(lossStreak>1){
  56.             cashout = 1.31;
  57.             bet *= 4;
  58.         }
  59.     }else{
  60.         if(!firstGame && !chill){
  61.             wins++;
  62.             console.log("Successful bet! :) ("+wins+" Wins | "+loss+" Loses)");
  63.             profit += ((lastBet*cashout)-lastBet);
  64.             console.log("Current Profit: "+profit.toFixed(2));
  65.             bet = baseBet;
  66.             cashout = baseCashout;
  67.             lossStreak = 0;
  68.         }
  69.     }
  70.     firstGame = false;
  71.     if(chill) chill = false;
  72. });
  73.  
  74. function roundToTwo(num) {    
  75.     return +(Math.round(num + "e+2")  + "e-2");
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement