Advertisement
dicekode

-std

Jul 17th, 2024
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | Cryptocurrency | 0 0
  1. io.write('++ input minbet ')
  2. local minbet = io.read("*n")
  3.  
  4. io.write('++ input pause ifprofit % ')
  5. local ifpause = io.read("*n")
  6.  
  7. io.write('++ input stopwin ifdrop % ')
  8. local ifdrop = io.read("*n")
  9.  
  10. io.write('++ input stop ifprofit % ')
  11. local ifprofit = io.read("*n")
  12.  
  13. os.execute("cls")
  14.  
  15. balance = tonumber(balance)
  16. target  = balance+(balance*(ifprofit/100))
  17. dopause = balance*(ifpause/100)
  18.  
  19. function betset(p,s)
  20.     mxstreak = math.ceil(p*(6+s))
  21.     lmlose   = math.ceil(p*3)
  22.     multi    = (1/(p-1)*1.5)+1  
  23.     base     = balance/(math.exp(math.log(multi)*mxstreak)/(multi-1))
  24.     chance   = 99/p
  25.     mxlose   = 0
  26. end
  27.    
  28. payoutf = {5,10,5}
  29. payout  = 5
  30. ctlose  = 0
  31. sesi    = 1
  32. balst   = balance
  33.  
  34. betset(payout,(sesi-1))
  35. nextbet = base
  36. profitc = 0
  37. function dobet()
  38.     profitc = profitc + currentprofit
  39.     if profitc > 0 then
  40.         if profitc > dopause then
  41.             pause()
  42.         end
  43.         profitc = 0
  44.     end
  45.     if win then
  46.         if mxlose >= lmlose then
  47.             bethigh = not bethigh
  48.             payout  = payout-(payout*(payoutf[3]/100))
  49.             if payout < payoutf[1] then
  50.                 payout = payoutf[2]
  51.                 sesi   = sesi + 1
  52.                 countdown(10)
  53.             end
  54.             betset(payout,(sesi-1))
  55.         end
  56.         ctlose  = 0
  57.     else
  58.         ctlose  = ctlose + 1
  59.     end
  60.     nextbet = base * (multi^ctlose)
  61.     if ctlose > mxlose then
  62.         mxlose = ctlose
  63.     end
  64.     if balance > target then stop() end
  65.     displayinfo()
  66.     if nextbet < minbet then stop() end
  67. end
  68.  
  69. stopwin    = false
  70. mxdrop     = 0
  71. mxbalance,stbalance = balance,balance
  72. function displayinfo()
  73.     if balance > mxbalance then
  74.         if stopwin then stop() end
  75.         mxbalance = balance
  76.     end
  77.     drop = (mxbalance - balance)/mxbalance * 100
  78.     if drop > mxdrop then mxdrop = drop end
  79.     if mxdrop > ifdrop then stopwin = true end
  80.     print("++ status "..ctlose.."/"..mxlose.."/"..lmlose.." max:"..mxstreak.."x  sesi:"..sesi.."    ")
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement