Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
B4RF
on 22/12/2017, 10:03:30 UTC
Is there any way to combine this 2 scripts?
 Sad
OK
i have 2 scripts that you helped me to build
this one is betting on 49.5 and doubles the bet on lose but does not reset on first win only resets when reaches 100 sat profit and stops on 1000 total profit  and changes hi lo randomly.
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

what i want add to it is what the second script does it hunts for rows of numbers below 1% or above 99% and if streak is 3 it bets 1% on oposite as in this script
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

So i need one script to do it all combine them.

I simply used the second script added the balance check at the end and exchanged the "if win" statement while using the previousbetBackup variable instead.
This should do the trick although I didnt test it.

Code:
startbalance=balance
basebet= 0.00000001
nextbet=basebet
chance=49.5
multiplier=2

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
if profit > 0.00000100 then
resetstats()
nextbet=basebet
else
nextbet=previousbetBackup
end
else
nextbet=previousbetBackup*multiplier
end
previousbetBackup = nextbet
end
end

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