Skip to content

Instantly share code, notes, and snippets.

@XclusiveDigital
Created April 2, 2020 11:40
Show Gist options
  • Save XclusiveDigital/0bc592775c00ae7a24e20e1365422608 to your computer and use it in GitHub Desktop.
Save XclusiveDigital/0bc592775c00ae7a24e20e1365422608 to your computer and use it in GitHub Desktop.
CMH Dicebot Script
-- CREDITS --
-- Original was made by DSetzer for BustaBit. --
-- https://gist.github.com/dsetzer/fb2a925098135c7a1ff95002b11ccc3e --
baseBet = 0
minPayout = 1.3
maxPayout = 4.5
incPayout = 1.5
currBet = baseBet
currPayout = minPayout
chance = 99/currPayout
maxLoss = 1000
startingBalance = balance
rolls = 0
resetstats()
resetseed()
function roundBal(num)
return (10 ^ math.floor((math.log(num))/(math.log(10))))
end
if (baseBet == 0) then
baseBet = roundBal(balance/100000)
currBet = baseBet
end
nextbet = currBet
function dobet()
rolls = rolls + 1
if (win) then
currBet = baseBet
currPayout = minPayout
if(bethigh)then
bethigh = false
else
bethigh = true
end
else
currPayout = currPayout + incPayout
if (currPayout > maxPayout) then
currBet = currBet * (maxPayout / (minPayout - 1))
currPayout = minPayout
end
end
if (balance - startingBalance <= maxLoss * -1) then
print("Max Loss Reached. Stopping")
stop()
end
if (balance - startingBalance >= maxLoss) then
startingBalance = balance
resetseed()
currBet = baseBet
currPayout = minPayout
end
if (rolls % 10 == 0) then
print("Starting Balance: " .. startingBalance .. " | Profit: " .. balance-startingBalance)
end
nextbet = currBet
chance = 99/currPayout
end
@anynoname
Copy link

Hi, on which site you have 98% chance?

@XclusiveDigital
Copy link
Author

XclusiveDigital commented Oct 7, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment