Advertisement
curly4

Bustabit

Nov 15th, 2021
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var CashoutPercentage=150;
  2. var BitsToBetBase=5;
  3. var BitsToBet=BitsToBetBase;
  4. var skipenabled = false;
  5. var skipcount = 0;
  6. var conseclosses =0;
  7.  
  8.  
  9.  
  10. engine.on('game_starting', function(data) {
  11.    
  12.  
  13.    
  14.    
  15.     if (skipenabled == true) {
  16.         skipcount++;
  17.         console.log('skipped');
  18.  
  19.         if (skipcount >= 2) {
  20.             console.log('playing next round');
  21.             skipcount = 0;
  22.             skipenabled = false;
  23.         }
  24.     } else {
  25.         console.log('%cCashout: '+ CashoutPercentage, 'color: blue');
  26.         console.log('Bits Bet: ', BitsToBet);
  27.      
  28.        
  29.      
  30.          engine.placeBet(Math.floor(BitsToBet)*100 ,Math.floor(CashoutPercentage));
  31.     }
  32.  
  33.    
  34. });
  35.  
  36.  
  37. engine.on('game_crash', function(data) {
  38.  
  39.      if (engine.lastGamePlay() == 'LOST') {
  40.         conseclosses ++;
  41.  
  42.         BitsToBet*=3.1;
  43.        
  44.      
  45.  
  46.     } else if (engine.lastGamePlay() == 'WON'){
  47.         conseclosses = 0;
  48.      
  49.         BitsToBet=BitsToBetBase;
  50.      
  51.     }
  52.  
  53.     if (conseclosses >= 2) {
  54.         skipenabled = true;
  55.     }
  56.    
  57.     if((conseclosses >= 2)&&(engine.lastGamePlay() == 'NOT_PLAYED'))
  58.         conseclosses = 0;
  59.  
  60.  
  61.    
  62. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement