Im totaly new to this :/
I would like to
1. roll the dice with basebet 0.00000001 Chance 49.5%
2. After 4 Wins (not especially in a row) -> nextbet 0.00001000
3. If bet lost = previousbet*2 (repeat 6x times if its still a loosing bet. After 6x losses in a row go back to basebet),
if bet won nextbet = basebet (0.00000001)
4. Stop after target = 0.00010000
I tried something like that... but well its not doing what i want it to do
function dobet()
chance=49.50
basebet=0.00000001
if win then
wincounter +=1
end
if wincounter>3 then
wincounter=0
nextbet = 0.00001000 <-- #Don´t know why he is not doing this bet Bot jumps to #A or #B
if balance > startbalance then
nextbet = basebet <-- #A
else
nextbet=previousbet*2 <-- #B
end
if currentstreak%6==0 then <-- to avoid loosing strikes but somehow its also not working :/
nextbet=basebet
end
end
also the part with the target is missing... that the bot should stop after he reaches 0.00010000
I hope you can help me ... im totaly new to this .. Thanks
You look close... Lua is not the best at telling you whats wrong. I think the whole problem is you didn't define wincounter. Before the function statement add wincounter = 0. Also add nextbet = .00000001 and chance = 49.5
The very first bet is rolled before the function is called, so you need to set that up.
You could actually move the lines of code you only need to set once up there.