Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
ThePassenger
on 26/03/2017, 18:15:46 UTC


Hi again! Thanks to your help, i've managed to achieve more or less what i wanted. However, do you know how i can set the parameters inside the script to only make the change of lossmult during a certain amount of bets, and then go back to the initial? Any help will be much apreciatted! thanks

ummmm put in another counter when you change the lossmult? set it to zero, increment it every roll... and when it gets to the number of bets you set, you can just set lossStartMult back to whatever you want...

Code:
--CODE HAS NOT BEEN TESTED!

if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 4

    -- NEW COUNTER
    lossStartMultCounter = 0
  end
  lossCount = 0
end

--Increment every roll
lossStartMultCounter += 1

-- if it gets to big, reset lossStartMult and reset the counter as well
if lossStartMultCounter >= xNumberOfBets then
  lossStartMult = initialLossStartMultValue (or whatever else you feel like)
  lossStartMultCounter = 0
end if
[/quote]

Thanks very much again Smiley i'll try to set it up!