Advertisement
Keiich

Keiichi_Winshare_Counter_17.08.18

Aug 4th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.48 KB | None | 0 0
  1. --@ use Info() to get current stats.
  2.  
  3. --@ Input vars
  4. base = 0.00000044 --@ average bet.
  5.  
  6. minbet = 0.00000011  --@ min bet for selected currency
  7.  
  8. maxbet = 0.00000111 --@ maximum basebet u prefer. the higher the riskier
  9.  
  10. winchance = 66 --@ choose from "39.6", "49.5", "66" and "80"
  11.  
  12. lossStartMult = 4 --@ will start multi after this (put 2-5 to use multi on loss starting the selected bet. leave 100 if no multi)
  13.  
  14. losecounter = 33--@ how many rolls to use for lose count to before adjusting basebet
  15.  
  16. maxlosestreak = 15 --@ put lower to have balance to recover !!!
  17.  
  18. targetbalx = 5  --@ target to reach balance x -amount-
  19.  
  20. --@
  21.  
  22.  
  23. --@ Other vars
  24. maxlosebet = 100
  25. maxbets = 100000000
  26. basebet = base
  27. useInfo = false
  28. stopnow = false
  29. lossCount = 0
  30. chance = winchance
  31. curbet = base
  32. nextbet = minbet
  33. betscounter = 0
  34. wincounter = 0
  35. winsharecounter = 0
  36. totbets = 0
  37. adjuster = 1
  38. startbal = balance
  39. mxlsstrk = maxlosestreak
  40. if lossStartMult == 2 then
  41.   boom = 6
  42. elseif lossStartMult == 3 then
  43.   boom = 8
  44. elseif lossStartMult == 4 then
  45.   boom = 10
  46. elseif lossStartMult == 5 then
  47.   boom = 12
  48. elseif lossStartMult == 6 then
  49.   boom = 15
  50. end
  51.  
  52. if winchance == 39.6 then
  53.   multi = 1.67
  54. elseif winchance == 49.5 then
  55.   multi = 2.04
  56.   boom = boom * 0.75
  57. elseif winchance == 66 then
  58.   multi = 3.01
  59.   boom = boom * 1.2
  60. elseif winchance == 80 then
  61.   multi = 5.44
  62.   boom = boom * 2
  63. end
  64. --@
  65.  
  66.  
  67. --@ Start rolling
  68.  
  69. function dobet()
  70.  
  71.   bethigh = true
  72.  
  73.   if (!win) then
  74.     print("L")
  75.     lossCount += 1
  76.   else
  77.     print("W")
  78.     lossCount = 0
  79.     wincounter += 1
  80.   end
  81.  
  82.  
  83.   --@ Count loses
  84.  
  85.  
  86.   if (betscounter == losecounter) then
  87.     winsharecounter = (wincounter / losecounter) * 100
  88.  
  89.     print("\nWins in " ..string.format("%3.0f", losecounter) .. " = " .. wincounter)
  90.     print("\nLoses in " ..string.format("%3.0f", losecounter) .. " = " .. (losecounter - wincounter))
  91.     print("\nWin % in " ..string.format("%3.0f", losecounter) .. " bets = " .. winsharecounter)
  92.  
  93.     betscounter = 0
  94.     wincounter = 0
  95.     basebet = base
  96.     mxlsstrk = maxlosestreak
  97.  
  98.   end
  99.  
  100.  
  101.   --@ Calculate new basebet
  102.  
  103.  
  104.   if winsharecounter > 0 then
  105.     if winsharecounter < winchance then
  106.       adjuster = (winchance - winsharecounter)
  107.       if adjuster > 2 then
  108.         adjuster = adjuster * 0.9
  109.     end
  110.       basebet = base * adjuster
  111.       mxlsstrk = maxlosestreak
  112.       print("\nMax losestreak = " .. string.format("%3.0f", mxlsstrk))
  113.     end
  114.  
  115.     if winsharecounter > winchance then
  116.       adjuster = (winsharecounter - winchance)
  117.       basebet = base / adjuster
  118.     end
  119.  
  120.     winsharecounter = 0
  121.  
  122.  
  123.     print("\nBase Bet = " .. string.format("%9.8f", basebet))
  124.  
  125.  
  126.     if basebet < minbet then
  127.       basebet = minbet
  128.       mxlsstrk = maxlosestreak + 3
  129.       print("\nMax losestreak = " .. string.format("%3.0f", mxlsstrk))
  130.       print("\nBase Bet = " .. string.format("%9.8f", basebet))
  131.     end
  132.     if basebet > maxbet then
  133.       basebet = maxbet
  134.       print("\nBase Bet = " .. string.format("%9.8f", basebet))
  135.     end
  136.  
  137.   end
  138.  
  139.   print("\nbet n = " .. string.format("%3.0f", betscounter))
  140.  
  141.   if (lossCount < lossStartMult and lossCount < maxlosebet) then
  142.     curbet = basebet
  143.     nextbet = curbet
  144.   end
  145.  
  146.   if (lossCount < lossStartMult and lossCount >= maxlosebet) then
  147.     curbet = minbet
  148.     nextbet = curbet
  149.     print("\nMIN")
  150.   end
  151.  
  152.  
  153.   if (lossCount == lossStartMult) then
  154.     curbet = basebet * boom
  155.     nextbet = curbet
  156.     print("\n_________\n")
  157.     print("\nBOOM x" .. string.format("%2.0f", boom))
  158.     print("\n_________\n")
  159.   end
  160.  
  161.   if (lossCount >  lossStartMult) then
  162.     curbet = curbet * multi
  163.     nextbet = curbet
  164.   end
  165.  
  166.  
  167.   if (lossCount == mxlsstrk) then
  168.     curbet = basebet
  169.     nextbet = curbet
  170.     lossCount = 0
  171.   end
  172.  
  173.  
  174.   if totbets < losecounter then
  175.     curbet = minbet
  176.     nextbet = curbet
  177.   end
  178.  
  179.   if totbets == maxbets then
  180.     Info()
  181.     stop()
  182.   end
  183.  
  184.  
  185.   if balance >= startbal * targetbalx then
  186.     print("\nTarget balance reached. Don't forget to wd!")
  187.     Info()
  188.     stop()
  189.   end
  190.  
  191.  
  192.   betscounter += 1
  193.   totbets += 1
  194.   if (useInfo) then Info() end
  195. end
  196.  
  197. function Info()
  198.   print("\nTotal Profit = " .. string.format("%9.8f", profit))
  199.   print("\nWins in " ..string.format("%3.0f", losecounter) .. " = " .. wincounter)
  200.   print("\nLoses in " ..string.format("%3.0f", losecounter) .. " = " .. (losecounter - wincounter))
  201.   print("\nWin % in " ..string.format("%3.0f", losecounter) .. " bets = " .. winsharecounter)
  202. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement