Advertisement
Jebula999

keiichi4444

Jul 19th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --HUNTER_2.5.4_inverted_fast
  2.  
  3.  
  4. ------SETTINGS------
  5.  
  6. urNickname = "Jebula9999"
  7.  
  8. minBet = 0.00000010
  9.  
  10. huntBet = minBet * 2
  11.  
  12. wagerBet =   minBet
  13.  
  14. targetBalance = 0.01
  15.  
  16. stayOnSeed = false
  17.  
  18. reset = true
  19.  
  20. softReset = true
  21.  
  22. sound = true
  23.  
  24. tipping = true
  25.  
  26. waitAdjust = 1
  27.  
  28. statsEvery = 1
  29.  
  30. seedLog   = false
  31. seedReset = false
  32. --------------------
  33. logToFile = true
  34.  
  35. filename = "HUNTLOG.csv"
  36. tempfile = "HUNTLOG_temp.csv"
  37. filename2 = "SEEDLOG.csv"
  38. tempfile2 = "SEEDLOG_temp.csv"
  39. loggap = 0
  40. logLBR = 0
  41. logRound = 0
  42. logBetNumber = 0
  43. --------------------
  44.  
  45. ---ARRAY-RESET------
  46. waitBase = 23500
  47.  
  48. function resetArray()
  49.   if not stayOnSeed then
  50.     resetseed()
  51.   end
  52.   numbers = {}
  53.   for i = 9951,9999 do
  54.     numbers[i] = {}
  55.     for j = 1,4 do
  56.       numbers[i][j] = 0
  57.     end
  58.     numbers[i][4] = waitBase / ((10000-i)*1.012)
  59.   end
  60.   for i = 0,50 do
  61.     numbers[i] = {}
  62.     for j = 1,4 do
  63.       numbers[i][j] = 0
  64.     end
  65.     numbers[i][4] = waitBase / ((i+1)*1.012)
  66.   end
  67. end
  68. --------------------
  69. if reset then
  70.  
  71.   resetArray()
  72.  
  73.   if logToFile then
  74.     fin = assert(io.open(filename, "w"))
  75.     fin:write("Timestamp, Roll Number, Bet ID, Bet Amount, Chance, Win Amount, Spent on Hunt, Profit, Roll, High/Low, Losestreak, Win/Lose, Hunt Trigger, Tipped\n")
  76.     fin:close()
  77.   end
  78. end
  79.  
  80. if seedReset then
  81.  
  82.   if logToFile then
  83.     fin = assert(io.open(filename2, "w"))
  84.     fin:write("Roll Number, Bet ID, Roll, High/Low, x990+\n")
  85.     fin:close()
  86.   end
  87.   --
  88. end
  89. ----VARS-RESET------
  90.  
  91.  
  92.  
  93. function resetVars()
  94.  
  95.   bethigh         = true
  96.   baseChance1     = 33
  97.   baseChance2     = 66
  98.   chance          = baseChance1
  99.   nextbet         = wagerBet
  100.   phase1          = true
  101.   phase2          = false
  102.   loseCountW      = 0
  103.   winCount        = 0
  104.   huntLow         = -1
  105.   huntHigh        = 10000
  106.   loseCount       = 0
  107.   x990lHITS       = 0
  108.   x990hHITS       = 0
  109.   HUNT100l        = false
  110.   HUNT100h        = false
  111.   HUNT990l        = false
  112.   HUNT990h        = false
  113.   HUNT            = false
  114.   totalHigh       = 0
  115.   totalLow        = 0
  116.   sessionprofit   = 0
  117.   roundRolls      = 0
  118.   multy1          = 1.33
  119.   multy2          = 1.66
  120.   multy3          = 2
  121.   incr1           = 1.0012
  122.   incr2           = 1.00115
  123.   incr3           = 1.00112
  124.   incr4           = 1.0011
  125.   incr5           = 1.00106
  126.   step1           = 280
  127.   step2           = 450
  128.   step3           = 640
  129.   step4           = 820
  130.   step5           = 1000
  131.   step6           = 1400
  132.   step7           = 1900
  133.   step8           = 2300
  134.   startChanceM    = 0.018
  135.   chanceCalc      = 0.5
  136.   chanceCalcA     = 0.5
  137.   chanceCalcB     = 0.5
  138.   chanceStep1     = 0.4
  139.   chanceStep2     = 0.3
  140.   chanceStep3     = 0.2
  141.   chanceStep4     = 0.185
  142.   chanceStep5     = 0.13
  143.   chanceD1        = 0.004
  144.   chanceD2        = 0.002
  145.   chanceD3        = 0.0015
  146.   chanceD4        = 0.001
  147.   chanceD5        = 0.0005
  148.   chanceD6        = 0.00025
  149.   chanceD7        = 0.00012
  150.   chanceDown      = chanceD1
  151.   timerModB       = 0.02
  152.   timerModS       = 0.004
  153.   roundLimit      = 4444
  154.   nonceAverage    = 0
  155.   nonceAverage990 = 0
  156.   goHigh          = 1
  157.   goLow           = 1
  158.   prefHigh        = true
  159.   ultiHuntHigh    = 10000
  160.   ultiHuntLow     = -1
  161.   ultiRolls       = 0
  162.   trigger         = "no"
  163.   stats           = 0
  164.   spentHunt       = 0
  165.   prefDec         = 0.83
  166.   prefInc         = 1.18
  167.   pref990h        = 1
  168.   pref990l        = 1
  169.   lowWait         = 1.30
  170.   highWait        = 1.30
  171. end
  172. --------------------
  173. if softReset then
  174.   resetVars()
  175. end
  176.  
  177. -----FUNCTIONS------
  178.  
  179. function printFullStats()
  180.   print("---------------------------------------------------------------------")
  181.   for i = 0,50 do
  182.     print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  183.     print("---------------------------------------------------------------------")
  184.   end
  185.   print("---------------------------------------------------------------------")
  186.   print("---------------------------------------------------------------------")
  187.   for i = 9951,9999 do
  188.     print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  189.     print("---------------------------------------------------------------------")
  190.   end
  191. end
  192.  
  193.  
  194. function print990Stats()
  195.   print("---------------------------------------------------------------------")
  196.   for i = 0,9 do
  197.     print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  198.     print("---------------------------------------------------------------------")
  199.   end
  200.   print("---------------------------------------------------------------------")
  201.   print("---------------------------------------------------------------------")
  202.   for i = 9990,9999 do
  203.     print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  204.     print("---------------------------------------------------------------------")
  205.   end
  206. end
  207.  
  208.  
  209. function printHits()
  210.   print("---------------------------------------------------------------------")
  211.   for i = 0,50 do
  212.     if numbers[i][3] > 0 then
  213.       print(i .. "   ||   " .. numbers[i][3] .. "  ||  " .. numbers[i][2])
  214.       print("---------------------------------------------------------------------")
  215.     end
  216.   end
  217.   print("---------------------------------------------------------------------")
  218.   print("---------------------------------------------------------------------")
  219.   for i = 9951,9999 do
  220.     if numbers[i][3] > 0 then
  221.       print(i .. "   ||   " .. numbers[i][3] .. "  ||  " .. numbers[i][2])
  222.       print("---------------------------------------------------------------------")
  223.     end
  224.   end
  225. end
  226.  
  227. function printRoundReset()
  228.   tempstr = "ROLLS LIMIT REACHED - RESETTING THE SEED\n\n"
  229.   fin = assert(io.open(filename, "r"))
  230.   content = fin:read("*a")
  231.   fin:close()
  232.  
  233.   fout = assert(io.open(tempfile, "w"))
  234.   fout:write(content)
  235.   fout:write(tempstr)
  236.  
  237.   fout:close()
  238.   os.remove(filename)
  239.   os.rename(tempfile, filename)
  240. end
  241.  
  242. function printRolledReset()
  243.   tempstr = "TOO MANY x990+ ROLLED BOTH SIDES - RESETTING THE SEED\n\n"
  244.   fin = assert(io.open(filename, "r"))
  245.   content = fin:read("*a")
  246.   fin:close()
  247.  
  248.   fout = assert(io.open(tempfile, "w"))
  249.   fout:write(content)
  250.   fout:write(tempstr)
  251.  
  252.   fout:close()
  253.   os.remove(filename)
  254.   os.rename(tempfile, filename)
  255. end
  256.  
  257. --------------------
  258. --------------------
  259. --------------------
  260.  
  261.  
  262.  
  263. --------DOBET---------------DOBET---------------DOBET-------
  264.  
  265. function dobet()
  266.  
  267.  
  268.  
  269.   stats += 1
  270.   roundRolls += 1
  271.   curBal = balance
  272.   nonceAverage = roundRolls / 200
  273.   nonceAverage990 = roundRolls / 1000
  274.  
  275.   --LASTBET--
  276.   LBR = math.floor(lastBet.Roll * 100)
  277.   LBID = lastBet.Id
  278.   LBP = lastBet.Profit
  279.   LBC = lastBet.Chance
  280.   LBN = lastBet.Nonce
  281.   LBA = lastBet.Amount
  282.   --
  283.  
  284.   spentHunt = spentHunt + LBA
  285.  
  286.  
  287.   --COUNTERS--
  288.   for i = 0,50 do
  289.     numbers[i][1] += 1
  290.     numbers[i][2] += 1
  291.   end
  292.   for i = 9951,9999 do
  293.     numbers[i][1] += 1
  294.     numbers[i][2] += 1
  295.   end
  296.   --
  297.  
  298.   if LBR < 51 then
  299.     totalLow += 1
  300.     numbers[LBR][2] = 0
  301.     numbers[LBR][3] += 1
  302.     if LBR < 22 then
  303.       for i = LBR,33 do
  304.         numbers[i][1] = (numbers[i][1] - (numbers[i][1] / (i * timerModB)))
  305.         if numbers[i][1] < 0 then
  306.           numbers[i][1] = 0
  307.         end
  308.       end
  309.       for i = 34,50 do
  310.         numbers[i][1] = (numbers[i][1] - (numbers[i][1] / (i * timerModS)))
  311.         if numbers[i][1] < 0 then
  312.           numbers[i][1] = 0
  313.         end
  314.       end
  315.     else
  316.       for i = LBR,50 do
  317.         numbers[i][1] = 0
  318.       end
  319.     end
  320.   end
  321.   --
  322.   if LBR > 9950 then
  323.     totalHigh += 1
  324.     numbers[LBR][2] = 0
  325.     numbers[LBR][3] += 1
  326.     if LBR > 9977 then
  327.       for i = 9966,LBR do
  328.         numbers[i][1] = (numbers[i][1] - (numbers[i][1] / ((10000-i) * timerModB)))
  329.         if numbers[i][1] < 0 then
  330.           numbers[i][1] = 0
  331.         end
  332.       end
  333.       for i = 9951,9965 do
  334.         numbers[i][1] = (numbers[i][1] - (numbers[i][1] / ((10000-i) * timerModS)))
  335.         if numbers[i][1] < 0 then
  336.           numbers[i][1] = 0
  337.         end
  338.       end
  339.     else
  340.       for i = 9951,LBR do
  341.         numbers[i][1] = 0
  342.       end
  343.     end
  344.   end
  345.   --
  346.   x990lHITS = 0
  347.   x990lGAP = 99999
  348.   for i = 0,9 do
  349.     x990lHITS = x990lHITS + numbers[i][3]
  350.     if numbers[i][2] < x990lGAP then
  351.       x990lGAP = numbers[i][2]
  352.     end
  353.   end
  354.   --
  355.   x990hHITS = 0
  356.   x990hGAP = 99999
  357.   for i = 9990,9999 do
  358.     x990hHITS = x990hHITS + numbers[i][3]
  359.     if numbers[i][2] < x990hGAP then
  360.       x990hGAP = numbers[i][2]
  361.     end
  362.   end
  363.   --
  364.  
  365.   if x990hHITS > x990lHITS then
  366.     pref990h = 0.82
  367.     pref990l = 1.18
  368.   end
  369.  
  370.   if x990hHITS < x990lHITS then
  371.     pref990h = 1.18
  372.     pref990l = 0.82
  373.   end
  374.  
  375.   if x990hHITS == x990lHITS then
  376.     pref990h = 1
  377.     pref990l = 1
  378.   end
  379.  
  380.  
  381.   if x990hHITS == 0 then
  382.       highWait = 1.3
  383.   else
  384.   highWait = 1
  385.   end
  386.  
  387.   if x990lHITS == 0 then
  388.       lowWait = 1.3
  389.   else
  390.   lowWait = 1
  391.   end
  392.  
  393.   if totalHigh < nonceAverage then
  394.     goHigh = prefInc * waitAdjust * pref990h * highWait
  395.   else
  396.     goHigh = prefDec * waitAdjust * pref990h * highWait
  397.   end
  398.  
  399.   if totalLow < nonceAverage then
  400.     goLow = prefInc * waitAdjust * pref990l * lowWait
  401.   else
  402.     goLow = prefDec * waitAdjust * pref990l * lowWait
  403.   end
  404.  
  405.  
  406.   if totalHigh > totalLow then
  407.     prefHigh = true
  408.   else
  409.     prefHigh = false
  410.   end
  411.  
  412.  
  413.   -----TIPPIN-----
  414.   if HUNT and win and tipping then
  415.  
  416.     if LBP >= minBet * 8000 then
  417.       tipSize = minBet * 444
  418.     else
  419.       if LBP >= minBet * 3000 then
  420.         tipSize = minBet * 222
  421.       else
  422.         tipSize = minBet * 111
  423.       end
  424.     end
  425.  
  426.  
  427.     tipper = math.random(1,200)
  428.     --
  429.     if tipper <= 15 then
  430.       tipped = "bobstone"
  431.     end
  432.     if tipper > 15 and tipper <= 30 then
  433.       tipped = "BeFrank"
  434.     end
  435.     if tipper > 30 and tipper <= 45 then
  436.       tipped = "fatduck"
  437.     end
  438.     if tipper > 45 and tipper <= 60 then
  439.       tipped = "Btcmaniac"
  440.     end
  441.     if tipper > 60 and tipper <= 67 then
  442.       tipped = "dancow"
  443.     end
  444.     if tipper > 67 and tipper <= 74 then
  445.       tipped = "magiosss"
  446.     end
  447.     if tipper > 74 and tipper <= 116 then
  448.       tipped = "wtpcomputers"
  449.     end
  450.     if tipper > 116 and tipper <= 158 then
  451.       tipped = "treborb"
  452.     end
  453.     if tipper > 158 then
  454.       tipped = "Gdoctor"
  455.     end
  456.  
  457.     if tipped == urNickname then
  458.       tipped = "keiichi4444"
  459.     end
  460.  
  461.     tip(tipped,tipSize)
  462.     --tip(urNickname,LBP)
  463.   else
  464.     tipped = "No"
  465.   end
  466.  
  467.  
  468.   ------------LOGGING----------------
  469.   if logToFile then
  470.  
  471.     if (win and LBC < 2) or LBR <= 10 or LBR >= 9989 then
  472.       tempstr = "year-0month-0day 0hour:0minute:0second, rolln, #betid, bet, chance, winamount, spenth, prof, roll, highlo, losestreak, winlose, htrigger, hunt, tipp\n"
  473.       tempstr = string.gsub(tempstr, "year", lastBet.date.year)
  474.       if (lastBet.date.month >= 10) then tempstr = string.gsub(tempstr, "0month", "month") end
  475.       if (lastBet.date.day >= 10) then tempstr = string.gsub(tempstr, "0day", "day") end
  476.       if (lastBet.date.hour >= 10) then tempstr = string.gsub(tempstr, "0hour", "hour") end
  477.       if (lastBet.date.minute >= 10) then tempstr = string.gsub(tempstr, "0minute", "minute") end
  478.       if (lastBet.date.second >= 10) then tempstr = string.gsub(tempstr, "0second", "second") end
  479.       tempstr = string.gsub(tempstr, "month", lastBet.date.month)
  480.       tempstr = string.gsub(tempstr, "day", lastBet.date.day)
  481.       tempstr = string.gsub(tempstr, "hour", lastBet.date.hour)
  482.       tempstr = string.gsub(tempstr, "minute", lastBet.date.minute)
  483.       tempstr = string.gsub(tempstr, "second", lastBet.date.second)
  484.       tempcalc = string.format("%4.0f", roundRolls)
  485.       tempstr = string.gsub(tempstr, "rolln", tempcalc)
  486.       tempstr = string.gsub(tempstr, "betid", LBID)
  487.       tempcalc = string.format("%2.8f", LBA)
  488.       tempstr = string.gsub(tempstr, "bet", tempcalc)
  489.       tempcalc = string.format("%2.2f", LBC)
  490.       tempstr = string.gsub(tempstr, "chance", tempcalc)
  491.       tempcalc = string.format("%3.8f", LBP)
  492.       tempstr = string.gsub(tempstr, "winamount", tempcalc)
  493.       tempcalc = string.format("%3.8f", spentHunt)
  494.       tempstr = string.gsub(tempstr, "spenth", tempcalc)
  495.       tempcalc = string.format("%3.8f", LBP - spentHunt)
  496.       tempstr = string.gsub(tempstr, "prof", tempcalc)
  497.       tempstr = string.gsub(tempstr, "roll", LBR)
  498.       if bethigh then
  499.         tempstr = string.gsub(tempstr, "highlo", "High")
  500.       else
  501.         tempstr = string.gsub(tempstr, "highlo", "Low")
  502.       end
  503.       tempcalc = string.format("%4.0f", loseCount)
  504.       tempstr = string.gsub(tempstr, "losestreak", tempcalc)
  505.       if win then
  506.         tempstr = string.gsub(tempstr, "winlose", "WIN")
  507.       else
  508.         tempstr = string.gsub(tempstr, "winlose", "LOSE")
  509.       end
  510.       tempstr = string.gsub(tempstr, "htrigger", trigger)
  511.       if trigger == "no" then
  512.         tempstr = string.gsub(tempstr, "hunt", "|")
  513.       else
  514.         tempstr = string.gsub(tempstr, "hunt", "-HUNT-")
  515.       end
  516.       tempstr = string.gsub(tempstr, "tipp", tipped)
  517.  
  518.       fin = assert(io.open(filename, "r"))
  519.       content = fin:read("*a")
  520.       fin:close()
  521.  
  522.       fout = assert(io.open(tempfile, "w"))
  523.       fout:write(content)
  524.       fout:write(tempstr)
  525.  
  526.       fout:close()
  527.       os.remove(filename)
  528.       os.rename(tempfile, filename)
  529.  
  530.     end
  531.  
  532.     if seedLog then
  533.       if LBR < 99 or LBR > 9900 then
  534.         -- Timestamp, Roll Number, Bet ID, Bet Amount, Chance, Win Amount, Streak Spent, Roll, High/Low, GAP, Losestreak, Win/Lose\n
  535.         tempstr = "rolln, betid, roll, highlo, x990\n"
  536.         tempcalc = string.format("%4.0f", LBN)
  537.         tempstr = string.gsub(tempstr, "rolln", tempcalc)
  538.         tempstr = string.gsub(tempstr, "betid", LBID)
  539.         tempstr = string.gsub(tempstr, "roll", LBR)
  540.         if LBR > 9900 then
  541.           tempstr = string.gsub(tempstr, "highlo", "High")
  542.         else
  543.           if LBR < 99 then
  544.             tempstr = string.gsub(tempstr, "highlo", "Low")
  545.           end
  546.         end
  547.         if LBR < 10 or LBR > 9989 then
  548.           tempstr = string.gsub(tempstr, "x990", "x990")
  549.         else
  550.           tempstr = string.gsub(tempstr, "x990", "--")
  551.         end
  552.         fin = assert(io.open(filename2, "r"))
  553.         content = fin:read("*a")
  554.         fin:close()
  555.  
  556.         fout = assert(io.open(tempfile2, "w"))
  557.         fout:write(content)
  558.         fout:write(tempstr)
  559.         -- fout:write(oppositeOut)
  560.  
  561.         fout:close()
  562.         os.remove(filename2)
  563.         os.rename(tempfile2, filename2)
  564.  
  565.       end
  566.     end
  567.  
  568.   end
  569.  
  570.  
  571.   --reset--
  572.  
  573.   if win then
  574.  
  575.     spentHunt = 0
  576.  
  577.     if curBal >= targetBalance then
  578.       print("\n\nTARGET REACHED\n\n")
  579.       stop()
  580.     end
  581.  
  582.  
  583.  
  584.     if (roundRolls > roundLimit) or ((roundRolls > 1001) and (x990lHITS > nonceAverage990) and (x990hHITS > nonceAverage990)) then
  585.  
  586.       if prefHigh then
  587.  
  588.         ultiHitsH = numbers[9996][3] + numbers[9997][3] + numbers[9998][3] + numbers[9999][3]
  589.  
  590.         if numbers[9996][3] == 0 and ultiHitsH <= 4 then
  591.           ultiH = 9996
  592.         elseif numbers[9997][3] == 0 and ultiHitsH <= 4 then
  593.           ultiH = 9997
  594.         elseif numbers[9998][3] == 0 and ultiHitsH <= 3 then
  595.           ultiH = 9998
  596.         elseif numbers[9999][3] == 0 then
  597.           ultiH = 9999
  598.         else
  599.           ultiH = 10000
  600.         end
  601.  
  602.         if ultiH < 10000 then
  603.           ultiHuntHigh = ultiH
  604.         else
  605.           resetArray()
  606.           resetVars()
  607.           if logToFile then
  608.             if roundRolls > roundLimit then
  609.               printRoundReset()
  610.             else
  611.               printRolledReset()
  612.             end
  613.           end
  614.         end
  615.  
  616.  
  617.       else
  618.  
  619.         ultiHitsL = numbers[3][3] + numbers[2][3] + numbers[1][3] + numbers[0][3]
  620.  
  621.         if numbers[3][3] == 0 and ultiHitsL <= 4 then
  622.           ultiL = 3
  623.         elseif numbers[2][3] == 0 and ultiHitsL <= 4 then
  624.           ultiL = 2
  625.         elseif numbers[1][3] == 0 and ultiHitsL <= 3 then
  626.           ultiL = 1
  627.         elseif numbers[0][3] == 0 then
  628.           ultiL = 0
  629.         else
  630.           ultiL = -1
  631.         end
  632.  
  633.         if ultiL >= 0 then
  634.           ultiHuntLow = ultiL
  635.         else
  636.           resetArray()
  637.           resetVars()
  638.           if logToFile then
  639.             if roundRolls > roundLimit then
  640.               printRoundReset()
  641.             else
  642.               printRolledReset()
  643.             end
  644.           end
  645.         end
  646.  
  647.       end
  648.  
  649.     end
  650.  
  651.     --if (roundRolls > 1001) and (x990lHITS > nonceAverage990) and (x990hHITS > nonceAverage990) then
  652.     --  resetArray()
  653.     --  resetVars()
  654.     --  if logToFile then
  655.     --    printRolledReset()
  656.     --  end
  657.     --end
  658.   end
  659.  
  660.  
  661.   --HUNT/WAGER--
  662.   if HUNT then
  663.  
  664.     --WIN/LOSE--
  665.     if win then
  666.       sessionprofit = 0
  667.  
  668.  
  669.  
  670.       if sound then
  671.         ching()
  672.       end
  673.       HUNT = false
  674.       HUNT990h = false
  675.       HUNT990l = false
  676.       HUNT100h = false
  677.       HUNT100l = false
  678.       trigger = "no"
  679.       loseCount = 0
  680.       huntLow = -1
  681.       huntHigh = 10000
  682.  
  683.     else
  684.       --
  685.       loseCount += 1
  686.     end
  687.  
  688.   else
  689.     --
  690.  
  691.     --HUNT-TRIGGERS--
  692.     for i = 7,50 do
  693.       if ((numbers[i][1] >= numbers[i][4] * goLow) and numbers[i][3] == 0 and huntLow < 0) then
  694.         huntLow = i
  695.       end
  696.     end
  697.     for i = 9951,9992 do
  698.       if numbers[i][1] >= numbers[i][4] * goHigh and numbers[i][3] == 0 then
  699.         huntHigh = i
  700.       end
  701.     end
  702.     --
  703.  
  704.  
  705.     if prefHigh then
  706.       --x990h--
  707.       --if huntHigh > 9985 and huntHigh < 10000 and ((nonceAverage990 -0.5) < x990hHITS) then
  708.       if huntHigh > 9985 and huntHigh < 10000 and (x990hHITS > 0) then
  709.         HUNT = true
  710.         HUNT990h = true
  711.         trigger = huntHigh
  712.         if sound then
  713.           alarm()
  714.         end
  715.       else
  716.         --x100h--
  717.         --if huntHigh >= 9951 and huntHigh <= 9985 and ((nonceAverage990) < x990hHITS) then
  718.         if huntHigh >= 9951 and huntHigh <= 9985 then
  719.           HUNT = true
  720.           HUNT100h = true
  721.           trigger = huntHigh
  722.           if sound then
  723.             alarm()
  724.           end
  725.         else
  726.           --x990l--
  727.           if huntLow >= 0 and huntLow < 15 and (x990lHITS > 0) then
  728.             HUNT = true
  729.             HUNT990l = true
  730.             trigger = huntLow
  731.             if sound then
  732.               alarm()
  733.             end
  734.           else
  735.             --x100l--
  736.             if huntLow >= 15 and huntLow < 51 then
  737.               HUNT = true
  738.               HUNT100l = true
  739.               trigger = huntLow
  740.               if sound then
  741.                 alarm()
  742.               end
  743.             end
  744.           end
  745.         end
  746.       end
  747.     else
  748.       --x990l--
  749.       if huntLow >= 0 and huntLow < 15 and (x990lHITS > 0) then
  750.         HUNT = true
  751.         HUNT990l = true
  752.         trigger = huntLow
  753.         if sound then
  754.           alarm()
  755.         end
  756.       else
  757.         --x100l--
  758.         if huntLow >= 15 and huntLow < 51 then
  759.           HUNT = true
  760.           HUNT100l = true
  761.           trigger = huntLow
  762.           if sound then
  763.             alarm()
  764.           end
  765.         else
  766.           --x990h--
  767.           if huntHigh > 9985 and huntHigh < 10000 and (x990hHITS > 0) then
  768.             HUNT = true
  769.             HUNT990h = true
  770.             trigger = huntHigh
  771.             if sound then
  772.               alarm()
  773.             end
  774.           else
  775.             --x100h--
  776.             if huntHigh >= 9951 and huntHigh <= 9985 then
  777.               HUNT = true
  778.               HUNT100h = true
  779.               trigger = huntHigh
  780.               if sound then
  781.                 alarm()
  782.               end
  783.             end
  784.           end
  785.         end
  786.       end
  787.     end
  788.     --
  789.     --
  790.   end
  791.  
  792.   --HUNT-PATTERNS--
  793.   if HUNT then
  794.     nextbet = huntBet
  795.     if loseCount >= step1 then
  796.       nextbet = huntBet * multy1
  797.     end
  798.     if loseCount >= step2  then
  799.       nextbet = huntBet * multy2
  800.     end
  801.     if loseCount >= step3  then
  802.       nextbet = huntBet * multy3
  803.     end
  804.     if loseCount >= step4  then
  805.       nextbet = previousbet * incr1
  806.     end
  807.     if loseCount >= step5  then
  808.       nextbet = previousbet * incr2
  809.     end
  810.     if loseCount >= step6  then
  811.       nextbet = previousbet * incr3
  812.     end
  813.     if loseCount >= step7  then
  814.       nextbet = previousbet * incr4
  815.     end
  816.     if loseCount >= step8  then
  817.       nextbet = previousbet * incr5
  818.     end
  819.     --
  820.  
  821.     --x100--
  822.     if HUNT100h then
  823.       chanceCalcB = (10000 - huntHigh) * startChanceM
  824.     end
  825.  
  826.     if HUNT100l then
  827.       chanceCalcB = huntLow * startChanceM
  828.     end
  829.  
  830.     if HUNT100h or HUNT100l then
  831.  
  832.       if chance > chanceStep1 then
  833.         chanceDown = chanceD1
  834.       elseif chance > chanceStep2 then
  835.         chanceDown = chanceD2
  836.       elseif chance > chanceStep3 then
  837.         chanceDown = chanceD3
  838.       else
  839.         chanceDown = chanceD4
  840.       end
  841.  
  842.     end
  843.  
  844.     --x990--
  845.     if HUNT990h or HUNT990l then
  846.  
  847.       chanceCalcB = 0.3
  848.  
  849.       if chance > chanceStep4 then
  850.         chanceDown = chanceD5
  851.       elseif chance > chanceStep5 then
  852.         chanceDown =  chanceD6
  853.       else
  854.         chanceDown =  chanceD7
  855.       end
  856.  
  857.     end
  858.     --
  859.  
  860.     --CHANCE--
  861.     if loseCount < 2 then
  862.       chanceCalc = chanceCalcB
  863.     else
  864.       chanceCalc = chanceCalc - chanceDown
  865.     end
  866.  
  867.     --0.09
  868.  
  869.     if bethigh then
  870.       if chanceCalc <= 0.1 then
  871.         if numbers[9990][3] > 0 then
  872.           if numbers[9991][3] > 0 then
  873.             if numbers[9992][3] > 0 then
  874.               chanceCalcA = 0.07
  875.             else
  876.               chanceCalcA = 0.08
  877.             end
  878.           else
  879.             chanceCalcA = 0.09
  880.           end
  881.         else
  882.           chanceCalcA = 0.1
  883.         end
  884.       end
  885.     else
  886.       if chanceCalc <= 0.1 then
  887.         if numbers[9][3] > 0 then
  888.           if numbers[8][3] > 0 then
  889.             if numbers[7][3] > 0 then
  890.               chanceCalcA = 0.07
  891.             else
  892.               chanceCalcA = 0.08
  893.             end
  894.           else
  895.             chanceCalcA = 0.09
  896.           end
  897.         else
  898.           chanceCalcA = 0.1
  899.         end
  900.       end
  901.     end
  902.  
  903.  
  904.     if chanceCalc <= 0.1 then
  905.       chance = chanceCalcA
  906.     else
  907.       chance = chanceCalc
  908.     end
  909.     --
  910.  
  911.     --SIDE--
  912.     if HUNT100h or HUNT990h then
  913.       bethigh = true
  914.     end
  915.  
  916.     if HUNT100l or HUNT990l then
  917.       bethigh = false
  918.     end
  919.     --
  920.  
  921.   end
  922.   --
  923.  
  924.  
  925.   --WAGERING--
  926.   if not HUNT then
  927.  
  928.     sessionprofit = sessionprofit + LBP
  929.     if sessionprofit > 0.00000001 then
  930.       sessionprofit = 0.00000000
  931.     end
  932.     nextbet = wagerBet + ((((curBal) - (sessionprofit * 1666)) / 100000) + (curBal * 0.00000011675))
  933.     if nextbet > (wagerBet * 4) then
  934.       nextbet = wagerBet * 4
  935.     end
  936.     if nextbet < wagerBet * 1.03  then
  937.       nextbet = wagerBet
  938.     end
  939.  
  940.     bethigh = true
  941.     chance = baseChance1
  942.  
  943.     if win then
  944.  
  945.       if phase2 then
  946.         winCount += 1
  947.       end
  948.  
  949.       loseCountW = 0
  950.  
  951.       if phase2 and winCount >= 3 then
  952.         bethigh = !bethigh
  953.         winCount = 0
  954.       end
  955.  
  956.     else
  957.  
  958.       loseCountW += 1
  959.       winCount = 0
  960.       if phase1 and loseCountW == 3 then
  961.         phase1 = false
  962.         phase2 = true
  963.         loseCountW = 0
  964.       else
  965.         if phase2 and loseCountW == 1 then
  966.           phase1 = true
  967.           phase2 = false
  968.           loseCountW = 0
  969.         end
  970.       end
  971.     end
  972.  
  973.     if phase1 then
  974.       chance = baseChance1
  975.     end
  976.  
  977.     if phase2 then
  978.       chance = baseChance2
  979.     end
  980.   end
  981.   --
  982.  
  983.   --ULTIMATE--
  984.   if ultiHuntHigh < 10000 then
  985.     HUNT    = true
  986.     trigger = "ULTIMATE HIGH"
  987.     nextbet = minBet * 1
  988.     if nextbet < minBet then
  989.       nextbet = minBet
  990.     end
  991.     bethigh = true
  992.     chanceCalc = (10000 - ultiHuntHigh) / 100
  993.     chance = chanceCalc
  994.     ultiRolls += 1
  995.     if ultiRolls >= 50 then
  996.         nextbet = minBet * 1.5
  997.     end
  998.     if ultiRolls >= 100 then
  999.       resetArray()
  1000.       resetVars()
  1001.       if logToFile then
  1002.         printRoundReset()
  1003.       end
  1004.     end
  1005.   end
  1006.  
  1007.   if  ultiHuntLow >= 0 then
  1008.     HUNT    = true
  1009.     trigger = "ULTIMATE LOW"
  1010.     nextbet = minBet * 1
  1011.     if nextbet < minBet then
  1012.       nextbet = minBet
  1013.     end
  1014.     bethigh = false
  1015.     chanceCalc = (ultiHuntLow + 1) / 100
  1016.     chance = chanceCalc
  1017.     ultiRolls += 1
  1018.     if ultiRolls >= 50 then
  1019.         nextbet = minBet * 1.5
  1020.     end
  1021.     if ultiRolls >= 100 then
  1022.       resetArray()
  1023.       resetVars()
  1024.       if logToFile then
  1025.         printRoundReset()
  1026.       end
  1027.     end
  1028.   end
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.   --PRINTING--
  1035.  
  1036.   if stats >= statsEvery then
  1037.     stats = 0
  1038.  
  1039.     if HUNT then
  1040.       print("\n-------------------------")
  1041.       --print("\nHUNTING")
  1042.       print("\nTRIGGER = " .. trigger)
  1043.       --print("\nCHANCE = " .. string.format("%3.2f",chance))
  1044.       print("\nLOSESTREAK = " .. loseCount)
  1045.     else
  1046.       print("\n---------------------------------------------------------------------")
  1047.       print(50 .. "       ||   " .. string.format("%5.0f",numbers[50][1]) .. "   ||   " .. string.format("%5.0f",numbers[50][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[50][2]) .. "   ||   " .. string.format("%3.0f",numbers[50][3]))
  1048.       print(25 .. "       ||   " .. string.format("%5.0f",numbers[25][1]) .. "   ||   " .. string.format("%5.0f",numbers[25][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[25][2]) .. "   ||   " .. string.format("%3.0f",numbers[25][3]))
  1049.       print(12 .. "       ||   " .. string.format("%5.0f",numbers[12][1]) .. "   ||   " .. string.format("%5.0f",numbers[12][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[12][2]) .. "   ||   " .. string.format("%3.0f",numbers[50][3]))
  1050.       print("---------------------------------------------------------------------")
  1051.       print(9951 .. "   ||   " .. string.format("%5.0f",numbers[9951][1]) .. "   ||   " .. string.format("%5.0f",numbers[9951][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[9951][2]) .. "   ||   " .. string.format("%3.0f",numbers[9951][3]))
  1052.       print(9974 .. "   ||   " .. string.format("%5.0f",numbers[9974][1]) .. "   ||   " .. string.format("%5.0f",numbers[9974][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[9974][2]) .. "   ||   " .. string.format("%3.0f",numbers[9974][3]))
  1053.       print(9987 .. "   ||   " .. string.format("%5.0f",numbers[9987][1]) .. "   ||   " .. string.format("%5.0f",numbers[9987][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[9987][2]) .. "   ||   " .. string.format("%3.0f",numbers[9987][3]))
  1054.       print("---------------------------------------------------------------------\n")
  1055.       if (roundRolls / 1000) > x990lHITS then
  1056.         for i = 0,50 do
  1057.           if numbers[i][1] >= numbers[i][4] * goLow * 0.85 then
  1058.             print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goLow) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  1059.             print("---------------------------------------------------------------------")
  1060.           end
  1061.         end
  1062.       end
  1063.       print("---------------------------------------------------------------------")
  1064.       if (roundRolls / 1000) > x990hHITS then
  1065.         for i = 9951,9999 do
  1066.           if numbers[i][1] >= numbers[i][4] * goHigh * 0.85 then
  1067.             print(i .. "   ||   " .. string.format("%3.0f",numbers[i][1]) .. "   ||   " .. string.format("%3.0f",numbers[i][4] * goHigh) .. "   ||   " .. string.format("%3.0f",numbers[i][2]) .. "   ||   " .. string.format("%3.0f",numbers[i][3]))
  1068.             print("---------------------------------------------------------------------")
  1069.           end
  1070.         end
  1071.       end
  1072.     end
  1073.     if prefHigh then
  1074.       print("\nPREFER HIGH")
  1075.     else
  1076.       print("\nPREFER LOW")
  1077.     end
  1078.     print("\nLOW = " .. huntLow)
  1079.     print("\nHIGH = " .. huntHigh)
  1080.     print("\nx990 LOW GAP = " .. x990lGAP .. "  ||  HITS = " .. x990lHITS .. " (" .. totalLow .. ")")
  1081.     print("\nx990 HIGH GAP = " .. x990hGAP .. "  ||  HITS = " .. x990hHITS .. " (" .. totalHigh .. ")")
  1082.     print("\n-------------------------")
  1083.     print("\nROLLS = " .. roundRolls)
  1084.     print("\n-------------------------")
  1085.     print("\n")
  1086.     --end
  1087.     --
  1088.   end
  1089. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement