Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
wasek
on 06/03/2021, 00:16:34 UTC
ahhhh ok, yeah... the "nonce"

you should be able to check lastBet.nonce value and make sure that it has reset, otherwise you can stop:
Code:
...
seedreset = false
...
function dobet()

  ...
  if seedreset then
    if lastBet.nonce > 1 then
      #nonce not reset
      stop()
    else
      #nonce reset, continue
      seedreset = false
    end
  end

  ...
 
  if (lastBet.nonce % 70) == 0 then
    resetseed()
    seedreset = true
  end

  ...

end

Note:
- code assumes the "nonce" is reset to 1 (and not 0) as per the screenshot
- you won't know if the "nonce" has reset properly until the next bet is made and the nonce value is returned from the server... again, this will likely only work with sites that use a nonce... for instance, on crypto.games, the nonce always returns as -1.
primary expression expected, got '#'
Code:
chance     = 49.5
multiplier = 2
base       = 0.00000010
seedreset = false
function dobet()
if win then
nextbet=base
bethigh = !bethigh
else
nextbet=previousbet*multiplier
end
 if seedreset then
    if lastBet.nonce > 1 then
      #nonce not reset
      stop()
    else
      #nonce reset, continue
      seedreset = false
    end
  end
  if (lastBet.nonce % 70) == 0 then
    resetseed()
    seedreset = true
  end
end