Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
ps_jb
on 20/01/2018, 05:11:29 UTC
Guys,


Could you please help me to put here a piece of code, which will bet every X bets Y amount of BTC with Z% of probability? X, Y, Z will be variables I will control:

Code:
chance=49.5
multiplier=2
base=0.00000100
preroll=5
prebet=0.00000001
stretch=3
function dobet()
 tmp = currentstreak+preroll
 if win then
  nextbet=prebet
 else
  if tmp == 0 then
   nextbet=base
  end
  if tmp < 0 then
   if tmp %stretch == 0 then
    nextbet=previousbet*multiplier
   end
  end
 end
end

Thank you!