Advertisement
dicekode

oneshoot.lua

Jun 24th, 2021
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.50 KB | None | 0 0
  1.  
  2. chance     = 80
  3. basechance = chance  
  4. base       = 0.00000010
  5. nextbet    = base
  6. bethigh    = true  
  7. target     = balance * 1.1
  8. tlose      = 0
  9.  
  10. function dobet()
  11.     if balance > target then stop() end
  12.     if win then
  13.         tlose   = 0
  14.         nextbet = base
  15.         chance  = basechance
  16.         count   = 0
  17.     else
  18.         nextbet = previousbet * 10
  19.         if currentstreak < -1 then
  20.             bethigh    = not bethigh
  21.             count      = count + 1
  22.             payout     = 10
  23.             multiplier = 2
  24.             nextbet    = previousbet * 2
  25.             if (count==27) then
  26.                 payout = payout - 1
  27.             end
  28.             if (count==28) then
  29.                 payout = payout - 1
  30.             end
  31.             if (count==29) then
  32.                 payout = payout - 1
  33.             end
  34.             if (count==30) then
  35.                 payout = payout - 1
  36.             end
  37.             if (count==31) then
  38.                 payout = payout - 1
  39.             end
  40.             if (count==32) then
  41.                 payout = payout - 1
  42.             end
  43.             if (count==33) then
  44.                 payout = payout - 1
  45.             end
  46.             if (count==34) then
  47.                 payout = payout - 1
  48.             end
  49.             chance = 99.9 / payout
  50.         end
  51.     end
  52.     if nextbet < 0.00000001 then nextbet = 0.00000001 end
  53.     if nextbet > 0.0001 then
  54.         nextbet = tlose / ((99.9/chance)-1)
  55.     end
  56.     nextbet = math.ceil(nextbet*10^8)/10^8
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement