Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
chilly2k
on 30/04/2017, 14:40:23 UTC
Someone help! I am trying out the looping statements to figure out how best to accomplish a loop for a specific number of times, say 5 times and reset to basebet if no losing bet. On loss, multiplying previous bet by 2 for instance and maintaining the new betsize until the specific number of bets are won consecutively - 5 straight winning in this case.

   First read this....


Take a look at the tutorials linked on https://bot.seuntjie.com/programmermode.aspx, specifically https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-02-process
It will give you an overview of the process the bot follows every time a bet is placed.


Edit: Also, see https://bot.seuntjie.com/features.aspx for a list of features that is enabled for the supported sites.

   The script shouldn't loop.  The bot does that for you. 

See the currentstreak variable.  This is provided by the bot and keeps track of the current streak.  + for wins and - for loses. 

if (currentstreak == 5) then
   nextbet = basebet
end