Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Dec 2015
    Posts
    48
    Reputation
    10
    Rep Power
    0

    Angry 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
            
    }
        ] 

    Last edited by ahmedwaked; 11-13-2016 at 11:33 AM.

  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    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.

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •