Post
Topic
Board Gambling
Re: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts!
by
thenerdyone314
on 21/08/2020, 20:08:20 UTC
I don't know LUA, but I have a bit of c++ experience. I have a problem where I'm trying to get it to switch payouts if lastbet was below a certain number or above another, but it only reads the below portion. Please help.

Code:

function dobet()
    if lastBet.Roll < 3.3 or lastBet.Roll > 96.7 then
        chance = 49.1089
    end

I also tried the following and it didn't work either.

Code:

function dobet()
    if lastBet.Roll < 3.3 then
        chance = 49.1089
    elseif lastBet.Roll > 96.7 then
        chance = 49.1089
    end

Again, regardless of which on I try, nothing changes unless a number under 3.3 is rolled.