Search content
Sort by

Showing 2 of 2 results by momo1180
Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
momo1180
on 10/07/2017, 07:08:30 UTC
Scripts on win do not return to start chance1 new

Code:
chance1=47
chance2=49.5         
chance3=52.95         
chance4=95           
chance5=66.58
chance6=95

prebet = 0.001

m1=2
m2=2.5
m3=20.5
m4=2.5
m5=20.5
target=11000

nextbet = prebet
losecount = 0
betcount = 0
bethigh=false
wincount=0
highloss=0
totalloss=0
total=0
avehit=0
counter=0



function dobet()
 if win then
        nextbet = prebet
        wincount+=1
        total+=1
        totalloss+=losecount
        avehit=totalloss/total
        losecount = 0
        betcount += 1

        if profit>target then
stop()
print("TARGET REACHED!")
        end

   else

         losecount += 1
         betcount += 1
         nextbet = prebet

   end

if losecount > highloss then
highloss = losecount
end

   if (losecount > 0) then
chance = chance1
      nextbet = previousbet*m1
   end

   
   if (losecount > 1) then
chance = chance2
      nextbet = previousbet*m2

   end

   if (losecount > 2) then
chance = chance3
      nextbet = previousbet*m3
   end

 if (losecount > 3) then
chance = chance4
      nextbet = previousbet*m4

   end

 if (losecount > 4) then
chance = chance5
      nextbet = previousbet*m5

   end

 if (losecount > 5) then
chance = chance6
      nextbet = previousbet*m6

   end
    end
 end
end
Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
momo1180
on 21/06/2017, 14:15:18 UTC
I want to add a function when x is lost, add a bet.

Code:
basebet=0.1
bchance=93
chance=bchance
nextbet=basebet
maxbet=100
minbet=100
maxchance=93
minchance=93
randomc=100

function dobet()
bethigh= math.random(0,1000)%2==0
x=math.random(0,10000)
if x < randomc then
nextbet = math.random(minbet,maxbet)
chance=math.random(minchance*100,maxchance*100)/100
else
nextbet = basebet
chance=bchance
end
end