-- Constants
chance = 50 -- in percentage
div = 4e3
minbet = 1e-8
basebet = balance / div
nextbet = minbet
--lchance = 10 -- in percentage
--hchance = 10 -- in percentage
over30 = 0
w = 0
l = 0
mult = 1
ath = balance
consecutive_roll_threshold = 5
space_threshold = 20
high_threshold = 90
low_threshold = 10
previous_roll = nil
sbal=balance
targ=sbal*1.06
function calculate_difference(roll1, roll2)
return math.abs(roll1 - roll2)
end
-- Simulate the betting process (to be replaced with actual scheduling code)
function dobet()
if previousbet > minbet then
if win then
w = w + 1
else
l = l + 1
end
end
if (l==5) then
l = 0
mult = mult + 1
end
if previous_roll then
roll_diff = calculate_difference(previous_roll, lastBet.roll)
if (roll_diff > 30) then
over30 = over30 + 1
else
over30 = 0
end
if (over30 == 8 and lastBet.roll > 90) then
sleep(5) -- Wait for 5 seconds before processing the next roll
chance = 10
nextbet = basebet * 2.15^mult
bethigh = true
print("Placing bet on HIGH with chance: " .. chance .. "% and amount:
" .. nextbet)
elseif
(over30 == 8 and lastBet.roll < 10) then
sleep(5) -- Wait for 5 seconds before processing the next roll
chance = 10
nextbet = basebet * 2.15^mult
bethigh = false
print("Placing bet on LOW with chance: " .. chance .. "% and amount:
" .. nextbet)
else
nextbet = minbet
chance = 50
end
end
print("Losses: " .. l)
print("Multiplier: " .. mult)
print("Over 30 spaces consecutively: " .. over30 .. " Roll difference: " ..
roll_diff)
if balance > ath then
ath = balance
div = 4e3
basebet = balance / div
nextbet = minbet
mult = 1
l = 0
end
--os.execute("sleep 5") -- Wait for 5 seconds before processing the next roll
previous_roll = lastBet.roll
if balance>=targ then
dofile("C:\Users\yanjo\Downloads\Miner\cute scr v3b.lua")
end
end