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/ 2
game = "dice"
-- Parameters chance = 50 basebet = 0.11 -- Preferably at least 1/10th of balance minbet = 1e-8 bethigh = true nextbet = minbet w = 0 l = 0 hi = 0 lo = 0 ath = balance betcount = 0
-- Main betting function
function dobet() betcount = betcount + 1
if (lastBet.roll >= 50) then
hi = hi + 1 lo = 0 else lo = lo + 1 hi = 0 end if (hi>=2) then sleep(3) bethigh = false basebet = basebet - 0.01 nextbet = basebet elseif (lo>=2) then sleep(3) bethigh = true basebet = basebet - 0.01 nextbet = basebet end
if previousbet > minbet then
if win then w = w + 1 basebet = 0.11 nextbet = minbet end end
-- Check if new all-time high balance and reset variables if true
if (balance > ath) then ath = balance basebet = 0.11 nextbet = minbet end
-- Print the current state for debugging
print("Last Roll: " .. tostring(lastBet.roll)) print("Current Bet: " .. tostring(nextbet)) print("Betting on: " .. (bethigh and "High" or "Low")) print("Base bet wins: " .. tostring(w)) print("Base bet losses: " .. tostring(l)) end