i just want to ask , if it possible to add such a feature to this script :
if x amount of red comes in a row return the scripts to beginning.
Yes... the "streak" of losses will be stored in "currentstreak" as a negative number... which is what the script is currently checking for while doing the preroll.
"if currentstreak < -preroll"... it checks to see if the losing streak is more than 5 losses in a row... then it starts multiplying.
You can add a "maxlosses" variable... and check that, if exceeded then return to default settings:
chance = 49.50
multiplier = 2
base = 0.00000001
preroll = 5
prebet = 0.00000001
nextbet = 0.00000001
maxlosses = 15
function dobet()
if win then
nextbet=base
else
if currentstreak== -preroll then
nextbet=base
end
if currentstreak < -preroll then
nextbet=previousbet*multiplier
end
if currentstreak < -maxlosses then
nextbet=base
currentstreak = 0
end
end
end
WARNING: I haven't extensively tested this code... use at your own risk
