Results 1 to 3 of 3

Thread: How to make it optional ?

  1. #1
    Normal User Matfly's Avatar
    Join Date
    May 2012
    Location
    Brazil
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    How to make it optional ?

    Hello, i am trying to make it optional to use soft boots. Here it is what i have tried on my script:

    PHP Code:
    if UseSoftBoots == true then
    setsettings
    ("Settings\\Refiller\\Rules\\SoftBoots\\Enabled""yes")
    wait(1000,2000)
    setsettings("Settings\\Refiller\\Rules\\DrakenBoots\\Enabled""yes")
    wait(1000,2000
    These actions are okay, and working:
    PHP Code:
    setsettings("Settings\\Refiller\\Rules\\SoftBoots\\Enabled""yes")
    wait(1000,2000)
    setsettings("Settings\\Refiller\\Rules\\DrakenBoots\\Enabled""yes")
    wait(1000,2000
    I know that, 'cause i have already tried them, without the optional thing.

    I have set on setup: UseSoftBoots = true.
    But it is not working, did i do something wrong ? What ?
    Help me ! :B
    Mat.

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Well I don't know if this will work, test it and tell me and if it doesn't will try another way, when a "option" its true, you don't need to put if soffboots == true, its enuogh typing if softbots. Well nvm try this
    PHP Code:
    if (UseSoftBots)
    then
    setsettings
    ("Settings\\Refiller\\Rules\\SoftBoots\\Enabled""yes"
    wait(1000,2000
    setsettings("Settings\\Refiller\\Rules\\DrakenBoots\\Enabled""yes"
    wait(1000,2000)  
    else if (
    UseSoftBoots == false)
    setsettings("Settings\\Refiller\\Rules\\SoftBoots\\Enabled""no"
    wait(1000,2000
    setsettings("Settings\\Refiller\\Rules\\DrakenBoots\\Enabled""yes"
    wait(1000,2000)  
    end 
    Anyways, while testing it go to Help->Debugger and copy whats there, if there's anything.

  3. #3
    Normal User Matfly's Avatar
    Join Date
    May 2012
    Location
    Brazil
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    It worked !
    Thanks dude !!
    Love ya
    Last edited by Matfly; 08-14-2012 at 03:26 PM.
    Mat.

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
  •