Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chance = 1
- basebet = 0.0000001
- nextbet = basebet
- highbet = basebet
- lossmultiplier = 2
- multiplyevery = 50
- resetseedevery = math.random(100)
- rounds = 1
- rollcount = 1
- balance = 1
- startbalance = balance
- lastbet = basebet
- bethigh = true
- highstreak = 0
- newstreak = 0
- lastroll = ""
- wrongside = 0
- wrongsidemax = 2
- wrongsidestreak = 0
- function dobet()
- if (bethigh and lastBet.roll < chance) then
- wrongside =+ 1
- elseif (not bethigh and lastBet.roll > (100 - chance)) then
- wrongside =+ 1
- end
- if wrongside > wrongsidestreak then
- wrongsidestreak = wrongside
- end
- if previousbet > highbet then
- highbet = previousbet
- end
- if (bets % resetseedevery) == 0 then
- resetseed()
- resetseedevery = math.random(100)
- if newstreak < highstreak then
- highstreak = newstreak
- end
- if bethigh then
- lastroll = "HIGH"
- else
- lastroll = "LOW"
- end
- print("\nprofit: \t\t" .. string.format("%9.8f", balance-startbalance) .. " " .. currency)
- print("nextbet: \t\t" .. string.format("%9.8f", nextbet) .. " " .. currency)
- print("highbet: \t\t" .. string.format("%9.8f", highbet) .. " " .. currency)
- print("prebet: \t\t" .. string.format("%9.8f", previousbet) .. " " .. currency)
- print("streak: \t\t" .. string.format("%9.8f", highstreak) .. " " .. currency)
- print("wrongside: \t" .. wrongsidestreak)
- print("bets: \t\t" .. bets)
- print("wins: \t\t" .. wins)
- print("losses: \t\t" .. losses)
- print("roll: \t\t".. lastroll)
- print("rounds: \t\t" .. rounds .. "\n")
- end
- if (win) then
- if wrongside <= wrongsidemax then
- bethigh = not bethigh
- end
- rounds += 1
- nextbet = basebet
- newstreak = 0
- rollcount = 1
- wrongside = 0
- elseif (rollcount % multiplyevery) == 0 then
- nextbet = previousbet*lossmultiplier
- newstreak = newstreak - previousbet
- rollcount += 1
- else
- newstreak = newstreak - previousbet
- rollcount += 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement