Advertisement
dicekode

payout-x

Jul 1st, 2024
848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | Cryptocurrency | 0 0
  1. io.write('++ input basebet ')
  2. local basebet = io.read("*n")
  3.  
  4. io.write('++ input pause ifprofit % ')
  5. local ifpause = io.read("*n")
  6.  
  7. io.write('++ input stop ifprofit % ')
  8. local ifprofit = io.read("*n")
  9.  
  10. os.execute("cls")
  11.  
  12. target  = balance+(balance*(ifprofit/100))
  13. dopause = balance*(ifpause/100)
  14. chmin   = 3
  15. chmax   = 6
  16. chdiv   = 5
  17. multi   = 1.67
  18. modulus = 25
  19. betmx   = 500
  20. profitc = 0
  21.  
  22. stopwin = false
  23. nextbet = basebet
  24. chance  = math.random(chmin,chmax)/chdiv
  25.  
  26. function dobet()
  27.     profitc = profitc + currentprofit
  28.     chance = math.random(chmin,chmax)/chdiv
  29.     if win then
  30.         if profitc > dopause then
  31.             pause()
  32.         end
  33.         if stopwin then stop() end
  34.         nextbet = basebet
  35.         profitc = 0
  36.     else
  37.         if math.abs(currentstreak)%modulus==0 then
  38.             nextbet = previousbet*multi
  39.         end
  40.     end
  41.     if balance > target then
  42.         stop()
  43.     end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement