The forum is a good platform for asking or offering help with programmer mode scripts
LUA Scripts
Uses math.random to randomly increase bets. Start out covering a long losing streak and occasionally bet a shorter streak. Betting is based on balance. easy to change.
start() Please set starting bet using nextbet = x.xxxxxxxx Please set starting chance using chance = yy.yyyy Solution?
Do exactly what it says: in the console, type nextbet = xxx.xxxxxx (replace xxx.xxxx with what you want your first bet to be) and press enter. Then try start() again
don´t work in dadice,not try to bet and suddenly says: Bet Failed:Please enter bet amount.
Does the bot work at all at dadice for you? are you sure your api is enabled and you're using the correct api key? Might have been a little down time for them again?
the bot works completly in dadice, but this script don´t work on it... Api and other things are okay, because I use my own scripts and work well.
This script contains an invest function that would need to be disabled for dadice. You can comment it out using -- in front of the invest function. If you have any questions about the script specifically, you'll need to ask the script author (chilly2k) about it.
Hi, thanks for sharing this great script, i'm testinging it. i have one little problem found what stop the script in betting, and end up some losses (about 15%). the error that occurs is this: Index was outside the bounds of the array. This message was noted after step 10. Hope it can fixt. It will cover that these types of losses can not occurs anymore by this error. Thanks
I get the 'bet amount not valid' message when the 95% bets start and the bot stops. Any ideas why?
( repeat io.write("high or low (h/l)? ") io.flush() answer=io.read() until answer=="h" or answer=="l" ) Does not work!!!
Whenever i run this after a little while i get an error index not in bound
Does anyone know how to stop nextbet before its placed in case it is over a certain value? Example: if nextbet > 1000 stopnow, I have tried many things but failed so far. else nextbet = previousbet * martimulti base = false end
ok so it looks like this segement of code causes the LUA Error index out of bounds of array if (losecount == 15 or (losecount == 10 and boom)) then repeat io.write("high or low (h/l)? ") io.flush() answer=io.read() until answer=="h" or answer=="l" if (answer == "h") then bethigh = true else bethigh = false end end
DiceBot doesn't bind to the normal lua io stream, so operations like io.write or io.read will not write to or read from the console. There are replacement methods to use instead, like print, readprompt or readadv. See the methods box in dicebot for details on the function parameters for each.
Betting Stopped! Index was outside the bounds of the array. this script is interesting; and it works well, unless it throws errors like above! does anyone can fix it, please?
I encounter the same problem. Still haven't found a fix either. If it would just give some data like what array its trying to access because I don't see an array in the script at all