Advertisement
Keiich

fibo_faucet

Dec 14th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 36.76 KB | None | 0 0
  1. --@ Hunt+Fibo_by_Keiichi_2.0
  2.  
  3. --@ Fibonacci function written by -CttCJim- (c)
  4.  
  5.  
  6.  
  7. -- The script will roll in 2 stages:
  8.  
  9. -- 1. Hunting Stage
  10. --    Will plainbet with selected chance for selected number of rolls
  11. --    On win will reset the number of rolls to 0
  12.  
  13. -- 2. Fibo Stage
  14. --    Triggered after Hunting stage is over
  15. --    Will increase the bet amount with each roll using factored Fibonacci sequence
  16. --    Will increase chance % with each roll by selected amount, factored by lenth of lossStreak
  17. --    On win will reset to Hunting Stage
  18.  
  19. -- Good luck
  20.  
  21. -----------------SETTINGS------------------
  22. -------------------------------------------
  23. -------------------------------------------
  24. targetb = 0.00212100 -- Target Balance
  25. --@ Rolling will stop when this balance reached
  26.  
  27. basebet = 10 -- Will be used as basebet by default if 'autotune = false'
  28. --@ Use whole integers (i.e. "10" = 10 sats = 0.00000010)
  29.  
  30. minbet = basebet  -- Will be used if 'autotune = true' as minimum possible bet
  31. --@ Use whole integers
  32.  
  33. HUNTChance = 0.77   -- Chance that will be used during Hunting Stage
  34. --@ The Fibo Stage will start with this chance
  35.  
  36. HUNTRollsNumber = 1 -- Number of rolls to do during Hunting Stage
  37. --@ Put 0 if you want to use the number based on selected HUNTChance
  38.  
  39. HUNTRollsPercent = 0.0 -- Number of rolls to do during Hunting Stage in % according to selected HUNTChance
  40. --@ i.e 1.00 = 100% - 100 rolls for x100 or 990 rolls for x990. Put 0 if you want to use plain number selected in HUNTRollsNumber
  41.  
  42. bbMult = 1.00 -- Multiplier for Hunting. Basebet will be multiplied by this number during Huntung Stage.
  43. --@ WILL NOT INFLUENCE THE FIBO STAGE (Change basebet for that)
  44.  
  45. reset = true
  46. -------------------------------------------
  47. ----ADJUST-THIS-SETTINGS-TO-UR-PLAYSTYLE---
  48. fibStepBase = 0.037 -- Fibonacci stepping amount
  49. --@ Will adjust each FiboStep on this number
  50.  
  51. chanceStepBase = 0.011-- Chance stepping amount
  52. --@ Will increase chance on this amount each roll during Fibo-Stage
  53. ------------------------------------------
  54. -------------------------------------------
  55.  
  56.  
  57. -------------------MISC-------------------
  58. showStats = true -- Show stats in console
  59. --@ Can slow down the rolling. Try switching to false.
  60.  
  61. sound = true -- 'Pling' on Win
  62.  
  63. housePercent = 1 -- House Edge used by casino. Used for number of HUNT rolls calculation
  64. --@ Leave 1 as default if not known
  65.  
  66. seedEachRoll = true -- Set to true to change seed on each roll (Dont use together with seedOnWin)
  67.  
  68. seedOnWin = false -- Set to true to change seed on win (Dont use together with seedEachRoll)
  69.  
  70. HiLoOnWin = false -- Set to true to change HiLo on 1-3 wins randomly
  71.  
  72. HiLoAvgCalc = false -- Set to true to change HiLo dynamicly based on previous rolls
  73.  
  74. autotune = false -- Set to true to calculate basebet based on current balance
  75. -------------------------------------------
  76. -------------------------------------------
  77. -------------------------------------------
  78.  
  79. ------------------STOPS--------------------
  80. stopOnWin = false
  81. stopSave = false
  82.  
  83. function stopwin()
  84.   stopOnWin = true
  85. end
  86.  
  87. function stopnow()
  88.   stopSave = true
  89. end
  90. -------------------------------------------
  91.  
  92. --------------BASE-VARIABLES---------------
  93. betCount = 0
  94. chanceStep = chanceStepBase
  95. fibstep = fibStepBase
  96. if HUNTRollsPercent > 0 then
  97.   winAmount = (100 - (100 * (housePercent / 100))) / HUNTChance
  98.   fiboStart = winAmount * HUNTRollsPercent
  99. end
  100. if HUNTRollsNumber > 0 then
  101.   fiboStart = HUNTRollsNumber
  102. end
  103. curbal = balance
  104. targetpercent = curbal / targetb * 100
  105. wincount = 0
  106. change = 0
  107. minbet = minbet * 0.00000001
  108. basebet = basebet * 0.00000001
  109. stepsTo100 = 100 / chanceStepBase
  110. currentStep = 0
  111. lossCount = 0
  112. stepCount = 0
  113. highLowAverage = {}
  114. averageCount = 0
  115. averageIndex = 0
  116. averageMax = 4
  117. if not (HiLoAvgCalc) and not (HiLoOnWin) then
  118.   bethigh = true
  119. end
  120. name = "|             HUNT-STAGE                 |"
  121. huntName1 = "Chance = " .. string.format("%3.2f",HUNTChance) .. "%"
  122. huntName2 = "Payout = x" .. string.format("%3.0f",9900 / (HUNTChance * 100))
  123. huntName3 = "Range: > " .. string.format("%3.0f",9999 - (HUNTChance * 100)) .. " or <" .. string.format("%3.0f",(HUNTChance * 100))
  124. -------------------------------------------
  125.  
  126. ---------------ROLL-STATS------------------
  127.  
  128. if reset then
  129.   x100l = 0  --@  0.9900%
  130.   x100h = 0  --@  0.9900%
  131.   --
  132.   x180l = 0  --@  0.5500%
  133.   x180h = 0  --@  0.5500%
  134.   --
  135.   x240l = 0  --@  0.4100%
  136.   x240h = 0  --@  0.4100%
  137.   --
  138.   x330l = 0  --@  0.3000%
  139.   x330h = 0  --@  0.3000%
  140.   --
  141.   x400l = 0  --@  0.2400%
  142.   x400h = 0  --@  0.2400%
  143.   --
  144.   x500l = 0  --@  0.1900%
  145.   x500h = 0  --@  0.1900%
  146.   --
  147.   x600l = 0  --@  0.1600%
  148.   x600h = 0  --@  0.1600%
  149.   --
  150.   x825l = 0  --@  0.1200%
  151.   x825h = 0  --@  0.1200%
  152.   --
  153.   x990l = 0  --@  0.1000%
  154.   x990h = 0  --@  0.1000%
  155.   --
  156.   x1100l = 0  --@  0.0900%
  157.   x1100h = 0  --@  0.0900%
  158.   --
  159.   x1650l = 0 --@  0.0600%
  160.   x1650h = 0 --@  0.0600%
  161.   --
  162.   x2475l = 0 --@  0.0400%
  163.   x2475h = 0 --@  0.0400%
  164.   --
  165.   x3300l = 0  --@  0.0300%
  166.   x3300h = 0  --@  0.0300%
  167.   --
  168.   x4950l = 0 --@  0.0200%
  169.   x4950h = 0 --@  0.0200%
  170.   --
  171.   x9900l = 0 --@  0.0100%
  172.   x9900h = 0 --@  0.0100%
  173.   --
  174.   HITx100l = 0  --@  0.9900%
  175.   HITx100h = 0  --@  0.9900%
  176.   --
  177.   HITx180l = 0  --@  0.5500%
  178.   HITx180h = 0  --@  0.5500%
  179.   --
  180.   HITx240l = 0  --@  0.4100%
  181.   HITx240h = 0  --@  0.4100%
  182.   --
  183.   HITx330l = 0  --@  0.3000%
  184.   HITx330h = 0  --@  0.3000%
  185.   --
  186.   HITx400l = 0  --@  0.2400%
  187.   HITx400h = 0  --@  0.2400%
  188.   --
  189.   HITx500l = 0  --@  0.1900%
  190.   HITx500h = 0  --@  0.1900%
  191.   --
  192.   HITx600l = 0  --@  0.1600%
  193.   HITx600h = 0  --@  0.1600%
  194.   --
  195.   HITx825l = 0  --@  0.1200%
  196.   HITx825h = 0  --@  0.1200%
  197.   --
  198.   HITx990l = 0  --@  0.1000%
  199.   HITx990h = 0  --@  0.1000%
  200.   --
  201.   HITx1100l = 0  --@  0.0900%
  202.   HITx1100h = 0  --@  0.0900%
  203.   --
  204.   HITx1650l = 0 --@  0.0600%
  205.   HITx1650h = 0 --@  0.0600%
  206.   --
  207.   HITx2475l = 0 --@  0.0400%
  208.   HITx2475h = 0 --@  0.0400%
  209.   --
  210.   HITx3300l = 0  --@  0.0300%
  211.   HITx3300h = 0  --@  0.0300%
  212.   --
  213.   HITx4950l = 0 --@  0.0200%
  214.   HITx4950h = 0 --@  0.0200%
  215.   --
  216.   HITx9900l = 0 --@  0.0100%
  217.   HITx9900h = 0 --@  0.0100%
  218.   --
  219.   YOLOWins = 0
  220.   YOLOed = 0
  221.   LUCKYWins = 0
  222.   LUCKYed = 0
  223.   LUCKYLoses = 0
  224.   YOLOloses = 0
  225.   ULTIMATEh = true
  226.   ULTIMATEl = true
  227.  
  228.  
  229.   x100lCount = 0  --@  0.9900%
  230.   x100hCount = 0  --@  0.9900%
  231.   --
  232.   x180lCount = 0  --@  0.5500%
  233.   x180hCount = 0  --@  0.5500%
  234.   --
  235.   x240lCount = 0  --@  0.4100%
  236.   x240hCount = 0  --@  0.4100%
  237.   --
  238.   x330lCount = 0  --@  0.3000%
  239.   x330hCount = 0  --@  0.3000%
  240.   --
  241.   x400lCount = 0  --@  0.2400%
  242.   x400hCount = 0  --@  0.2400%
  243.   --
  244.   x500lCount = 0  --@  0.1900%
  245.   x500hCount = 0  --@  0.1900%
  246.   --
  247.   x600lCount = 0  --@  0.1600%
  248.   x600hCount = 0  --@  0.1600%
  249.   --
  250.   x825lCount = 0  --@  0.1200%
  251.   x825hCount = 0  --@  0.1200%
  252.   --
  253.   x990lCount = 0  --@  0.1000%
  254.   x990hCount = 0  --@  0.1000%
  255.   --
  256.   x1100lCount = 0  --@  0.0900%
  257.   x1100hCount = 0  --@  0.0900%
  258.   --
  259.   x1650lCount = 0 --@  0.0600%
  260.   x1650hCount = 0 --@  0.0600%
  261.   --
  262.   x2475lCount = 0 --@  0.0400%
  263.   x2475hCount = 0 --@  0.0400%
  264.   --
  265.   x3300lCount = 0  --@  0.0300%
  266.   x3300hCount = 0  --@  0.0300%
  267.   --
  268.   x4950lCount = 0 --@  0.0200%
  269.   x4950hCount = 0 --@  0.0200%
  270.   --
  271.   x9900lCount = 0 --@  0.0100%
  272.   x9900hCount = 0 --@  0.0100%
  273.  
  274.   missedHigh = 0
  275.   missedLow = 0
  276. end
  277. -------------------------------------------
  278.  
  279. --------------HiLo-AVERAGE-ARRAY-----------
  280. for i=0, averageMax do
  281.   highLowAverage[i] = 0
  282. end
  283. -------------------------------------------
  284.  
  285.  
  286. --------------BASEBET-AUTOCALC-------------
  287. function autocalc()
  288.   if(autotune == true) then
  289.     if(lossCount == 0) then
  290.       basebet = balance / 100000
  291.       basebet = basebet / (10 - HUNTChance)
  292.       if basebet < minbet then
  293.         basebet = minbet
  294.       end
  295.     end
  296.   end
  297. end
  298. -------------------------------------------
  299.  
  300.  
  301. --------------FIBO-CALCULATION-------------
  302. --@ Routine was written by -CttCJim- (c)
  303. function myfib(level)
  304.   fibno=basebet
  305.   temp=0
  306.   prevfibno=0
  307.   if level == 0 then
  308.     fibno= basebet
  309.   else
  310.     for j=0,level-1,1 do
  311.  
  312.       temp=fibno
  313.       fibno=fibno + (prevfibno * fibstep)
  314.       prevfibno=temp
  315.     end
  316.   end
  317.   return fibno
  318. end
  319. -------------------------------------------
  320.  
  321.  
  322. --------------STARTING-SETTINGS------------
  323. autocalc()
  324. chance = HUNTChance
  325. nextbet=basebet * bbMult
  326. -------------------------------------------
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333. -------------------------------------------
  334. -------------------------------------------
  335. -------------------DOBET-------------------
  336. -------------------------------------------
  337. -------------------------------------------
  338. function dobet()
  339.  
  340.   betCount += 1
  341.   autocalc()
  342.   -------------------------------------------
  343.   if seedEachRoll then
  344.     resetseed()
  345.   end
  346.  
  347.  
  348.   ----------------Last-Roll----------------
  349.   LBR = lastBet.Roll
  350.   LBID = lastBet.Id
  351.   LBP = lastBet.Profit
  352.   LBC = lastBet.Chance
  353.   LBN = lastBet.Nonce
  354.   --------------------------------------
  355.   ------------COUNTERS---------------
  356.   x100l += 1  --@  0.9900%
  357.   x100h += 1  --@  0.9900%
  358.   --
  359.   x180l += 1  --@  0.5500%
  360.   x180h += 1  --@  0.5500%
  361.   --
  362.   x240l += 1  --@  0.4100%
  363.   x240h += 1  --@  0.4100%
  364.   --
  365.   x330l += 1  --@  0.3000%
  366.   x330h += 1  --@  0.3000%
  367.   --
  368.   x400l += 1  --@  0.2400%
  369.   x400h += 1  --@  0.2400%
  370.   --
  371.   x500l += 1  --@  0.1900%
  372.   x500h += 1  --@  0.1900%
  373.   --
  374.   x600l += 1  --@  0.1600%
  375.   x600h += 1  --@  0.1600%
  376.   --
  377.   x825l += 1  --@  0.1200%
  378.   x825h += 1  --@  0.1200%
  379.   --
  380.   x990l += 1  --@  0.1000%
  381.   x990h += 1  --@  0.1000%
  382.   --
  383.   x1100l += 1  --@  0.0900%
  384.   x1100h += 1  --@  0.0900%
  385.   --
  386.   x1650l += 1  --@  0.0600%
  387.   x1650h += 1  --@  0.0600%
  388.   --
  389.   x2475l += 1  --@  0.0400%
  390.   x2475h += 1  --@  0.0400%
  391.   --
  392.   x3300l += 1  --@  0.0300%
  393.   x3300h += 1  --@  0.0300%
  394.   --
  395.   x4950l += 1  --@  0.0200%
  396.   x4950h += 1  --@  0.0200%
  397.   --
  398.   x9900l += 1  --@  0.0100%
  399.   x9900h += 1  --@  0.0100%
  400.   --
  401.   --
  402.   --
  403.   HITx100l += 1  --@  0.9900%
  404.   HITx100h += 1  --@  0.9900%
  405.   --
  406.   HITx180l += 1  --@  0.5500%
  407.   HITx180h += 1  --@  0.5500%
  408.   --
  409.   HITx240l += 1  --@  0.4100%
  410.   HITx240h += 1  --@  0.4100%
  411.   --
  412.   HITx330l += 1  --@  0.3000%
  413.   HITx330h += 1  --@  0.3000%
  414.   --
  415.   HITx400l += 1  --@  0.2400%
  416.   HITx400h += 1  --@  0.2400%
  417.   --
  418.   HITx500l += 1  --@  0.1900%
  419.   HITx500h += 1  --@  0.1900%
  420.   --
  421.   HITx600l += 1  --@  0.1600%
  422.   HITx600h += 1  --@  0.1600%
  423.   --
  424.   HITx825l += 1  --@  0.1200%
  425.   HITx825h += 1  --@  0.1200%
  426.   --
  427.   HITx990l += 1  --@  0.1000%
  428.   HITx990h += 1  --@  0.1000%
  429.   --
  430.   HITx1100l += 1  --@  0.0900%
  431.   HITx1100h += 1  --@  0.0900%
  432.   --
  433.   HITx1650l += 1  --@  0.0600%
  434.   HITx1650h += 1  --@  0.0600%
  435.   --
  436.   HITx2475l += 1  --@  0.0400%
  437.   HITx2475h += 1  --@  0.0400%
  438.   --
  439.   HITx3300l += 1  --@  0.0300%
  440.   HITx3300h += 1  --@  0.0300%
  441.   --
  442.   HITx4950l += 1  --@  0.0200%
  443.   HITx4950h += 1  --@  0.0200%
  444.   --
  445.   HITx9900l += 1  --@  0.0100%
  446.   HITx9900h += 1  --@  0.0100%
  447.   -----------------------------------
  448.   -------Counters-Resets-High---------
  449.  
  450.   if LBR > 99.98 then
  451.     x100h = x100h * 0.3
  452.     x180h = x180h * 0.3
  453.     x240h = x240h * 0.3
  454.     x330h = x330h * 0.25
  455.     x400h = x400h * 0.2
  456.     x500h = x500h * 0.2
  457.     x600h = x600h * 0.2
  458.     x825h = x825h * 0.15
  459.     x990h = x990h * 0.15
  460.     x1100h = x1100h * 0.15
  461.     x1650h = x1650h * 0.10
  462.     x2475h = x2475h * 0.10
  463.     x3300h = x3300h * 0.05
  464.     x4950h = x4950h * 0.05
  465.     x9900h = 0
  466.     HITx9900h = 0
  467.     x9900hCount += 1
  468.     if LBC <= 0.99 and not bethigh then
  469.       missedHigh += 1
  470.     end
  471.   else
  472.     if LBR > 99.97 then
  473.       x100h = x100h * 0.3
  474.       x180h = x180h * 0.3
  475.       x240h = x240h * 0.3
  476.       x330h = x330h * 0.25
  477.       x400h = x400h * 0.2
  478.       x500h = x500h * 0.2
  479.       x600h = x600h * 0.2
  480.       x825h = x825h * 0.15
  481.       x990h = x990h * 0.15
  482.       x1100h = x1100h * 0.15
  483.       x1650h = x1650h * 0.10
  484.       x2475h = x2475h * 0.05
  485.       x3300h = x3300h * 0.05
  486.       x4950h = 0
  487.       HITx4950h = 0
  488.       x4950hCount += 1
  489.       if LBC <= 0.99 and LBC >= 0.02 and not bethigh then
  490.         missedHigh += 1
  491.       end
  492.     else
  493.       if LBR > 99.96 then
  494.         x100h = x100h * 0.3
  495.         x180h = x180h * 0.3
  496.         x240h = x240h * 0.3
  497.         x330h = x330h * 0.25
  498.         x400h = x400h * 0.2
  499.         x500h = x500h * 0.2
  500.         x600h = x600h * 0.2
  501.         x825h = x825h * 0.2
  502.         x990h = x990h * 0.1
  503.         x1100h = x1100h * 0.10
  504.         x1650h = x1650h * 0.05
  505.         x2475h = x2475h * 0.05
  506.         x3300h = 0
  507.         HITx3300h = 0
  508.         x3300hCount += 1
  509.         if LBC <= 0.99 and LBC >= 0.03 and not bethigh then
  510.           missedHigh += 1
  511.         end
  512.       else
  513.         if LBR > 99.95 then
  514.           x100h = x100h * 0.3
  515.           x180h = x180h * 0.3
  516.           x240h = x240h * 0.3
  517.           x330h = x330h * 0.25
  518.           x400h = x400h * 0.2
  519.           x500h = x500h * 0.2
  520.           x600h = x600h * 0.2
  521.           x825h = x825h * 0.15
  522.           x990h = x990h * 0.15
  523.           x1100h = x1100h * 0.1
  524.           x1650h = x1650h * 0.05
  525.           x2475h = 0
  526.           HITx2475h = 0
  527.           x2475hCount += 1
  528.           if LBC <= 0.99 and LBC >= 0.04 and not bethigh then
  529.             missedHigh += 1
  530.           end
  531.         else
  532.           if LBR > 99.93 then
  533.             x100h = x100h * 0.3
  534.             x180h = x180h * 0.3
  535.             x240h = x240h * 0.3
  536.             x330h = x330h * 0.25
  537.             x400h = x400h * 0.2
  538.             x500h = x500h * 0.2
  539.             x600h = x600h * 0.2
  540.             x825h = x825h * 0.15
  541.             x990h = x990h * 0.15
  542.             x1100h = x1100h * 0.1
  543.             x1650h = 0
  544.             HITx1650h = 0
  545.             x1650hCount += 1
  546.             if LBC <= 0.99 and LBC >= 0.06 and not bethigh then
  547.               missedHigh += 1
  548.             end
  549.           else
  550.             if LBR > 99.90 then
  551.               x100h = x100h * 0.3
  552.               x180h = x180h * 0.3
  553.               x240h = x240h * 0.25
  554.               x330h = x330h * 0.2
  555.               x400h = x400h * 0.25
  556.               x500h = x500h * 0.15
  557.               x600h = x600h * 0.15
  558.               x825h = x825h * 0.15
  559.               x990h = x990h * 0.05
  560.               x1100h = 0
  561.               HITx1100h = 0
  562.               x1100hCount += 1
  563.               if LBC <= 0.99 and LBC >= 0.09 and not bethigh then
  564.                 missedHigh += 1
  565.               end
  566.             else
  567.               if LBR > 99.89 then              
  568.                 x100h = x100h * 0.2
  569.                 x180h = x180h * 0.2
  570.                 x240h = x240h * 0.15
  571.                 x330h = x330h * 0.15
  572.                 x400h = x400h * 0.1
  573.                 x500h = x500h * 0.1
  574.                 x600h = x600h * 0.1
  575.                 x825h = x825h * 0.05
  576.                 x990h = 0
  577.                 HITx990h = 0
  578.                 x990hCount += 1
  579.                 if LBC <= 0.99 and LBC >= 0.1 and not  bethigh then
  580.                   missedHigh += 1
  581.                 end
  582.               else
  583.                 if LBR > 99.87 then
  584.                   x100h = x100h * 0.15
  585.                   x180h = x180h * 0.15
  586.                   x240h = x240h * 0.1
  587.                   x330h = x330h * 0.1
  588.                   x400h = x400h * 0.05
  589.                   x500h = x500h * 0.05
  590.                   x600h = x600h * 0.05
  591.                   x825h = 0
  592.                   HITx825h = 0
  593.                   x825hCount += 1
  594.                   if LBC <= 0.99 and LBC >= 0.12 and not bethigh then
  595.                     missedHigh += 1
  596.                   end
  597.                 else
  598.                   if LBR > 99.83 then
  599.                     x100h = x100h * 0.1
  600.                     x180h = x180h * 0.1
  601.                     x240h = x240h * 0.05
  602.                     x330h = x330h * 0.05
  603.                     x400h = x400h * 0.05
  604.                     x500h = x500h * 0.05
  605.                     x600h = 0
  606.                     HITx600h = 0
  607.                     x600hCount += 1
  608.                     if LBC <= 0.99 and LBC >= 0.16 and not bethigh then
  609.                       missedHigh += 1
  610.                     end
  611.                   else
  612.                     if LBR > 99.80 then
  613.                       x100h = x100h * 0.1
  614.                       x180h = x180h * 0.1
  615.                       x240h = x240h * 0.05
  616.                       x330h = x330h * 0.05
  617.                       x400h = x400h * 0.05
  618.                       x500h = 0
  619.                       HITx500h = 0
  620.                       x500hCount += 1
  621.                       if LBC <= 0.99 and LBC >= 0.19 and not bethigh then
  622.                         missedHigh += 1
  623.                       end
  624.                     else
  625.                       if LBR > 99.75 then
  626.                         x100h = x100h * 0.1
  627.                         x180h = x180h * 0.1
  628.                         x240h = x240h * 0.05
  629.                         x330h = x330h * 0.05
  630.                         x400h = 0
  631.                         HITx400h = 0
  632.                         x400hCount += 1
  633.                         if LBC <= 0.99 and LBC >= 0.24 and not bethigh then
  634.                           missedHigh += 1
  635.                         end
  636.                       else
  637.                         if LBR > 99.69 then
  638.                           x100h = x100h * 0.05
  639.                           x180h = x180h * 0.05
  640.                           x240h = x240h * 0.025
  641.                           x330h = 0
  642.                           HITx330h = 0
  643.                           x330hCount += 1
  644.                           if LBC <= 0.99 and LBC >= 0.3 and not bethigh then
  645.                             missedHigh += 1
  646.                           end
  647.                         else
  648.                           if LBR > 99.58 then
  649.                             x100h = x100h * 0.05
  650.                             x180h = x180h * 0.025
  651.                             x240h = 0
  652.                             HITx240h = 0
  653.                             x240hCount += 1
  654.                             if LBC <= 0.99 and LBC >= 0.41 and not bethigh then
  655.                               missedHigh += 1
  656.                             end
  657.                           else
  658.                             if LBR > 99.44 then
  659.                               x100h = x100h * 0.025
  660.                               x180h = 0
  661.                               HITx180h = 0
  662.                               x180hCount += 1
  663.                               if LBC <= 0.99 and LBC >= 0.55 and not bethigh then
  664.                                 missedHigh += 1
  665.                               end
  666.                             else
  667.                               if LBR > 99.00 then                            
  668.                                 x100h = 0
  669.                                 HITx100h = 0
  670.                                 x100hCount += 1
  671.                                 if LBC == 0.99 and not bethigh then
  672.                                   missedHigh += 1
  673.                                 end
  674.                               end
  675.                             end
  676.                           end
  677.                         end
  678.                       end
  679.                     end
  680.                   end
  681.                 end
  682.               end
  683.             end
  684.           end
  685.         end
  686.       end
  687.     end
  688.   end
  689.  
  690.   -------Counters-Resets-low----------
  691.  
  692.  
  693.  
  694.   if LBR < 0.01 then
  695.     x100l = x100l * 0.3
  696.     x180l = x180l * 0.3
  697.     x240l = x240l * 0.3
  698.     x330l = x330l * 0.25
  699.     x400l = x400l * 0.2
  700.     x500l = x500l * 0.2
  701.     x600l = x600l * 0.2
  702.     x825l = x825l * 0.15
  703.     x990l = x990l * 0.15
  704.     x1100l = x1100l * 0.15
  705.     x1650l = x1650l * 0.10
  706.     x2475l = x2475l * 0.10
  707.     x3300l = x3300l * 0.05
  708.     x4950l = x4950l * 0.05
  709.     x9900l = 0
  710.     HITx9900l = 0
  711.     x9900lCount += 1
  712.     if chance <= 0.99 and bethigh then
  713.       missedLow += 1
  714.     end
  715.   else
  716.     if LBR < 0.02 then
  717.       x100l = x100l * 0.3
  718.       x180l = x180l * 0.3
  719.       x240l = x240l * 0.3
  720.       x330l = x330l * 0.25
  721.       x400l = x400l * 0.2
  722.       x500l = x500l * 0.2
  723.       x600l = x600l * 0.2
  724.       x825l = x825l * 0.15
  725.       x990l = x990l * 0.15
  726.       x1100l = x1100l * 0.15
  727.       x1650l = x1650l * 0.10
  728.       x2475l = x2475l * 0.05
  729.       x3300l = x3300l * 0.05
  730.       x4950l = 0
  731.       HITx4950l = 0
  732.       x4950lCount += 1
  733.       if chance <= 0.99 and LBC >= 0.02 and bethigh then
  734.         missedLow += 1
  735.       end
  736.     else
  737.       if LBR < 0.03 then
  738.         x100l = x100l * 0.3
  739.         x180l = x180l * 0.3
  740.         x240l = x240l * 0.3
  741.         x330l = x330l * 0.25
  742.         x400l = x400l * 0.2
  743.         x500l = x500l * 0.2
  744.         x600l = x600l * 0.2
  745.         x825l = x825l * 0.1
  746.         x990l = x990l * 0.1
  747.         x1100l = x1100l * 0.10
  748.         x1650l = x1650l * 0.05
  749.         x2475l = x2475l * 0.05
  750.         x3300l = 0
  751.         HITx3300l = 0
  752.         x3300lCount += 1
  753.         if LBC <= 0.99 and LBC >= 0.03 and bethigh then
  754.           missedLow += 1
  755.         end
  756.       else
  757.         if LBR < 0.04 then
  758.           x100l = x100l * 0.3
  759.           x180l = x180l * 0.3
  760.           x240l = x240l * 0.3
  761.           x330l = x330l * 0.25
  762.           x400l = x400l * 0.2
  763.           x500l = x500l * 0.2
  764.           x600l = x600l * 0.2
  765.           x825l = x825l * 0.15
  766.           x990l = x990l * 0.1
  767.           x1100l = x1100l * 0.1
  768.           x1650l = x1650l * 0.05
  769.           x2475l = 0
  770.           HITx2475l = 0
  771.           x2475lCount += 1
  772.           if LBC <= 0.99 and LBC >= 0.04 and bethigh then
  773.             missedLow += 1
  774.           end
  775.         else
  776.           if LBR < 0.06 then
  777.             x100l = x100l * 0.3
  778.             x180l = x180l * 0.3
  779.             x240l = x240l * 0.3
  780.             x330l = x330l * 0.25
  781.             x400l = x400l * 0.2
  782.             x500l = x500l * 0.2
  783.             x600l = x600l * 0.2
  784.             x825l = x825l * 0.15
  785.             x990l = x990l * 0.1
  786.             x1100l = x1100l * 0.1
  787.             x1650l = 0
  788.             HITx1650l = 0
  789.             x1650lCount += 1
  790.             if LBC <= 0.99 and LBC >= 0.06 and bethigh then
  791.               missedLow += 1
  792.             end
  793.           else
  794.             if LBR < 0.09 then
  795.               x100l = x100l * 0.3
  796.               x180l = x180l * 0.3
  797.               x240l = x240l * 0.25
  798.               x330l = x330l * 0.2
  799.               x400l = x400l * 0.15
  800.               x500l = x500l * 0.15
  801.               x600l = x600l * 0.1
  802.               x825l = x825l * 0.1
  803.               x990l = x990l * 0.05
  804.               x1100l = 0
  805.               HITx1100l = 0
  806.               x1100lCount += 1
  807.               if LBC <= 0.99 and LBC >= 0.09 and bethigh then
  808.                 missedLow += 1
  809.               end
  810.             else
  811.               if LBR < 0.10 then
  812.                 x100l = x100l * 0.2
  813.                 x180l = x180l * 0.2
  814.                 x240l = x240l * 0.15
  815.                 x330l = x330l * 0.15
  816.                 x400l = x400l * 0.1
  817.                 x500l = x500l * 0.1
  818.                 x600l = x600l * 0.1
  819.                 x825l = x825l * 0.05
  820.                 x990l = 0
  821.                 HITx990l = 0
  822.                 x990lCount += 1
  823.                 if LBC <= 0.99 and LBC >= 0.1 and bethigh then
  824.                   missedLow += 1
  825.                 end
  826.               else
  827.                 if LBR < 0.12 then
  828.                   x100l = x100l * 0.15
  829.                   x180l = x180l * 0.15
  830.                   x240l = x240l * 0.1
  831.                   x330l = x330l * 0.1
  832.                   x400l = x400l * 0.05
  833.                   x500l = x500l * 0.05
  834.                   x600l = x600l * 0.05
  835.                   x825l = 0
  836.                   HITx825l = 0
  837.                   x825lCount += 1
  838.                   if LBC <= 0.99 and LBC >= 0.12 and bethigh then
  839.                     missedLow += 1
  840.                   end
  841.                 else
  842.                   if LBR < 0.16 then
  843.                     x100l = x100l * 0.1
  844.                     x180l = x180l * 0.1
  845.                     x240l = x240l * 0.1
  846.                     x330l = x330l * 0.05
  847.                     x400l = x400l * 0.05
  848.                     x500l = x500l * 0.05
  849.                     x600l = 0
  850.                     HITx600l = 0
  851.                     x600lCount += 1
  852.                     if LBC <= 0.99 and LBC >= 0.16 and bethigh then
  853.                       missedLow += 1
  854.                     end
  855.                   else
  856.                     if LBR < 0.19 then
  857.                       x100l = x100l * 0.1
  858.                       x180l = x180l * 0.1
  859.                       x240l = x240l * 0.05
  860.                       x330l = x330l * 0.05
  861.                       x400l = x400l * 0.05
  862.                       x500l = 0
  863.                       HITx500l = 0
  864.                       x500lCount += 1
  865.                       if LBC <= 0.99 and LBC >= 0.19 and bethigh then
  866.                         missedLow += 1
  867.                       end
  868.                     else
  869.                       if LBR < 0.24 then
  870.                         x100l = x100l * 0.1
  871.                         x180l = x180l * 0.1
  872.                         x240l = x240l * 0.05
  873.                         x330l = x330l * 0.05
  874.                         x400l = 0
  875.                         HITx400l = 0
  876.                         x400lCount += 1
  877.                         if LBC <= 0.99 and LBC >= 0.24 and bethigh then
  878.                           missedLow += 1
  879.                         end
  880.                       else
  881.                         if LBR < 0.30 then
  882.                           x100l = x100l * 0.05
  883.                           x180l = x180l * 0.05
  884.                           x240l = x240l * 0.025
  885.                           x330l = 0
  886.                           HITx330l = 0
  887.                           x330lCount += 1
  888.                           if LBC <= 0.99 and LBC >= 0.3 and bethigh then
  889.                             missedLow += 1
  890.                           end
  891.                         else
  892.                           if LBR < 0.41 then
  893.                             x100l = x100l * 0.05
  894.                             x180l = x180l * 0.025
  895.                             x240l = 0
  896.                             HITx240l = 0
  897.                             x240lCount += 1
  898.                             if LBC <= 0.99 and LBC >= 0.41 and bethigh then
  899.                               missedLow += 1
  900.                             end
  901.                           else
  902.                             if LBR < 0.55 then
  903.                               x100l = x100l * 0.025
  904.                               x180l = 0
  905.                               HITx180l = 0
  906.                               x180lCount += 1
  907.                               if LBC <= 0.99 and LBC >= 0.55 and bethigh then
  908.                                 missedLow += 1
  909.                               end
  910.                             else
  911.                               if LBR < 0.99 then
  912.                                 x100l = 0
  913.                                 HITx100l = 0
  914.                                 x100lCount += 1
  915.                                 if LBC == 0.99 and bethigh then
  916.                                   missedLow += 1
  917.                                 end
  918.                               end
  919.                             end
  920.                           end
  921.                         end
  922.                       end
  923.                     end
  924.                   end
  925.                 end
  926.               end
  927.             end
  928.           end
  929.         end
  930.       end
  931.     end
  932.   end
  933.   ------------------ON-WIN-------------------
  934.   if win then
  935.  
  936.     if seedOnWin then
  937.       resetseed()
  938.     end
  939.  
  940.     if sound then
  941.       ching()
  942.     end
  943.  
  944.     if HiLoOnWin then
  945.       wincount += 1
  946.       change = math.random(1,2)
  947.       if wincount >= change then
  948.         bethigh = not bethigh
  949.         wincount = 0
  950.       end
  951.  
  952.     end
  953.     curbal = balance
  954.     if curbal >= targetb then
  955.       print("\n---------")
  956.       print("---------\n")
  957.       print("Target Reached - Congratulations ")
  958.       print("\n---------")
  959.       print("---------\n")
  960.       stop()
  961.     end
  962.  
  963.     name = "|             HUNT-STAGE                 |"
  964.     fibstep = fibStepBase -- reset
  965.     chance = HUNTChance -- reset
  966.     chanceStep = chanceStepBase -- reset
  967.     lossCount = 0 -- reset
  968.     nextbet = basebet * bbMult -- reset
  969.     stepCount = 0 -- reset
  970.     ------------------------------------------
  971.  
  972.  
  973.     -----------------ON-LOSE------------------
  974.   else
  975.     lossCount += 1
  976.  
  977.     if lossCount > fiboStart then
  978.       stepCount += 1
  979.       name = "|             FIBO-STAGE                   |"
  980.  
  981.       if lossCount <= fiboStart + (stepsTo100 * 0.02) then
  982.         fibstep = fibStepBase -- * 0.55
  983.         chanceStep = chanceStepBase -- * 0.93
  984.       elseif lossCount <= fiboStart + (stepsTo100 * 0.03) then
  985.         fibstep = fibStepBase -- * 0.66
  986.         chanceStep = chanceStepBase -- * 1.11
  987.       elseif lossCount <= fiboStart + (stepsTo100 * 0.05) then
  988.         fibstep = fibStepBase -- * 0.77
  989.         chanceStep = chanceStepBase -- * 1.22
  990.       elseif lossCount <= fiboStart + (stepsTo100 * 0.07) then
  991.         fibstep = fibStepBase -- * 0.88
  992.         chanceStep = chanceStepBase -- * 1.33
  993.       elseif lossCount <= fiboStart + (stepsTo100 * 0.09) then
  994.         fibstep = fibStepBase
  995.         chanceStep = chanceStepBase -- * 1.11
  996.       elseif lossCount <= fiboStart + (stepsTo100 * 0.11) then
  997.         fibstep = fibStepBase
  998.         chanceStep = chanceStepBase
  999.       else
  1000.         fibstep = fibStepBase
  1001.         chanceStep = chanceStepBase -- * 0.88
  1002.       end
  1003.  
  1004.       chance += chanceStep
  1005.       nextbet = myfib(stepCount)
  1006.     end
  1007.   end
  1008.   ------------------------------------------
  1009.  
  1010.  
  1011.  
  1012.   -----------LoHi-AVERAGE-CALC------------
  1013.   if HiLoAvgCalc then
  1014.     if(lastBet.Roll >= 50) then
  1015.       highLowAverage[averageIndex] = 1
  1016.     else
  1017.       highLowAverage[averageIndex] = 0
  1018.     end
  1019.     averageIndex += 1
  1020.     if(averageIndex >= averageMax) then
  1021.       averageIndex = 0
  1022.     end
  1023.     if(averageCount < averageMax) then
  1024.       averageCount += 1
  1025.     end
  1026.     average = 0.00
  1027.     for i=0, averageCount do
  1028.       average += highLowAverage[i]
  1029.     end
  1030.     average = average / averageCount
  1031.     if average >= 0.5 then
  1032.       bethigh = true
  1033.     else
  1034.       bethigh = false
  1035.     end
  1036.   end
  1037.   -----------------------------------------
  1038.  
  1039.  
  1040.  
  1041.   ----------------BALANCE------------------
  1042.   curbal = balance
  1043.   targetpercent = curbal / targetb * 100
  1044.   -----------------------------------------
  1045.  
  1046.  
  1047.   if nextbet > curbal then
  1048.   nextbet = curbal
  1049.   end
  1050.  
  1051.  
  1052.  
  1053.   ----------------PRINTS-------------------
  1054.   if showStats then
  1055.     print("\n---------\n")
  1056.     print("\n---------\n")
  1057.     print("\n---------\n")
  1058.     print("\n---------\n")
  1059.     print("\n---------\n")
  1060.     print("\n---------\n")
  1061.     print("\n---------\n")
  1062.     print("\n---------\n")
  1063.     print("\n---------\n")
  1064.     print("\n---------\n")
  1065.     print("\n---------\n")
  1066.     print("\n---------\n")
  1067.     print("\n---------\n")
  1068.  
  1069.     print("\n------------------------------------------------------")
  1070.     print("------------------------------------------------------")
  1071.     print("|                                                     |")
  1072.     print(name)
  1073.     if name == "|             HUNT-STAGE                 |" then
  1074.       print("|                                                     |")
  1075.       print("|           " .. huntName1 .. "                |")
  1076.       print("|                                                     |")
  1077.       print("|           " .. huntName2 .. "                 |")
  1078.       print("|                                                     |")
  1079.       print("|       " .. huntName3 .. "           |")
  1080.       print("|                                                     |")
  1081.       print("|        Rolls = " .. lossCount .. "  Out Of  " .. string.format("%3.0f",fiboStart) .. "            |")
  1082.       print("|                                                     |")
  1083.     else
  1084.       print("|                                                     |")
  1085.       print("|      Current Fibo Step = " .. string.format("%3.3f",fibstep) .. "       |")
  1086.       print("|                                                     |")
  1087.       print("|    Current Chance Step = " .. string.format("%3.2f",chanceStep) .. "     |")
  1088.       print("|                                                     |")
  1089.       print("|          LoseStreak = " .. lossCount .. "                 |")
  1090.       print("|                                                     |")
  1091.     end
  1092.     print("------------------------------------------------------")
  1093.     print("------------------------------------------------------\n")
  1094.     print("\n---------\n")
  1095.     print("\n---------\n")
  1096.     print("Total Bets = " .. betCount)
  1097.     print("\n\nTarget Balance = " .. targetb)
  1098.     print("\n% of Target Reached = " .. string.format("%3.2f",targetpercent) .. "%")
  1099.     print("\n---------\n")
  1100.     print("\n---------\n")
  1101.   end
  1102.   -----------------------------------------
  1103.   -----------------------------------------
  1104.   -----------------------------------------
  1105.   if curbal < 0.00000010 then
  1106.   print("------------------                █████████████████")
  1107.   print("------------------                █████████████████")
  1108.   print("------------------                █████████████████")
  1109.   print("------------------                █████████████████")
  1110.   print("------------------                █████████████████")
  1111.   stop()
  1112.   end
  1113.  
  1114.   if (win and stopOnWin) or stopSave then
  1115.     --if useLog then
  1116.     --file:close(log)
  1117.     -- end
  1118.     print("x100h = " .. x100h)
  1119.     print("x180h = " .. x180h)
  1120.     print("x240h = " .. x240h)
  1121.     print("x330h = " .. x330h)
  1122.     print("x400h = " .. x400h)
  1123.     print("x500h = " .. x500h)
  1124.     print("x600h = " .. x600h)
  1125.     print("x825h = " .. x825h)
  1126.     print("x990h = " .. x990h)
  1127.     print("x1100h = " .. x1100h)
  1128.     print("x1650h = " .. x1650h)
  1129.     print("x2475h = " .. x2475h)
  1130.     print("x3300h = " .. x3300h)
  1131.     print("x4950h = " .. x4950h)
  1132.     print("x9900h = " .. x9900h)
  1133.     print("HITx100h = " .. HITx100h)
  1134.     print("HITx180h = " .. HITx180h)
  1135.     print("HITx240h = " .. HITx240h)
  1136.     print("HITx330h = " .. HITx330h)
  1137.     print("HITx400h = " .. HITx400h)
  1138.     print("HITx500h = " .. HITx500h)
  1139.     print("HITx600h = " .. HITx600h)
  1140.     print("HITx825h = " .. HITx825h)
  1141.     print("HITx990h = " .. HITx990h)
  1142.     print("HITx1100h = " .. HITx1100h)
  1143.     print("HITx1650h = " .. HITx1650h)
  1144.     print("HITx2475h = " .. HITx2475h)
  1145.     print("HITx3300h = " .. HITx3300h)
  1146.     print("HITx4950h = " .. HITx4950h)
  1147.     print("HITx9900h = " .. HITx9900h)
  1148.     print("x100hCount = " .. x100hCount)
  1149.     print("x180hCount = " .. x180hCount)
  1150.     print("x240hCount = " .. x240hCount)
  1151.     print("x330hCount = " .. x330hCount)
  1152.     print("x400hCount = " .. x400hCount)
  1153.     print("x500hCount = " .. x500hCount)
  1154.     print("x600hCount = " .. x600hCount)
  1155.     print("x825hCount = " .. x825hCount)
  1156.     print("x990hCount = " .. x990hCount)
  1157.     print("x1100hCount = " .. x1100hCount)
  1158.     print("x1650hCount = " .. x1650hCount)
  1159.     print("x2475hCount = " .. x2475hCount)
  1160.     print("x3300hCount = " .. x3300hCount)
  1161.     print("x4950hCount = " .. x4950hCount)
  1162.     print("x9900hCount = " .. x9900hCount)
  1163.     print("x100l = " .. x100l)
  1164.     print("x180l = " .. x180l)
  1165.     print("x240l = " .. x240l)
  1166.     print("x330l = " .. x330l)
  1167.     print("x400l = " .. x400l)
  1168.     print("x500l = " .. x500l)
  1169.     print("x600l = " .. x600l)
  1170.     print("x825l = " .. x825l)
  1171.     print("x990l = " .. x990l)
  1172.     print("x1100l = " .. x1100l)
  1173.     print("x1650l = " .. x1650l)
  1174.     print("x2475l = " .. x2475l)
  1175.     print("x3300l = " .. x3300l)
  1176.     print("x4950l = " .. x4950l)
  1177.     print("x9900l = " .. x9900l)
  1178.     print("HITx100l = " .. HITx100l)
  1179.     print("HITx180l = " .. HITx180l)
  1180.     print("HITx240l = " .. HITx240l)
  1181.     print("HITx330l = " .. HITx330l)
  1182.     print("HITx400l = " .. HITx400l)
  1183.     print("HITx500l = " .. HITx500l)
  1184.     print("HITx600l = " .. HITx600l)
  1185.     print("HITx825l = " .. HITx825l)
  1186.     print("HITx990l = " .. HITx990l)
  1187.     print("HITx1100l = " .. HITx1100l)
  1188.     print("HITx1650l = " .. HITx1650l)
  1189.     print("HITx2475l = " .. HITx2475l)
  1190.     print("HITx3300l = " .. HITx3300l)
  1191.     print("HITx4950l = " .. HITx4950l)
  1192.     print("HITx9900l = " .. HITx9900l)
  1193.     print("x100lCount = " .. x100lCount)
  1194.     print("x180lCount = " .. x180lCount)
  1195.     print("x240lCount = " .. x240lCount)
  1196.     print("x330lCount = " .. x330lCount)
  1197.     print("x400lCount = " .. x400lCount)
  1198.     print("x500lCount = " .. x500lCount)
  1199.     print("x600lCount = " .. x600lCount)
  1200.     print("x825lCount = " .. x825lCount)
  1201.     print("x990lCount = " .. x990lCount)
  1202.     print("x1100lCount = " .. x1100lCount)
  1203.     print("x1650lCount = " .. x1650lCount)
  1204.     print("x2475lCount = " .. x2475lCount)
  1205.     print("x3300lCount = " .. x3300lCount)
  1206.     print("x4950lCount = " .. x4950lCount)
  1207.     print("x9900lCount = " .. x9900lCount)
  1208.     print("missedHigh = " .. missedHigh)
  1209.     print("missedLow = " .. missedLow)
  1210.     if ULTIMATEh then
  1211.       print("ULTIMATEh = true")
  1212.     else
  1213.       print("ULTIMATEh = false")
  1214.     end
  1215.     if ULTIMATEl then
  1216.       print("ULTIMATEl = true")
  1217.     else
  1218.       print("ULTIMATEl = false")
  1219.     end
  1220.     stop()
  1221.   end
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement