what team to write hundred to look how many courses there was the smallest and biggest stone back? For example
1000 rates : min roll = 0.23 max roll = 99.9
I assume you're wanting to know what was the smallest and largest roll in the previous 1000 bets?
If you want to just do a fixed size run, its easy...
minRoll = 100
maxRoll = 0
numBets = 0
.. other setup ..
function dobet()
numBets = numBets + 1
if lastBet.Roll > maxRoll then
maxRoll = lastBet.Roll
elseif lastBet.Roll < minRoll then
minRoll = lastBet.Roll
end
if numBets == 1000 then
print("1000 rolls: min roll = ".. minRoll .. " max roll = " .. maxRoll)
end
.. other stuff ..
end
Note that this will only work for the first 1000 rolls... then it won't work. It also wouldn't work "as is" as a "sliding" window of min/max over the last 1000 rolls on a continuous betting basis... ie. you couldn't just reset it back to 0 and 100 and let it count again. You'd need to store the bets in a a FIFO list and recalculate min/max every roll... this would be slow.
Also, if you just want to track all the bets and calculate it at any given stage for any given length of rolls... you would need to store ALL the bet results and calculate it by looping through them... that would take up LOTS of memory... and be VERY slow!
You'd probably be better off running SQL on the database file using external programs... but then you couldn't use an automated script to get the numbers... you might have to consider modifying the source code for the bot itself to include a function that you can call from programmer mode that could find min and max over X number of rolls.
I copy a code, but it isn't started