SHARE
TWEET

Untitled

a guest Apr 26th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.     msg: { type: 'noop', label: 'R.I.P SellingScripts you will be missed.' },
  3. };
  4.  
  5. var betArray = [2,5,10,20,50,100,200,400,800,1600,3200,6400,12800]; // 0 is skip and other is in Bits.
  6. var cashArray =[2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.7,2.7,2.7]; // must have 0 in same place as in betArray to cashout nicely.
  7.  
  8. var index = 0;
  9. var bet = betArray[index];
  10. var cashout = cashArray[index];
  11. var roundCounter = 0;
  12.  
  13. var losestreak=0;
  14. var maxLosestreak=3;
  15.  
  16. var skippedRounds=0;
  17. var maxSkippedRounds=1000000;
  18.  
  19. var skipAfterGreen=0;
  20. var maxFirstSkipAfterGreen=3;
  21. var maxSkipAfterGreen = maxFirstSkipAfterGreen -1;
  22.  
  23. log('Welcome script is running...');
  24. log('Your balance is...' + (userInfo.balance / 100) + ' bits');
  25. log('Good Luck!');
  26.  
  27.  
  28. // Main:
  29. engine.on("GAME_STARTING", function() {
  30.    
  31.     if(losestreak<maxLosestreak){
  32.         engine.bet(bet * 100, cashout);
  33.     }else if (skipAfterGreen > maxSkipAfterGreen) {
  34.         engine.bet(bet * 100, cashout);
  35.         skipAfterGreen=0;
  36.         losestreak=0;
  37. } else {
  38.         if(losestreak>=maxLosestreak){
  39.            skippedRounds+=1;
  40.            if(skippedRounds>=maxSkippedRounds){
  41.              skippedRounds=0;
  42.              losestreak=0;
  43.            }
  44.         }
  45.         log('Skipping the Next Round');
  46.     }
  47.        
  48. });
  49.  
  50. engine.on("GAME_ENDED", function() {
  51.  
  52.     var lastGame = engine.history.first();
  53.  
  54.    
  55.     if (!lastGame.wager & roundCounter !== 0) {
  56.         if(lastGame.bust >= cashout){
  57. skipAfterGreen++;  
  58.             log('The red streak ended, waiting for ' + maxFirstSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);        
  59.  
  60.         }
  61.        
  62.         return;
  63.     }
  64.    
  65.    
  66.     if(!lastGame.cashedAt) {
  67.             log('We lost.');
  68.             index++;
  69.             bet = betArray[index];
  70.             cashout = cashArray[index];
  71.             losestreak++;
  72. roundCounter++;
  73.            
  74.         }
  75.     else{
  76.             log('We won.');
  77.             index = 0;
  78.             bet = betArray[index];
  79.             losestreak = 0;
  80.             cashout = cashArray[index];
  81.      roundCounter++;
  82.       }
  83.    
  84.  
  85.    
  86. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top