SHARE
TWEET

Untitled

a guest Apr 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.   betFewGames: { value: 10, type: 'multiplier' },
  3.   condition: { value: 1.5, type: 'multiplier' },
  4.   target: { value: 50000, type: 'multiplier' },
  5. };
  6.  
  7. log('Script is running..');
  8.  
  9. var betUnlock = false;
  10. var bustStorage = [];
  11. var initialCounter = 0;
  12. var counter = 0;
  13. var result = 0;
  14.  
  15. // ========================== CHANGE THESE ====================================
  16. var betAmount = [5,10,20,40,80,160,320,640];
  17. var betPayout = [2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4];
  18. // ========================== CHANGE THESE ====================================
  19.  
  20. engine.on('GAME_STARTING', function() {
  21.     if (userInfo.balance/100 > config.target.value) {
  22.         stop('-- TARGET BALANCE REACHED --')   
  23.     }
  24.    
  25.     if (counter == 2 && initialCounter <= config.betFewGames.value) {
  26.         initialCounter = 100;
  27.     }
  28.  
  29.     initialCounter = initialCounter+1;
  30.     if (initialCounter <= config.betFewGames.value ) {
  31.         engine.bet(parseInt(betAmount[counter]*100), parseFloat(betPayout[counter]));
  32.     }
  33.    
  34.     var count = 0;
  35.     var sum = 0;
  36.     var med10 = [];
  37.     var med20 = [];
  38.     var med30 = [];
  39.     var med40 = [];
  40.     var med50 = [];
  41.     var med_history = engine.history.toArray();
  42.     med_history.forEach(function(game){
  43.         count++
  44.         if(count <= 10){
  45.             med10.push(game.bust);
  46.         }
  47.         if(count <= 20){
  48.             med20.push(game.bust);
  49.         }
  50.         if(count <= 30){
  51.             med30.push(game.bust);
  52.         }
  53.         if(count <= 40){
  54.             med40.push(game.bust);
  55.         }
  56.         if(count <= 50){
  57.             med50.push(game.bust);
  58.         }
  59.     });
  60.     med10.sort(function(a, b){return a - b});
  61.     med20.sort(function(a, b){return a - b});
  62.     med30.sort(function(a, b){return a - b});
  63.     med40.sort(function(a, b){return a - b});
  64.     med50.sort(function(a, b){return a - b});
  65.     med10 = (med10[4]+ med10[5])/2;
  66.     log('med10',med10);
  67.     med20 = (med20[9]+ med20[10])/2;
  68.     log('med20',med20);
  69.     med30 = (med30[14]+ med30[15])/2;
  70.     log('med30',med30);
  71.     med40 = (med40[19]+ med40[20])/2;
  72.     log('med40',med40);
  73.     med50 = (med50[24]+ med50[25])/2;
  74.     log('med50',med50);
  75.    
  76.     if (med10 > config.condition.value && med20 > config.condition.value && med30 > config.condition.value && med40 > config.condition.value) {
  77.         log('TRUE');
  78.         result = 1;
  79.         log('Condition Result:',result);
  80.     } else {
  81.         result = 0;
  82.     }
  83.    
  84.     if (result == 1){
  85.         engine.bet(parseInt(betAmount[counter]*100), parseFloat(betPayout[counter]));
  86.         log('You are ready to play! ');
  87.         log('A bet will be placed:- Bet Size: '+betAmount[counter]+' Multiplier: '+betPayout[counter]);
  88.     }  
  89.    
  90. });
  91.  
  92. engine.on('GAME_STARTED', function() {
  93.     if (engine.getCurrentBet()){
  94.         var cbet = engine.getCurrentBet();
  95.         log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
  96.     } else {
  97.         log('A bet was not placed!');
  98.     }
  99. });
  100.  
  101.  
  102. engine.on('GAME_ENDED', function() {
  103.    
  104.     var lastGame = engine.history.first();
  105.     log('Game crashed at '+ lastGame.bust);
  106.    
  107.     log('Last Game wagered at '+ (lastGame.wager)/100);
  108.    
  109.    
  110.     // we won..
  111.     if (lastGame.cashedAt > 0 && lastGame.wager > 0) {
  112.         counter = 0;
  113.     } else if (lastGame.wager > 0) {
  114.         counter = counter+1;
  115.     }
  116.    
  117.     log('Counter:',counter);
  118.     log('--------------------------------');
  119. });
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