Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
Nicoletta
on 21/12/2017, 19:20:06 UTC
ok now i am trying to merge my 2 scripts and i am doin something wrong
i want the script to proceed with the second strategy but looking and counting if there are 99% in the row is no

1st one counting the 99%  and betting 1% after 3

Code:
basebet= 0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

    if lastBet.Roll > 99 then
        highCount = highCount+1
    else
        highCount = 0
    end

    if lastBet.Roll < 1 then
        lowCount = lowCount+1
    else
        lowCount = 0
    end

    if highCount >= 3 then
        bethigh = false
        nextbet = balance * 0.01
        chance=90.0
    else if lowCount >= 3 then
        bethigh = true
        nextbet = balance * 0.01
        chance=90.0
    else
        chance=49.5

        if win then     
            nextbet = basebet
        else   
            nextbet = previousbetBackup*2
        end
previousbetBackup = nextbet
    end

end
end
end



second one that is betting and multiplies without stop until it gets to profit o 100 sat than restarts the bet to the beginning and stops when reaches the total profit o 1000


Code:
startbalance=balance
chance=49.50
multiplier=2
base=0.00000001
nextbet=base   
bethigh=true
function dobet()
   
   if win then
      if profit > 0.00000100 then
        resetstats()
        nextbet=basebet
      else
        nextbet=previousbet
      end

   else
      nextbet=previousbet*multiplier
   end

   if balance - startbalance > 0.00001000 then
      nextbet=0
      stop()
      ching()
   end
end

how to merge them?