SHARE
TWEET

Untitled

a guest Jan 24th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.     baseBet: { label: "Base bet", type: "balance", value: 100 },
  3.     target: { label: "Target", type: "multiplier", value: 1.5 },
  4.     multiplyBy: { label: "Multiply by", type: "multiplier", value: 3 },
  5.     skipsAmount: { label: "Skips Amount", type: "number", value: 0 },
  6.     minProfit: { label: "Min Profit", type: "balance", value: -10000000 },
  7.     maxProfit: { label: "Max Profit", type: "balance", value: 10000000 },
  8.     maxBet: { label: "Max Bet", type: "balance", value: 640000 },
  9. }
  10. var baseBet = config.baseBet.value
  11. var maxBet = config.maxBet.value
  12. var target = config.target.value
  13. var skipsAmount = config.skipsAmount.value
  14. var maxLoses = 1
  15. var maxLosesExtra = 1
  16. var multiplyBy = config.multiplyBy.value
  17. var multiplyByExtra = 20
  18. var changeSeedAfterWins = 100
  19. var minProfit = config.minProfit.value
  20. var maxProfit = config.maxProfit.value
  21. var addupmultiply = false
  22. var currentBet = baseBet
  23.  
  24. let rolls = 0
  25. var skips = 0
  26. let loses = 0
  27. let extraloses = 0
  28. let extralosesCounter = 0
  29. let wins = 0
  30. let PROFIT = 0
  31.  
  32. while(true){
  33.     rolls++
  34.     this.clearLog()
  35.     this.log(`Current Profit: ${PROFIT / 100} bits`)
  36.     this.log(`Skips ${skips}/${skipsAmount}`)
  37.     if (skips < skipsAmount){
  38.         //var { multiplier } = await this.bet(100, 1.01)
  39.         var { multiplier } = await this.skip()
  40.         if (multiplier < target){
  41.             skips++
  42.         } else {
  43.             skips = 0
  44.         }
  45.     }
  46.    
  47.     if (skips >= skipsAmount){
  48.         if (PROFIT > maxProfit || (PROFIT - currentBet) < minProfit) {
  49.             this.log(`Maximal lose or win reached`)
  50.             this.stop()
  51.         }
  52.         const { multiplier } = await this.bet(roundBit(currentBet), target)
  53.         if (multiplier >= target){
  54.             /* WIN */
  55.             wins++
  56.             loses = 0
  57.             skips = 0
  58.             PROFIT += (currentBet * (target - 1))
  59.             extraloses = 0
  60.             extralosesCounter = 0
  61.             currentBet = baseBet
  62.         } else {
  63.             /* LOSE */
  64.             PROFIT -= currentBet
  65.             loses++
  66.             extralosesCounter++
  67.             if (extralosesCounter >= maxLosesExtra){
  68.                 extraloses++
  69.                 extralosesCounter = 0
  70.             }
  71.             if (addupmultiply){
  72.                 currentBet += multiplyBy * 100
  73.                 if (currentBet > maxBet) {
  74.                   currentBet -= multiplyBy * 200
  75.                 }
  76.             } else {
  77.                 currentBet *= multiplyBy
  78.                 if (currentBet > maxBet) {
  79.                   currentBet /= multiplyBy
  80.                 }
  81.             }
  82.         }
  83.        
  84.     }
  85.     if (wins >= changeSeedAfterWins){
  86.         wins = 0
  87.         await generateSeed(this)
  88.     }
  89. }
  90.  
  91. /* Generate new seed pair for server hash and client seed. */
  92. async function generateSeed(context) {
  93.     if (changeSeedAfterWins > 0){
  94.         try {
  95.             const { server_seed_hash } = await context.newSeedPair()
  96.             await context.setClientSeed(server_seed_hash)
  97.         } catch (error) {
  98.             console.log(`Seed was already reset`)
  99.         }    
  100.     }
  101.    
  102. };
  103.  
  104. function roundBit(bet) {
  105.     return Math.max(100, Math.round((bet) / 100) * 100)
  106. };
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