Made your own configuration section
You want your OWN configuration like this in the bot???
http://puu.sh/5Ii0W.png
Well here i will show you a quickly tutorial about this, this simply the life of Users of the script.
First of all, you need to go to CaveBot//Settings and click Edit User Options then you put your code there, below i will paste the image above code:
Code:
{
"type" : "group",
"name" : "Your own Config",
"children" :
[
{
"type" : "checkbox",
"name" : "Hunt to Food?",
"text" : "Hunt to food?",
"value" :true
},
{
"type" : "combobox",
"name" : "Which weapon?",
"text" : "Which weapon?",
"items" : ["Axe", "Sword", "Club"]
},
{
"type" : "lineedit",
"name" : "Your name?",
"text" : "Your name?",
"value" : "Default"
}
]
}
Now to get the informations into a string you use this code:
Code:
getuseroption("NAME")
See the e.g. for the above user options code:
Code:
food = getuseroption("Hunt to Food?")
weapon = getuseroption("Which weapon?")
name = getuseroption("Your Name")
Always i use "say" command to check if it works
Put under the whole code like:
Code:
say(food)
wait(123,456)
say(weapon)
wait(123,456)
say(name)
wait(123,456)
Well, i think it helps all, it takes the bot more beautiful and simple :D