Advertisement
Guest User

Preroll Madness

a guest
Feb 18th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 KB | None | 0 0
  1. chance  = 90        -- chance while prerolling
  2. minbet  = 0.4
  3. nextbet = minbet
  4. base    = minbet
  5. bethigh = false
  6. prof    = 0
  7. stopnow = false
  8. testing = true
  9. payout  = 0
  10. ratio   = 4         -- preroll amount (Payout*ratio = preroll amount)
  11. ppb = 0.2
  12. startbal = balance
  13. targetbalance = balance
  14. counter = 0
  15. betsplaced = 0
  16. bigbalance = balance
  17.  
  18. highchance = 49.50  -- Highest chance to hunt for
  19. lowchance = 0.01    -- Lowest chance to hunt for
  20. increments = 0.01   -- Increments to hunt for eg: 0.01%, 0.1%, 1%
  21.  
  22. a = 100/increments
  23.  
  24. targetlow = {}
  25. targethigh = {}
  26. for i = (highchance*100), (lowchance*100), -1 do
  27.     targetlow[i] = 0
  28.     targethigh[i] = 0
  29. end
  30.  
  31.  
  32. function dobet()
  33.     if balance >= bigbalance then
  34.         bigbalance = balance
  35.     end
  36.     counter += 1
  37.  
  38.     if win and !(testing) then
  39.         if stopnow == true then
  40.             stop()
  41.         end
  42.         nextbet = minbet
  43.         chance  = 90
  44.         testing = true
  45.         targetbalance = (balance + ppb)
  46.     end
  47.    
  48.     if !(testing) then
  49.         payout = (99/chance)
  50. --      nextbet = ((targetbalance-balance)/(payout-1))
  51.         nextbet = previousbet*(1+((100/(payout-1))/100))
  52.     end
  53.    
  54.     for i = (highchance*100), (lowchance*100), -1 do
  55.         targetlow[i] += 1
  56.         targethigh[i] += 1
  57.         if lastBet.roll <= (i/a) then
  58.             targetlow[i] = 0
  59.         else
  60.             if lastBet.roll >= (99.99-(i/a)) then
  61.                 targethigh[i] = 0
  62.             end
  63.         end
  64.        
  65.         if (testing) then
  66.             if (targetlow[i]/(99/(i/a))) >= ratio or (targethigh[i]/(99/(i/a))) >= ratio then
  67.                 if targetlow[i] >= targethigh[i] then
  68.                     bethigh = false
  69.                 else
  70.                     bethigh = true
  71.                 end
  72.                 chance  = (i/a)
  73.                 payout  = (99/chance)
  74.                 nextbet = ((bigbalance-balance)/(payout-1))
  75.                 testing = false
  76.             end
  77.         end
  78.     end
  79.  
  80.     if nextbet <= minbet then
  81.         nextbet = minbet
  82.     end
  83.    
  84.     if chance == 90 then
  85.         nextbet = minbet
  86.     end
  87.     if counter >= 50 then
  88.         counter = 0
  89.         print("Profit: ".. profit)
  90.         print("Balance: ".. balance)
  91.         betsplaced += 50
  92.         print("Bets Placed: ".. betsplaced)
  93.     end
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement