Advertisement
dicekode

wolfbet-03

Sep 16th, 2021
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. basebet  = balance / 100000
  2. chance   = 33.33
  3. nextbet  = basebet
  4. level    = 0
  5. fibstep  = 1
  6. fibreset = 10
  7. target   = balance * 1.25
  8. cprofit  = 0
  9. tprofit  = basebet * 10
  10.  
  11. function fib(level)
  12.     fibno     = basebet
  13.     temp      = 0
  14.     prevfibno = 0
  15.     if (level  == 0) then
  16.         fibno = basebet
  17.     else
  18.         for j = 0,level-1,1 do    
  19.             temp      = fibno
  20.             fibno     = fibno + (prevfibno * fibstep)
  21.             prevfibno = temp
  22.         end
  23.     end
  24.     return fibno    
  25. end
  26.  
  27. function dobet()
  28.     if balance > target then stop() end
  29.     cprofit += currentprofit
  30.     if cprofit > tprofit then
  31.         cprofit = 0
  32.         level   = 0
  33.     end
  34.     if win then
  35.         level += 1
  36.     else
  37.         --level -= 1
  38.     end
  39.     if level > fibreset then
  40.         --level = 0
  41.     end
  42.     nextbet = fib(level)  
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement