-
UserOption Issue !
Dears
I would like to ask about issue happening to me, i made user option below ( thx for @Dehan ) its for mass char bot, but i got problem when ever log in next char its remove check from all checkboxs.
I know i add it ( false ) but i don't have any idea to save it after checked for all characters.
Please Move it to correct forum and I hope you understand my problem and sorry for my English
CODE :
PHP Code:
{
"type" : "scriptinfo",
"name" : "Venore Mega Hunt - By Holako",
"version" : "1.0.0"
},
{
"type" : "group",
"name" : "Script by Holako",
"text" : "Holako Setup",
"children":
[
{
"type" : "lineedit",
"name" : "vocation",
"text" : "Vocation:",
"description" : "Which vocation should be chosen?",
"value" : "Knight"
},
{
"type" : "spinbox",
"name" : "Level",
"description" : "Level to Leave the island.",
"text" : "Level to Leave:",
"value" : 15,
"min" : 15,
"max" : 15
},
{
"type" : "lineedit",
"name" : "TravelCity",
"description" : "City to Sail after level 8.",
"text" : "City:",
"value" : "venore"
},
{
"type" : "lineedit",
"name" : "lastchar",
"description" : "Last Char Name?.",
"text" : "Last Char :",
"value" : ""
},
{
"type" : "separator"
},
{
"type" : "checkbox",
"name" : "east",
"text" : "Hunt East Rotworms",
"value" : false
},
{
"type" : "checkbox",
"name" : "west",
"text" : "Hunt West Rotworms",
"value" : false
},
{
"type" : "checkbox",
"name" : "southeast",
"text" : "Hunt South East Rotworms",
"value" : false
}
]
}
-
It's because you are logging onto another character which means load settings for this particular char,
if there was no settings previously saved for that char in database, it will load default useroptions values.
Actually there's a way to avoid this, you could save last useroptions values f.e into global variables or into database and then load
them after logging onto another char, that's what i did in my Ulitmate Dawnport script.