Seuntjie,
The programmer mode is the bomb... It is so easy to try all kinds of new losing systems...
A few observations.
Did you mention returning the results of the roll.... Not just win or lose but the actual result. I believe that was the only thing I wanted to use but it was not available.
Man, once you get the hang of this, there is very little you can't do.
Also the invest/withdraw function. Is that just for JD. I know the invest and tip work on JD. ( I probably drove Doog crazy with the invest function...
).
You should set up the tip function with a default userid of you own. Just an easy way to send you a tip... When I'm rolling well I aways mean to send you a tip, but then I lose it all and can't...
I don't know if it's something about my screen settings, but the programmer panels are just a little too big. I have to scroll up/down to do almost anything. go the the code panel, scroll down change the code, scroll back up, select console panel, scroll back down to enter a command. rinse/ repeat....
Also when I get a script running I have to shrink the chart by about 3 pixels to get the full width on the console.
Lua is soooo easy. Almost like BASIC but without the line numbers. I still have a hard time making changes to the code, and then just running it. I always want to hit save somewhere...
All in all way to go. I don't know if there is enough interest but may having a sub topic for using the programmer mode. Examples, and help with doing various things.
Hi, Thanks for the response. I haven't had a lot of people using the programmer mode so it's still very buggy and needs some new features. I've been working on bettering it and the next build (which could possibly finally be a stable release) will have a much better programmer mode.
Currently only the win/loss is returned as you noted, but I already implemented returning an object of a bet result that will have more details on the roll available for the user to use, such as the client seed, roll number, lucky number, chance, profit, etc etc. The invest function works at JD, PRC and safedice. the tip function works at JD, PRC and PD. Build 9 has a donate button that details to which account to tip depending on which site you're on.
I know of the scroll bar thing. It shows the bottom scroll bar because the side scroll bar is visible and it shows the side scroll bar because the bottom scroll bar is visible. I'll make a few adjustments there and get it to look a bit better.
I'm planning on adding a save button so the code is saved to a file, but in the mean time you can work in a text file and use only the following in the code box. Just make sure you have a dobet() method/function defined in the file as that method is called to determine the next bet.
Remove everything from the code box and add only
dofile("textfilename.txt")
Now when you start the bot, the code in your text file will be executed and the method/function will be loaded from the file. All declarations and assignments done outside of a method in the file will be executed once and all methods will be loaded when start() is called.