Advertisement
Keiich

Keiichi_dice_winshare_30.07.18

Jul 30th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.27 KB | None | 0 0
  1. --@ use stopnow() to stop on win
  2. --@ use debugInfo() to get current stats.
  3.  
  4. --@ Start User Vars
  5. base = 0.44
  6. basebet = 0.44
  7. minbet = 0.25
  8. lossStartMult = 3
  9. --@ put 2-5 to use multi on loss starting the selected bet. leave 100 if no multi.
  10. bethigh = true
  11. randomHighLow = false --@ not recommended
  12. useDebugInfo = false
  13. --@ End User Vars
  14.  
  15.  
  16. --@ Start Script Vars
  17. nextbet = minbet
  18. stopnow = false
  19. lossCount = 0
  20. chance = 66
  21. curbet = base
  22. nextbet = base
  23. bets50 = 0
  24. win50 = 0
  25. winshare50 = 0
  26. totbets = 0
  27. --@ End Script Vars
  28.  
  29.  
  30.  
  31. function dobet()
  32.  
  33.   if (randomHighLow) then
  34.     if (math.random() < 0.1) then bethigh = !bethigh end
  35.   end
  36.  
  37.   if (stopnow and win) then
  38.     debugInfo()
  39.     stop()
  40.   end
  41.  
  42.  
  43.   --@ Preroll counter
  44.  
  45.   if (!win) then
  46.     lossCount += 1
  47.   else
  48.     lossCount = 0
  49.     win50 += 1
  50.   end
  51.  
  52.   if bets50 == 50 then
  53.     winshare50 = (win50 / 50) * 100
  54.     --@ print
  55.     print("Wins in 50 = " .. win50)
  56.     print("Loses in 50 = " .. (50 - win50))
  57.     print("Win % in 50 bets = " .. winshare50)
  58.     --
  59.     bets50 = 0
  60.     win50 = 0
  61.     basebet = base
  62.   end
  63.  
  64.   if winshare50 > 0 then
  65.     if winshare50 < 66 then
  66.       basebet = base * 1.5
  67.     end
  68.     if winshare50 < 63 then
  69.       basebet = base * 2
  70.     end
  71.     if winshare50 < 61 then
  72.       basebet = base * 3
  73.     end
  74.     if winshare50 > 66 then
  75.       basebet = base / 1.5
  76.     end
  77.     if winshare50 > 71 then
  78.       basebet = base / 2
  79.     end
  80.     winshare50 = 0
  81.   print("Base Bet = " .. string.format("%9.8f", basebet))
  82.   if basebet < minbet then
  83.     basebet = minbet
  84.     print("Base Bet = " .. string.format("%9.8f", basebet))
  85.   end
  86. end
  87.  
  88.   if (lossCount < lossStartMult) then
  89.     curbet = basebet
  90.     nextbet = curbet
  91.   end
  92.  
  93.   if (lossCount == lossStartMult) then
  94.     curbet = basebet * 12
  95.     nextbet = curbet
  96.   end
  97.  
  98.   if (lossCount > lossStartMult) then
  99.     curbet = curbet * 3.05
  100.     nextbet = curbet
  101.   end
  102.  
  103.   if totbets < 50 then
  104.     curbet = minbet
  105.     nextbet = curbet
  106.   end
  107.  
  108.   bets50 += 1
  109.   totbets += 1
  110.   if (usedebugInfo) then debugInfo() end
  111. end
  112.  
  113. function debugInfo()
  114.   print("Total Profit = " .. string.format("%9.8f", profit))
  115.   print("Wins in 50 = " .. win50)
  116.   print("Loses in 50 = " .. (50 - win50))
  117.   print("Win % in 50 bets = " .. winshare50)
  118. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement