daily pastebin goal
68%
SHARE
TWEET

64.5 Hour Version 1A

a guest Jan 23rd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --@ Fibo_Faucets_by_Keiichi_3.0
  2.  
  3. --@ Fibonacci function written by -CttCJim- (c)
  4.  
  5. -- The script will roll in 2 stages:
  6.  
  7. -- 1. Hunting Stage
  8. --    Will plainbet with selected chance for selected number of rolls
  9. --    On win will reset the number of rolls to 0
  10.  
  11. -- 2. Fibo Stage
  12. --    Triggered after Hunting stage is over
  13. --    Will increase the bet amount with each roll using factored Fibonacci sequence
  14. --    Will increase chance % with each roll by selected amount, factored by lenth of lossStreak
  15. --    On win will reset to Hunting Stage
  16.  
  17. -- Good luck
  18.  
  19. -----------------SETTINGS------------------
  20. -------------------------------------------
  21. -------------------------------------------
  22. targetb = 0.03011000 -- Target Balance
  23. --@ Rolling will stop when this balance reached
  24.  
  25. basebet = 10 -- Will be used as basebet by default if 'autotune = false'
  26. --@ Use whole integers (i.e. "10" = 10 sats = 0.00000010)
  27.  
  28. minbet = basebet  -- Will be used if 'autotune = true' as minimum possible bet
  29. --@ Use whole integers
  30.  
  31. HUNTChance = 11.9 -- Chance that will be used during Hunting Stage
  32. --@ The Fibo Stage will start with this chance
  33.  
  34. HUNTRollsNumber = 3 -- Number of rolls to do during Hunting Stage
  35. --@ Put 0 if you want to use the number based on selected HUNTChance
  36.  
  37. HUNTRollsPercent = 0.0 -- Number of rolls to do during Hunting Stage in % according to selected HUNTChance
  38. --@ 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
  39.  
  40. bbMult = 1.00 -- Multiplier for Hunting. Basebet will be multiplied by this number during Huntung Stage.
  41. --@ WILL NOT INFLUENCE THE FIBO STAGE (Change basebet for that)
  42.  
  43.  
  44. -------------------------------------------
  45. ----ADJUST-THIS-SETTINGS-TO-UR-PLAYSTYLE---
  46. fibStepBase = 0.340 -- Fibonacci stepping amount
  47. --@ Will adjust each FiboStep on this number
  48.  
  49. chanceStepBase = 0.320-- Chance stepping amount
  50. --@ Will increase chance on this amount each roll during Fibo-Stage
  51. ------------------------------------------
  52. -------------------------------------------
  53.  
  54.  
  55. -------------------MISC-------------------
  56. showStats = false -- Show stats in console
  57. --@ Can slow down the rolling. Try switching to false.
  58.  
  59. sound = true -- 'Pling' on Win
  60.  
  61. housePercent = 1 -- House Edge used by casino. Used for number of HUNT rolls calculation
  62. --@ Leave 1 as default if not known
  63.  
  64. seedEachRoll = true -- Set to true to change seed on each roll (Dont use together with seedOnWin)
  65.  
  66. seedOnWin = false -- Set to true to change seed on win (Dont use together with seedEachRoll)
  67.  
  68. HiLoOnWin = false -- Set to true to change HiLo on 1-3 wins randomly
  69.  
  70. HiLoAvgCalc = false -- Set to true to change HiLo dynamicly based on previous rolls
  71.  
  72. autotune = false -- Set to true to calculate basebet based on current balance
  73. -------------------------------------------
  74. -------------------------------------------
  75. -------------------------------------------
  76.  
  77.  
  78.  
  79.  
  80.  
  81. --------------BASE-VARIABLES---------------
  82. betCount = 0
  83. chanceStep = chanceStepBase
  84. fibstep = fibStepBase
  85. if HUNTRollsPercent > 0 then
  86.   winAmount = (100 - (100 * (housePercent / 100))) / HUNTChance
  87.   fiboStart = winAmount * HUNTRollsPercent
  88. end
  89. if HUNTRollsNumber > 0 then
  90.   fiboStart = HUNTRollsNumber
  91. end
  92. curbal = balance
  93. targetpercent = curbal / targetb * 100
  94. wincount = 0
  95. change = 0
  96. minbet = minbet * 0.00000001
  97. basebet = basebet * 0.00000001
  98. stepsTo100 = 100 / chanceStepBase
  99. currentStep = 0
  100. lossCount = 0
  101. stepCount = 0
  102. highLowAverage = {}
  103. averageCount = 0
  104. averageIndex = 0
  105. averageMax = 4
  106. if not (HiLoAvgCalc) and not (HiLoOnWin) then
  107.   bethigh = true
  108. end
  109. name = "|             HUNT-STAGE                 |"
  110. huntName1 = "Chance = " .. string.format("%3.2f",HUNTChance) .. "%"
  111. huntName2 = "Payout = x" .. string.format("%3.0f",9900 / (HUNTChance * 100))
  112. huntName3 = "Range: > " .. string.format("%3.0f",9999 - (HUNTChance * 100)) .. " or <" .. string.format("%3.0f",(HUNTChance * 100))
  113. -------------------------------------------
  114.  
  115.  
  116.  
  117. --------------HiLo-AVERAGE-ARRAY-----------
  118. for i=0, averageMax do
  119.   highLowAverage[i] = 0
  120. end
  121. -------------------------------------------
  122.  
  123.  
  124. --------------BASEBET-AUTOCALC-------------
  125. function autocalc()
  126.   if(autotune == true) then
  127.     if(lossCount == 0) then
  128.       basebet = balance / 100000
  129.       basebet = basebet / (10 - HUNTChance)
  130.       if basebet < minbet then
  131.         basebet = minbet
  132.       end
  133.     end
  134.   end
  135. end
  136. -------------------------------------------
  137.  
  138.  
  139. --------------FIBO-CALCULATION-------------
  140. --@ Routine was written by -CttCJim- (c)
  141. function myfib(level)
  142.   fibno=basebet
  143.   temp=0
  144.   prevfibno=0
  145.   if level == 0 then
  146.     fibno= basebet
  147.   else
  148.     for j=0,level-1,1 do
  149.  
  150.       temp=fibno
  151.       fibno=fibno + (prevfibno * fibstep)
  152.       prevfibno=temp
  153.     end
  154.   end
  155.   return fibno
  156. end
  157. -------------------------------------------
  158.  
  159.  
  160. --------------STARTING-SETTINGS------------
  161. autocalc()
  162. chance = HUNTChance
  163. nextbet=basebet * bbMult
  164. -------------------------------------------
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. -------------------------------------------
  172. -------------------------------------------
  173. -------------------DOBET-------------------
  174. -------------------------------------------
  175. -------------------------------------------
  176. function dobet()
  177.  
  178.   betCount += 1
  179.   autocalc()
  180. -------------------------------------------
  181. if seedEachRoll then
  182. resetseed()
  183. end
  184. ------------------ON-WIN-------------------
  185.   if win then
  186.  
  187. if seedOnWin then
  188. resetseed()
  189. end
  190.  
  191.     if sound then
  192.       ching()
  193.     end
  194.  
  195.     if HiLoOnWin then
  196.       wincount += 1
  197.       change = math.random(1,3)
  198.       if wincount >= change then
  199.         bethigh = not bethigh
  200.         wincount = 0
  201.       end
  202.  
  203.     end
  204.     curbal = balance
  205.     if curbal >= targetb then
  206.       print("\n---------")
  207.       print("---------\n")
  208.       print("Target Reached - Congratulations ")
  209.       print("\n---------")
  210.       print("---------\n")
  211.       stop()
  212.     end
  213.  
  214.     name = "|             HUNT-STAGE                 |"
  215.     fibstep = fibStepBase -- reset
  216.     chance = HUNTChance -- reset
  217.     chanceStep = chanceStepBase -- reset
  218.     lossCount = 0 -- reset
  219.     nextbet = basebet * bbMult -- reset
  220.     stepCount = 0 -- reset
  221. ------------------------------------------
  222.  
  223.  
  224. -----------------ON-LOSE------------------
  225.   else
  226.     lossCount += 1
  227.  
  228.     if lossCount > fiboStart then
  229.       stepCount += 1
  230.       name = "|             FIBO-STAGE                   |"
  231.  
  232.       if lossCount <= fiboStart + (stepsTo100 * 0.02) then
  233.         fibstep = fibStepBase -- * 0.55
  234.         chanceStep = chanceStepBase -- * 0.93
  235.       elseif lossCount <= fiboStart + (stepsTo100 * 0.03) then
  236.         fibstep = fibStepBase -- * 0.66
  237.         chanceStep = chanceStepBase -- * 1.11
  238.       elseif lossCount <= fiboStart + (stepsTo100 * 0.05) then
  239.         fibstep = fibStepBase -- * 0.77
  240.         chanceStep = chanceStepBase -- * 1.22
  241.       elseif lossCount <= fiboStart + (stepsTo100 * 0.07) then
  242.         fibstep = fibStepBase -- * 0.88
  243.         chanceStep = chanceStepBase -- * 1.33
  244.       elseif lossCount <= fiboStart + (stepsTo100 * 0.09) then
  245.         fibstep = fibStepBase
  246.         chanceStep = chanceStepBase -- * 1.11
  247.       elseif lossCount <= fiboStart + (stepsTo100 * 0.11) then
  248.         fibstep = fibStepBase
  249.         chanceStep = chanceStepBase
  250.       else
  251.         fibstep = fibStepBase
  252.         chanceStep = chanceStepBase -- * 0.88
  253.       end
  254.  
  255.       chance += chanceStep
  256.       nextbet = myfib(stepCount)
  257.     end
  258.   end
  259. ------------------------------------------
  260.  
  261.  
  262.  
  263. -----------LoHi-AVERAGE-CALC------------
  264.   if HiLoAvgCalc then
  265.     if(lastBet.Roll >= 50) then
  266.       highLowAverage[averageIndex] = 1
  267.     else
  268.       highLowAverage[averageIndex] = 0
  269.     end
  270.     averageIndex += 1
  271.     if(averageIndex >= averageMax) then
  272.       averageIndex = 0
  273.     end
  274.     if(averageCount < averageMax) then
  275.       averageCount += 1
  276.     end
  277.     average = 0.00
  278.     for i=0, averageCount do
  279.       average += highLowAverage[i]
  280.     end
  281.     average = average / averageCount
  282.     if average >= 0.5 then
  283.       bethigh = true
  284.     else
  285.       bethigh = false
  286.     end
  287.   end
  288. -----------------------------------------
  289.  
  290.  
  291.  
  292. ----------------BALANCE------------------
  293.   curbal = balance
  294.   targetpercent = curbal / targetb * 100
  295. -----------------------------------------
  296.  
  297.  
  298. ----------------PRINTS-------------------
  299. if showStats then
  300.   print("\n---------\n")
  301.   print("\n---------\n")
  302.   print("\n---------\n")
  303.   print("\n---------\n")
  304.   print("\n---------\n")
  305.   print("\n---------\n")
  306.   print("\n---------\n")
  307.   print("\n---------\n")
  308.   print("\n---------\n")
  309.   print("\n---------\n")
  310.   print("\n---------\n")
  311.   print("\n---------\n")
  312.   print("\n---------\n")
  313.   print("\n------------------------------------------------------")
  314.   print("------------------------------------------------------")
  315.   print("|                                                     |")
  316.   print(name)
  317.   if name == "|             HUNT-STAGE                 |" then
  318.   print("|                                                     |")
  319.   print("|           " .. huntName1 .. "                |")
  320.   print("|                                                     |")
  321.   print("|           " .. huntName2 .. "                 |")
  322.   print("|                                                     |")
  323.   print("|       " .. huntName3 .. "           |")
  324.   print("|                                                     |")
  325.   print("|        Rolls = " .. lossCount .. "  Out Of  " .. string.format("%3.0f",fiboStart) .. "            |")
  326.   print("|                                                     |")
  327.   else
  328.   print("|                                                     |")
  329.   print("|      Current Fibo Step = " .. string.format("%3.3f",fibstep) .. "       |")
  330.   print("|                                                     |")
  331.   print("|    Current Chance Step = " .. string.format("%3.2f",chanceStep) .. "     |")
  332.   print("|                                                     |")
  333.   print("|          LoseStreak = " .. lossCount .. "                 |")
  334.   print("|                                                     |")
  335.   end
  336.   print("------------------------------------------------------")
  337.   print("------------------------------------------------------\n")
  338.   print("\n---------\n")
  339.   print("\n---------\n")  
  340.   print("Total Bets = " .. betCount)
  341.   print("\n\nTarget Balance = " .. targetb)
  342.   print("\n% of Target Reached = " .. string.format("%3.2f",targetpercent) .. "%")
  343.   print("\n---------\n")
  344.   print("\n---------\n")
  345.  end
  346. -----------------------------------------
  347. -----------------------------------------
  348. -----------------------------------------
  349.  
  350. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top