Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
HCP
on 05/03/2021, 02:33:58 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.