SHARE
TWEET

Untitled

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