SHARE
TWEET

Bustabit Random Script

a guest Mar 1st, 2016 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  Dexon's Random Bustabit script.
  2.  *   Current status: Random :D
  3.  *  Version 2.2.7
  4.  *  + When editing the variables, be careful to not remove any ';' or ',' character.
  5.  */
  6.  
  7. //[WARNING] Use this script at your own risk, nobody is responsible if you lose money on bustabit when you use this bot.
  8.  
  9. // Earn 30000 free Satoshis playmoney daily with this Bitcoin Faucet Rotator: http://freebitcoins.geldgefällt.de
  10.  
  11.  // The bot will bet a random number between `smallRangeBet` and `bigRangeBet` on a random cashout point.
  12.  
  13.  
  14. var smallRangeBet = 1, // (10 bits) can't bet less than 1 bit
  15.     bigRangeBet = 18, // (18 bits) cant bet more than your bankroll
  16.     maxBet = 900, // (900 bits, set to 0 to disable) The bot won't bet higher than this amount
  17.     maxCashout = 100; // (100x) this is the maximum cashout point the script can go
  18.  
  19. var Simulation = false; // (true/false) Setting this to true will make the bot to simulate a betting run.
  20.  
  21. // --- Edit over this line --- \\
  22.  
  23.  var totalLost = 0;
  24.  var lastBet = 0, bet = 0, profit = 0, wins = 0, loss = 0, firstgame = true, cashout;
  25.  var chilling = false;
  26. engine.on('game_starting', function(info) {
  27.     console.log((Simulation?"(SIMULATION) ": "")+"Current Profit: "+(profit/100).toFixed(2)+" bits ("+wins+" Wins | "+loss+" Loses)");
  28.     if(chilling) chilling = false;
  29.     if(firstgame) firstgame = false;
  30.     bet = Math.round(randomInt(smallRangeBet*100,bigRangeBet*100)/100)*100;
  31.     //var rand = randomInt(1,100);
  32.     for(var i=1;i<maxCashout+1;i+=0.01){
  33.         var rand = randomInt(1,100);
  34.         var curProb = (9900/(101*((i*100)-1)))*100;
  35.         if(rand==1 && i == 1){
  36.             console.log(" /!\\ 1% protection... Not betting!");
  37.             chilling = true;
  38.             break;
  39.         }
  40.         if(!chilling && rand>curProb){
  41.             cashout = i.toFixed(2);
  42.             cashout = Math.round(cashout*100);
  43.             if(totalLost>0){
  44.                 var onLossIncrement = Math.round((totalLost * (randomInt(30, 90)/100)/100))*100;
  45.                 bet += onLossIncrement;
  46.                 console.log((Simulation?"(SIMULATION) ": "")+"(Recovery mode) adding "+(onLossIncrement/100)+" bits to the bet amount");
  47.             }
  48.             if(bet > maxBet*100 && maxBet != 0){
  49.                 console.log(" /!\\ Bet amount higher than the maxBet. For your safty, setting the bet to: "+maxBet+" bits");
  50.                 bet = maxBet * 100;
  51.             }
  52.             if(!Simulation){
  53.                 engine.placeBet(bet, cashout, function(){
  54.                     console.log("Betting "+(bet/100)+" bits on x"+(cashout/100));
  55.                     lastBet = bet;
  56.                 });
  57.             }else{
  58.                 console.log("(SIMULATION) Betting "+(bet/100)+" bits on x"+(cashout/100));
  59.                 lastBet = bet;
  60.             }
  61.             break;
  62.         }
  63.     }
  64. });
  65.  
  66. engine.on('cashed_out', function(data) {
  67.     if(data.username==engine.getUsername()){
  68.         console.log("(Win) Cashed out at x"+(data.stopped_at/100));
  69.         wins++;
  70.         profit += ((lastBet*(data.stopped_at/100))-lastBet);
  71.         if(totalLost>0){
  72.             totalLost -= ((bet*(data.stopped_at/100))-lastBet);
  73.             if(totalLost<0) totalLost = 0;
  74.         }
  75.     }
  76. });
  77.  
  78. engine.on('game_crash', function(data) {
  79.     if(!chilling && data.game_crash < cashout && !firstgame){
  80.         console.log((Simulation?"(SIMULATION) ": "")+"(Lost)");
  81.         loss++;
  82.         profit -= lastBet;
  83.         totalLost += lastBet;
  84.     }
  85.     if(!chilling && data.game_crash >= cashout && Simulation && !firstgame){
  86.         console.log("(SIMULATION) (Win) Cashed out at x"+(cashout/100));
  87.         wins++;
  88.         profit += ((lastBet*(cashout/100))-lastBet);
  89.         if(totalLost>0){
  90.             totalLost -= ((bet*(cashout/100))-lastBet);
  91.             if(totalLost<0) totalLost = 0;
  92.         }
  93.     }
  94.     if(firstgame) firstgame = false;
  95. });
  96.  
  97. function randomInt(min,max){
  98.     return Math.floor(Math.random()*(max-min+1)+min);
  99. }
RAW Paste Data
Top