SHARE
TWEET

Untitled

a guest Sep 19th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.     baseBet: { value: 100, type: 'balance', label: 'base bet' },
  3.     payout: { value: 2, type: 'multiplier', label: 'target' },
  4.     multiply: { value: 2, type: 'multiplier', label: 'multiply wins' },
  5.     multiplyLoss: { value: 1, type: 'number', label: 'multiply loss' },
  6.     stops: { value: 10, type: 'number', label: 'stop bet levels' },
  7.     doubles: { value: 1, type: 'number', label: 'How much attempts to double' },
  8.  
  9. };
  10. const baseBet = config.baseBet.value;
  11.  
  12. var currentBet = baseBet;
  13. var previusBet = currentBet;
  14.  
  15. function roundBit(bet) { return Math.max(100, Math.round(bet / 100) * 100); };
  16.  
  17. var bet_levels = 0;
  18. var cruising = false;
  19. var trying_cruise = false;
  20. var cruise_failed = false;
  21.  
  22. var loss_seen = false;
  23.  
  24. while (true) {
  25.    
  26.     this.log(`Bet level [${bet_levels}], stop at [${config.stops.value}] level`)
  27.    
  28.     if (bet_levels >= config.stops.value) { await this.stop(); this.log(`Bet level stop triggered`)}
  29.  
  30.     const { multiplier } = await this.bet(roundBit(currentBet), config.payout.value);
  31.     bet_levels++;
  32.  
  33.     if (multiplier >= config.payout.value) { //  WINS
  34.         if (trying_cruise){
  35.             trying_cruise = false;
  36.             cruise_failed = false;
  37.         };
  38.         if(cruising == false && !loss_seen){
  39.             currentBet = baseBet * config.multiply.value;
  40.         } else {
  41.             cruise();
  42.         };
  43.     } else { //  LOSS
  44.         loss_seen = true;
  45.         if (trying_cruise == true){
  46.             cruise_failed = true;
  47.             cruising = true;
  48.             if (config.multiplyLoss.value == 1){
  49.                 currentBet = previusBet + config.multiplyLoss.value * 100;
  50.             } else {
  51.                 currentBet = previusBet * config.multiplyLoss.value;
  52.             }
  53.             previusBet = baseBet;
  54.             trying_cruise = false;
  55.  
  56.         } else {
  57.             if (config.multiplyLoss.value == 1){
  58.                 currentBet += config.multiplyLoss.value * 100;
  59.             } else {
  60.                 currentBet *= config.multiplyLoss.value;
  61.             }
  62.             cruising = true;
  63.         };
  64.     };
  65. }
  66.  
  67. function cruise(){
  68.     if (cruising){
  69.         previusBet = currentBet;
  70.         currentBet *= config.multiply.value;
  71.         trying_cruise = true
  72.         cruising = false
  73.     } else {
  74.         if (cruise_failed == true){
  75.         } else {
  76.             bet_levels = 1;
  77.             currentBet = baseBet
  78.             previusBet = baseBet
  79.         }
  80.     }
  81.    
  82. }
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