Advertisement
dicekode

wolfbet-02

Sep 16th, 2021
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 KB | None | 0 0
  1. function s(x)
  2.    return x / (10^8)
  3. end
  4.  
  5. function r(x,y)
  6.    return math.random(x,y)
  7. end
  8.  
  9. set_maxbet  = 0.01
  10. set_maxhit  = 3
  11. chwin       = {30,70}
  12. chloss      = {25,35}
  13. target      = balance * 1.5
  14. limit       = balance * 0.5
  15. basebet     = balance * s(5000)
  16. minbet      = balance * s(1000)
  17. maxbet      = balance * set_maxbet
  18. lastbalance = balance
  19. trailing    = limit
  20. maxhit      = 0
  21. maxlose     = 88
  22. edge        = 0.1
  23. use_chwin   = true
  24. payout      = 1
  25. lose        = 0
  26. bethigh     = true
  27. chance      = 50
  28. nextbet     = basebet
  29. payout      = (100-edge)/chance
  30. stopwin     = false
  31. resetstats()
  32. function dobet()
  33.     if (balance >= lastbalance) then
  34.         if stopwin then
  35.             resetstats()
  36.             stopwin = false
  37.             maxhit  = maxhit + 1
  38.             basebet = basebet * 0.1
  39.             if (maxhit == set_maxhit) then stop() end
  40.         end  
  41.         maxbet      = balance * set_maxbet
  42.         use_chwin   = true  
  43.         lose        = 0  
  44.         lastbalance = balance  
  45.         chance      = r(chwin[1]*100.00,chwin[2]*100.00)/100.00  
  46.         nextbet     = basebet  
  47.         limit       = trailing + profit
  48.     else  
  49.         if (use_chwin == true) then  
  50.             lose    = lose+1  
  51.             chance  = r(chwin[1]*100.00,chwin[2]*100.00)/100.00  
  52.             nextbet = basebet  
  53.             if (lose >= maxlose) then use_chwin = false end  
  54.         else  
  55.             chance  = r(chloss[1]*100.00,chloss[2]*100.00)/100.00  
  56.             payout  = (100-edge)/chance  
  57.             nextbet = (lastbalance-balance+minbet)/(payout-1)  
  58.             if (nextbet<minbet) then nextbet = minbet end  
  59.         end  
  60.     end  
  61.     bethigh = r(0,2)==1
  62.     if (balance >= target) then stop() end
  63.     if (balance - nextbet < limit) then stop() end
  64.     if (nextbet > maxbet) then stopwin = true end
  65.     print("===================================")
  66.     print("CUSTOM SERIES")
  67.     print("===================================")
  68.     print(">> MAXBET " .. maxbet)
  69.     print(">> TARGET " .. target)
  70.     print(">> STOPLOSE " .. limit)
  71.     print(">> RESET " .. balance - lastbalance)
  72.     print(">> BOOST " .. lose .. "/" .. maxlose)
  73.     print(">> HIT " .. maxhit .. "/" .. set_maxhit)
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement