Advertisement
dicekode

hopper

Jun 29th, 2024 (edited)
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 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. dopause = balance*(ifpause/100)
  13. target  = balance+(balance*(ifprofit/100))
  14. chmin   = 3
  15. chmax   = 6
  16. chdiv   = 5
  17. multi   = 1.67
  18. modulus = 25
  19. profitc = 0
  20.  
  21. stopwin = false
  22. nextbet = basebet
  23. chance  = math.random(chmin,chmax)/chdiv
  24.  
  25. function dobet()
  26.     profitc = profitc + currentprofit
  27.     chance = math.random(chmin,chmax)/chdiv
  28.     if win then
  29.         if profitc > dopause then
  30.             pause()
  31.         end
  32.         if stopwin then stop() end
  33.         nextbet = basebet
  34.         profitc = 0
  35.     else
  36.         if math.abs(currentstreak)%modulus==0 then
  37.             nextbet = previousbet*multi
  38.         end
  39.     end
  40.     if balance > target then stop() end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement