Signup Now
Results 1 to 6 of 6

Thread: Getting Value

  1. #1
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0

    Getting Value

    Hello. Since we can use setsettings, I'm going to make advanced scripts.

    So well, my question is about User Options in 'lineedit' type.
    I want to make a persistent hotkey that will set value from user options as min/max supplies.

    f.e. if I set min mana as 20 and max as 200 (you write both in user options) then it will automaticaly change it in supplies.

  2. #2
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    setsetting('Supplies/Items/mana potion/UpTo', tonumber(getuseroption("maxmp")))


    You are talking about that ?

  3. #3
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Dworak View Post
    setsetting('Supplies/Items/mana potion/UpTo', tonumber(getuseroption("maxmp")))


    You are talking about that ?
    Yeah about that, gonna check it ;p


    @Edit, well, it works, but only on first supplies list. 2nd is not changed
    Last edited by K4r4biN; 12-18-2013 at 06:44 PM.

  4. #4
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    add Hotkey

    auto(100)
    setsetting('Supplies/Items/mana potion/UpTo', tonumber(getuseroption("maxmp")))
    setsetting('Supplies/Items/mana potion/LeaveAt', tonumber(getuseroption("minmp")))


    and it will change perfectly

  5. #5
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Dworak View Post
    add Hotkey

    auto(100)
    setsetting('Supplies/Items/mana potion/UpTo', tonumber(getuseroption("maxmp")))
    setsetting('Supplies/Items/mana potion/LeaveAt', tonumber(getuseroption("minmp")))


    and it will change perfectly
    Ohh yea, now I got how it works. It will change it on supplies currently in use ;] THanks ;]

  6. #6
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    No problem, i am glad that i helped :P

 

 

Posting Permissions

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