Advertisement
dicekode

zigzag.lua

Jun 24th, 2021
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. basebet = balance * 100 / (10^8)
  2. maxbet  = 10
  3. chance  = 90
  4. bethigh = true
  5. closs   = 0
  6. nextbet = basebet
  7. target  = balance + 50
  8. stopwin = false
  9. profitc = 0
  10.  
  11. resetstats()
  12. resetseed()
  13. function dobet()
  14.    
  15.     profitc += currentprofit
  16.     bethigh = math.random(3) > 1
  17.     if balance > target then stop() end
  18.    
  19.     if profitc > 0 then
  20.         if stopwin then stop() end
  21.         profitc = 0
  22.     end
  23.     if (win) then
  24.         closs = 0
  25.         if profit > profit + (basebet * 0.001) then
  26.             nextbet = basebet
  27.             chance  = math.random(79*100, 90*100)/100
  28.         else
  29.             if chance > 70 then
  30.                 chance  = math.random(8.75*100, 10.5*100)/100
  31.                 nextbet = previousbet * 3.2
  32.             else
  33.                 nextbet = basebet
  34.                 chance  = math.random(79*100, 90*100)/100
  35.             end
  36.         end
  37.     else
  38.         closs += 1
  39.         if closs == 2 then
  40.             chance  = math.random(79*100, 90*100)/100
  41.             nextbet = previousbet * 0.5
  42.         end
  43.     end
  44.     if nextbet > maxbet then stopwin = true end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement