Advertisement
dicekode

fishing--01

Mar 17th, 2021
900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. x = {0.10,0.50,0.75,1.25}
  2. a = 6
  3. b = balance/(10^a)
  4. c = {b*x[2],b+(b*x[1]),b*500}
  5. d = {0,0,0,0}
  6. h = balance * x[4]
  7.  
  8. nextbet = b
  9. chance  = 60
  10. resetstats()
  11.  
  12. function r(x,y) return math.random(x,y) end
  13. function dobet()
  14.   m = not m
  15.   d[4] = previousbet
  16.   p = balance
  17.   d[3] += currentprofit
  18.   if d[3] > 0 then
  19.     d[1] = 0
  20.     d[2] = 0
  21.     d[3] = 0
  22.     o = r(88,90)
  23.     n = c[1]
  24.   end
  25.   if (win) then d[2]=0 else d[2]+=1 end
  26.   if (d[2] >= 1) then o=r(11,22) end
  27.   if (d[2] == 8) then n=d[4]+(b*x[1]) end
  28.   if (n >= c[2]) then n=c[1] d[1]+=r(1,3) end
  29.   if (d[1] > 1) then
  30.     d[1] += 1
  31.     o = 20
  32.     n = d[4] * 2
  33.     if (win) then
  34.       d[1] -= 1
  35.       n = d[4] * x[3]
  36.     else
  37.       o = r(6,7)
  38.       n = d[4] * x[4]
  39.     end
  40.     if n > c[3] then
  41.       o = r(11,66)
  42.       n = d[4] * x[4]
  43.     end
  44.   end    
  45.   if p > h then stop() end
  46.   bethigh = m
  47.   nextbet = n
  48.   chance  = o
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement