A new stable version of the bot is available at
https://bot.seuntjie.com/botpage.aspxIt includes magicaldice.com and coinmillions.com and some more cool features, like a max and min bet, simpleswap exchange for deposits and withdrawals, and some new programming mode functions.
Fantastic....
Do you have any additional info on the new programmer mode functions? Also what they would be used for? I don't really understand the set and get value functions.
Thanks
The new functions implemented in this version are bool loadstrategy(string File) and object read(string prompt, int type).
loadstrategy looks for an exported settings file at path File (relative or absolute) and imports the settings into the advanced mode. Returns true is successful, false if it failed. This allows you to dynamically switch between strategies without having to stop the bot or use manual intervention. Added basically because zolace has been nagging for it for months on end now.
read shows an input box for user interaction (similarl to what you wanted with the io.read function). When read is called, the script is stopped until the user interaction is performed. The input box shows the string message assigned to the prompt parameter, and it can return 1 of 4 types (defined by the int type)
0: bool
1: int
2: double
3: string
Thus: read("Do you want to continue?",0) will show a box with the message "Do you want to continue?" with a yes and a no button, and returns true if yes is clicked and false if no is clicked or if the box is closed without an answer.
for 1 and 2, a numeric up-down is shown with ok/cancel buttons (0 decimal places for 1 and 8 decimal places for 2). If ok is clicked, the value of the num up/down is returned, if cancel is clicked or the form is closed, it returns null
for 3, a textbox is shown and its value is returned when ok is clicked. behavior otherwise is identical to 1 and 2.
The bot allows you to call the built in martignale/fibonacci/labouchere/d'alembert/presetlist functions as they are set up in your advanced settings mode. (double martingale(bool win), double labouchere(bool win) .... etc)
The setvalue function allows you to change the settings defined in the advanced mode and the getvalue function returns the value of a specific setting.
the name of the value is a case sensitive name for the settings as can be found in the save file or exported file of a settings, for example:
SaveVersion|3
MinBet|0.00000005
Multiplier|2.00000
Chance|49.5
MaxMultiply|999
NBets|1
Devider|2.00001
MultiplierMode|2
saverversion isn't a settings, it's used by the bot to determine how to read the settings
MinBet is your starting bet
Multiplier is your multiplier on loss for martingale
Chance is your chance to win
etc etc etc
The idea is so you can customize your strategies without having to rewrite the whole thing, for instance if you want your martingale starting bet to become a % of you balance of a win:
enablersc=true;
enablezz=true;
function dobet()
if win then setvaluedouble(MinBet, balance*(0.01/100))
end
nextbet=martingale(win)
end
This is much shorter than having to code your own martingale strategy with customizations, zig-zag, stop/reset conditions etc etc, but still allows you to customize it more than the advanced mode does.
note: it's important to call the correct setvalue method for the different types of settings, for instance:
ResetBetLossValue is an int, and thus setvalueint should be used to assign its value.
WinDevider is a double, so setvaluedouble should be used
LabValues is a comma seperated list of numbers, so setvaluestring should be used
and StopAfterLoseStreakEnabled is a boolean, thus setvaluebool should be used.
The getvalue function should return the appropriate object for each setting.