i was trying to make setup for that
Consider = getuseroption('SafeExori')
and in setup i puted
{
"type": "checkbox",
"name": "SafeExori",
"text": "SafeExori",
"value": false
}
but even if i mark or not its just reading its like TRUE, not working False when i Unmark, any idea how to make setup with that?
Better use this (just add function to the code, and edit the Consider line):
function pvpworld()
return table.find({"Astera", "Calmera", "Candia", "Celesta", "Fidera", "Guardia", "Harmonia", "Honera", "Luminera", "Magera", "Menera", "Nerana", "Olympa", "Pacera", "Refugia", "Secura", "Unitera"}, $worldname) == nil
end
-- then the config
Config.Players.Consider = pvpworld(),
...
This will atuomatically set option to true if you are in a pvp world.
Nice job, thank you mate.. rep+
REP+ if i helped you.
Try it fasty with
and use another variableCode:{ "type" : "group", "name" : "Configuration", "children" : [ { "type" : "checkbox", "name" : "SafeExori", "text" : "SafeExori", "value" : false } ] }
Code:SafeExori = getuseroption("SafeExori")
Than to check create
Code:if SafeExori than say("IT works") else say("Bad try") end
yes its saying this words, but i want to change it in Persistenti want to there if i CHECK BOX to be True and if Uncheck to be False, any solution how to make that ?Consider =true
You need to add auto(100), if not the bot will check only the first unchecked option!
i know that, i was doing it and not working, but i will try again and give a reply there
i was trying lineedit and checkbox and i was writting true/false and it won't work
Any way to fix because i want make setup for that
Last edited by Dworak; 12-24-2013 at 10:52 AM.