Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end
dobet runs after EVERY bet. So if your first check for !win is true, it's true for all of your checks. It doesn't do the first check and roll, then do the second and roll.
So your code just needs to check if !win. once. You can then use other variables to keep track of where you are in your sequence.
Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
Does this mean you want the bot to bet on the low side 2 times then the high side 2 times then low 3 then high 3, then back to the top?
You'll have to look this up. But there is a way to create an array in LUA it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
then make rollcounter = 1
and
bethigh = false
These would go in the beginning before the dobet function.
then right after dobet
rollcounter += 1 //bump roll counter to point to the next place in the array.
if betseq[rollcounter] == "Lo" then
bethigh = false
else
bethigh = true
end
if rollcounter == 10 then //reset roll counter when you hit the end of the array.
rollcounter = 0
end