Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --@ Fibo_Faucets_by_Keiichi_3.0
- --@ Fibonacci function written by -CttCJim- (c)
- -- The script will roll in 2 stages:
- -- 1. Hunting Stage
- -- Will plainbet with selected chance for selected number of rolls
- -- On win will reset the number of rolls to 0
- -- 2. Fibo Stage
- -- Triggered after Hunting stage is over
- -- Will increase the bet amount with each roll using factored Fibonacci sequence
- -- Will increase chance % with each roll by selected amount, factored by lenth of lossStreak
- -- On win will reset to Hunting Stage
- -- Good luck
- -----------------SETTINGS------------------
- -------------------------------------------
- -------------------------------------------
- targetb = 0.03011000 -- Target Balance
- --@ Rolling will stop when this balance reached
- basebet = 10 -- Will be used as basebet by default if 'autotune = false'
- --@ Use whole integers (i.e. "10" = 10 sats = 0.00000010)
- minbet = basebet -- Will be used if 'autotune = true' as minimum possible bet
- --@ Use whole integers
- HUNTChance = 11.9 -- Chance that will be used during Hunting Stage
- --@ The Fibo Stage will start with this chance
- HUNTRollsNumber = 3 -- Number of rolls to do during Hunting Stage
- --@ Put 0 if you want to use the number based on selected HUNTChance
- HUNTRollsPercent = 0.0 -- Number of rolls to do during Hunting Stage in % according to selected HUNTChance
- --@ 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
- bbMult = 1.00 -- Multiplier for Hunting. Basebet will be multiplied by this number during Huntung Stage.
- --@ WILL NOT INFLUENCE THE FIBO STAGE (Change basebet for that)
- -------------------------------------------
- ----ADJUST-THIS-SETTINGS-TO-UR-PLAYSTYLE---
- fibStepBase = 0.340 -- Fibonacci stepping amount
- --@ Will adjust each FiboStep on this number
- chanceStepBase = 0.320-- Chance stepping amount
- --@ Will increase chance on this amount each roll during Fibo-Stage
- ------------------------------------------
- -------------------------------------------
- -------------------MISC-------------------
- showStats = false -- Show stats in console
- --@ Can slow down the rolling. Try switching to false.
- sound = true -- 'Pling' on Win
- housePercent = 1 -- House Edge used by casino. Used for number of HUNT rolls calculation
- --@ Leave 1 as default if not known
- seedEachRoll = true -- Set to true to change seed on each roll (Dont use together with seedOnWin)
- seedOnWin = false -- Set to true to change seed on win (Dont use together with seedEachRoll)
- HiLoOnWin = false -- Set to true to change HiLo on 1-3 wins randomly
- HiLoAvgCalc = false -- Set to true to change HiLo dynamicly based on previous rolls
- autotune = false -- Set to true to calculate basebet based on current balance
- -------------------------------------------
- -------------------------------------------
- -------------------------------------------
- --------------BASE-VARIABLES---------------
- betCount = 0
- chanceStep = chanceStepBase
- fibstep = fibStepBase
- if HUNTRollsPercent > 0 then
- winAmount = (100 - (100 * (housePercent / 100))) / HUNTChance
- fiboStart = winAmount * HUNTRollsPercent
- end
- if HUNTRollsNumber > 0 then
- fiboStart = HUNTRollsNumber
- end
- curbal = balance
- targetpercent = curbal / targetb * 100
- wincount = 0
- change = 0
- minbet = minbet * 0.00000001
- basebet = basebet * 0.00000001
- stepsTo100 = 100 / chanceStepBase
- currentStep = 0
- lossCount = 0
- stepCount = 0
- highLowAverage = {}
- averageCount = 0
- averageIndex = 0
- averageMax = 4
- if not (HiLoAvgCalc) and not (HiLoOnWin) then
- bethigh = true
- end
- name = "| HUNT-STAGE |"
- huntName1 = "Chance = " .. string.format("%3.2f",HUNTChance) .. "%"
- huntName2 = "Payout = x" .. string.format("%3.0f",9900 / (HUNTChance * 100))
- huntName3 = "Range: > " .. string.format("%3.0f",9999 - (HUNTChance * 100)) .. " or <" .. string.format("%3.0f",(HUNTChance * 100))
- -------------------------------------------
- --------------HiLo-AVERAGE-ARRAY-----------
- for i=0, averageMax do
- highLowAverage[i] = 0
- end
- -------------------------------------------
- --------------BASEBET-AUTOCALC-------------
- function autocalc()
- if(autotune == true) then
- if(lossCount == 0) then
- basebet = balance / 100000
- basebet = basebet / (10 - HUNTChance)
- if basebet < minbet then
- basebet = minbet
- end
- end
- end
- end
- -------------------------------------------
- --------------FIBO-CALCULATION-------------
- --@ Routine was written by -CttCJim- (c)
- function myfib(level)
- fibno=basebet
- temp=0
- prevfibno=0
- if level == 0 then
- fibno= basebet
- else
- for j=0,level-1,1 do
- temp=fibno
- fibno=fibno + (prevfibno * fibstep)
- prevfibno=temp
- end
- end
- return fibno
- end
- -------------------------------------------
- --------------STARTING-SETTINGS------------
- autocalc()
- chance = HUNTChance
- nextbet=basebet * bbMult
- -------------------------------------------
- -------------------------------------------
- -------------------------------------------
- -------------------DOBET-------------------
- -------------------------------------------
- -------------------------------------------
- function dobet()
- betCount += 1
- autocalc()
- -------------------------------------------
- if seedEachRoll then
- resetseed()
- end
- ------------------ON-WIN-------------------
- if win then
- if seedOnWin then
- resetseed()
- end
- if sound then
- ching()
- end
- if HiLoOnWin then
- wincount += 1
- change = math.random(1,3)
- if wincount >= change then
- bethigh = not bethigh
- wincount = 0
- end
- end
- curbal = balance
- if curbal >= targetb then
- print("\n---------")
- print("---------\n")
- print("Target Reached - Congratulations ")
- print("\n---------")
- print("---------\n")
- stop()
- end
- name = "| HUNT-STAGE |"
- fibstep = fibStepBase -- reset
- chance = HUNTChance -- reset
- chanceStep = chanceStepBase -- reset
- lossCount = 0 -- reset
- nextbet = basebet * bbMult -- reset
- stepCount = 0 -- reset
- ------------------------------------------
- -----------------ON-LOSE------------------
- else
- lossCount += 1
- if lossCount > fiboStart then
- stepCount += 1
- name = "| FIBO-STAGE |"
- if lossCount <= fiboStart + (stepsTo100 * 0.02) then
- fibstep = fibStepBase -- * 0.55
- chanceStep = chanceStepBase -- * 0.93
- elseif lossCount <= fiboStart + (stepsTo100 * 0.03) then
- fibstep = fibStepBase -- * 0.66
- chanceStep = chanceStepBase -- * 1.11
- elseif lossCount <= fiboStart + (stepsTo100 * 0.05) then
- fibstep = fibStepBase -- * 0.77
- chanceStep = chanceStepBase -- * 1.22
- elseif lossCount <= fiboStart + (stepsTo100 * 0.07) then
- fibstep = fibStepBase -- * 0.88
- chanceStep = chanceStepBase -- * 1.33
- elseif lossCount <= fiboStart + (stepsTo100 * 0.09) then
- fibstep = fibStepBase
- chanceStep = chanceStepBase -- * 1.11
- elseif lossCount <= fiboStart + (stepsTo100 * 0.11) then
- fibstep = fibStepBase
- chanceStep = chanceStepBase
- else
- fibstep = fibStepBase
- chanceStep = chanceStepBase -- * 0.88
- end
- chance += chanceStep
- nextbet = myfib(stepCount)
- end
- end
- ------------------------------------------
- -----------LoHi-AVERAGE-CALC------------
- if HiLoAvgCalc then
- if(lastBet.Roll >= 50) then
- highLowAverage[averageIndex] = 1
- else
- highLowAverage[averageIndex] = 0
- end
- averageIndex += 1
- if(averageIndex >= averageMax) then
- averageIndex = 0
- end
- if(averageCount < averageMax) then
- averageCount += 1
- end
- average = 0.00
- for i=0, averageCount do
- average += highLowAverage[i]
- end
- average = average / averageCount
- if average >= 0.5 then
- bethigh = true
- else
- bethigh = false
- end
- end
- -----------------------------------------
- ----------------BALANCE------------------
- curbal = balance
- targetpercent = curbal / targetb * 100
- -----------------------------------------
- ----------------PRINTS-------------------
- if showStats then
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("\n------------------------------------------------------")
- print("------------------------------------------------------")
- print("| |")
- print(name)
- if name == "| HUNT-STAGE |" then
- print("| |")
- print("| " .. huntName1 .. " |")
- print("| |")
- print("| " .. huntName2 .. " |")
- print("| |")
- print("| " .. huntName3 .. " |")
- print("| |")
- print("| Rolls = " .. lossCount .. " Out Of " .. string.format("%3.0f",fiboStart) .. " |")
- print("| |")
- else
- print("| |")
- print("| Current Fibo Step = " .. string.format("%3.3f",fibstep) .. " |")
- print("| |")
- print("| Current Chance Step = " .. string.format("%3.2f",chanceStep) .. " |")
- print("| |")
- print("| LoseStreak = " .. lossCount .. " |")
- print("| |")
- end
- print("------------------------------------------------------")
- print("------------------------------------------------------\n")
- print("\n---------\n")
- print("\n---------\n")
- print("Total Bets = " .. betCount)
- print("\n\nTarget Balance = " .. targetb)
- print("\n% of Target Reached = " .. string.format("%3.2f",targetpercent) .. "%")
- print("\n---------\n")
- print("\n---------\n")
- end
- -----------------------------------------
- -----------------------------------------
- -----------------------------------------
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement