Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
HCP
on 09/07/2017, 23:39:46 UTC
i need a script like this:

array like this...
chances = {11,12,13}
bets = {1000,2000,3000}
increase = {1.16,1.17,1.18}
but change random when profit is 0.1 btc
It isn't very clear what you actually want your script to do. Do you mean that you want it to randomly select a chance, bet and multiplier from your Array when your profit is > 0.1BTC? What should it do when profit is < 0.1 BTC? Huh


hello guys, please i need help adding a command to the following script, that will make the bot reset seed if i get 3 losses in a row
Code:
chance = 49.95
base = 0.00000001
count = 0
tot = 1
tot2 = 1
abc = 0
cba = 0
nextbet = base
function dobet()
if profit>0.000000001 then
count = 0
tot = 1
tot2 = 1
abc = 0
cba = 0
base = 0.00000001
resetstats()
end
if base == base then
tot = 1
tot2 = 1
end
if base == base*2 then
tot = 2
tot2 = 1
end
if base == base*4 then
tot = 4
tot2 = 1
end
if base == base*8 then
tot = 8
tot2 = 1
end
if base == base*16 then
tot = 16
tot2 = 1
end
if base == base*32 then
tot = 32
tot2 = 1
end
if base == base*64 then
tot = 64
tot2 = 1
end
if base == base*128 then
tot = 128
tot2 = 1
end
if base<0.00000001 then
base = 0.00000001
count = 0
abc = 0
cba = 0
end
count = count+1
if count>10 and abc>cba then
base = base/2
count = 0
abc = 0
cba = 0
end
if count>10 and abcbase = base*2
count = 0
abc = 0
cba = 0
end
if win then
abc = abc+tot
nextbet = base
else
cba = cba+tot2
nextbet = base
end
end
end
end

thanks
Firstly, as previously mentioned, that script is broken... all those "if base == base*2", "if base == base*4" etc... will NEVER return true... they need to be fixed for your script to do anything.

To reset the seed, check the "currentstreak" inbuilt variable in the "loss" section of your script (it's the "else" section of your "if win then")...

currentstreak shows the number of wins or losses in the current streak. Win streaks are are positive number, loss streak are negative number

ie. currentstreak == 10 is a 10 win streak
currentstreak == -5 is a 5 loss streak

Code:
...
function dobet()
...
  if win then
    abc = abc+tot
    nextbet = base
  else
    cba = cba+tot2
    nextbet = base
    if currentstreak == -3 then
      resetseed()
    end
  end
...
end