Post
Topic
Board Gambling
Re: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts!
by
thenerdyone314
on 22/08/2020, 13:23:15 UTC
You'll have to show your full script... there is obviously something elsewhere in your script which is overriding your chance setting that is done in the if (< 3 or > 97) block...

There is no way it should have reset to 97% unless there is another code branch setting the chance somwhere.

Maybe it would be easier to state my end goals for this. I figured I would try to solve each problem as I try to implement it, but we'll see if this clears things up.

I want to run high on 97.2% chance until it rolls under 3 or over 97. If it rolls under 3, it should change to 49% chance and do a basic martingale until a win, which would reset it. If it rolls over 97 I want it to do the same thing, but switch it to rolling low instead. Here's thejumbled c++/lua logic I could come up with for that but am still trying to implement. i can't seem to figure out how to do branches in the if statement like this in LUA:

Code:
dobet

if lastBet < 3.3
   { chance = 49.5;
        while (!win)
            {nextbet = previousbet*2;}
     }
elseif lastBet > 97.6
   {switch low;
     chance = 49.5;
        while (!win)
            {nextbet = previousbet*2;}
     }
else
{ nextBet = balance / 512;}