Advertisement
dicekode

hi-chance

Oct 22nd, 2021
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. base    = 1000/10^8
  2. ifwin   = 5
  3. iflose  = 8
  4. c1      = 88
  5. c2      = 98
  6. ip      = base
  7. target  = balance * 10
  8. chance  = 90
  9. profitc = 0
  10. nextbet = base
  11. bethigh = true
  12.  
  13.  
  14. function dobet()
  15.     if balance > target then stop() end
  16.     chance = math.random(c1*100,c2*100)/100
  17.     profitc += currentprofit
  18.     if win then
  19.         if profitc > ip then
  20.             profitc = 0
  21.             nextbet = base
  22.         else
  23.             nextbet = previousbet * ifwin
  24.         end
  25.     else
  26.         nextbet = previousbet * iflose
  27.     end
  28.  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement