100% found this document useful (1 vote)
2K views4 pages

Dicebot Script For Small Balance

This document contains the code for a betting algorithm that uses a Fibonacci sequence to determine bet amounts. It initializes variables like the minimum bet, base bet, chance of winning, and panic level. It defines functions to calculate the next Fibonacci number, initialize values, make a bet, and sleep between bets. The betting increases the Fibonacci index on wins and decreases it on losses, and enters a "panic" mode if the bet exceeds a panic number, resetting values until enough panic rolls occur.

Uploaded by

Bayu Ramadhanis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views4 pages

Dicebot Script For Small Balance

This document contains the code for a betting algorithm that uses a Fibonacci sequence to determine bet amounts. It initializes variables like the minimum bet, base bet, chance of winning, and panic level. It defines functions to calculate the next Fibonacci number, initialize values, make a bet, and sleep between bets. The betting increases the Fibonacci index on wins and decreases it on losses, and enters a "panic" mode if the bet exceeds a panic number, resetting values until enough panic rolls occur.

Uploaded by

Bayu Ramadhanis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

enablezz = false

enablesrc=false

minbet = 0.000001 --change this basebet


restTime = 0.0

basebet = 0.000001 --change this basebet


nextbet = basebet
basechance = 29
paniclevel = 5
panicflag = 0
prevbet = basebet
fibstep = 1.0

dynStep = 1000000000

dynamicBase = true
smoothPanic = false
panicReset = 50
panicCounter = 0
panicOffset = 1.0

onwin = -2
onlose = 1
fibdex=0
currbet=basebet

panicnumber = 1
i=0

local clock = os.clock


function sleep(n)
local t0 = clock()
while clock() - t0 <= n do end
end

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
function initialize()
if dynamicBase == true then
basebet = balance / dynStep
if basebet < minbet then
basebet = minbet
end
end
panicnumber=basebet
nextbet = basebet
chance = basechance
temp=0
prevtemp=0
fibdex=0

panicnumber=myfib(paniclevel)

tempstr = "Panic Number: panicnumber"


tempcalc = string.format("%.8f", panicnumber)
tempstr = string.gsub(tempstr, "panicnumber", tempcalc)

print (tempstr)

highLowAverage = {}
averageCount = 0
averageIndex = 0
averageMax = panicReset

rollCount = 0
rollSeedCount = 0

for i=0, averageMax do


highLowAverage[i] = 0
end

end

initialize()
resetseed()

function dobet()

if win then

if panicflag==1 then
nextbet=basebet
fibdex=0
print("panic over, reset")
else

fibdex=fibdex+onwin

if fibdex < 0 then


fibdex=0
end
nextbet=myfib(fibdex)
end
if dynamicBase == true then
basebet = balance / dynStep
if basebet < minbet then
basebet = minbet
end
panicnumber = myfib(paniclevel)
end
panicCounter=0
panicflag=0
chance = basechance

else

if prevbet >= panicnumber then


print("bet over limit, PANIC")
panicflag=1
end
fibdex=fibdex+onlose
nextbet=myfib(fibdex)

if panicflag == 1 then
panicCounter += 1
if smoothPanic == true then
chance += panicOffset
end
end

if panicCounter >= panicReset then


nextbet = basebet
fibdex=0
panicflag = 0
chance = basechance
panicCounter = 0
print("Too many panic rolls! Resetting!")
end

end

prevbet=nextbet

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

sleep(restTime)

end

You might also like