Signup Now
Results 1 to 7 of 7
  1. #1
    Free User
    Join Date
    Mar 2014
    Posts
    50
    Reputation
    8
    Rep Power
    0

    need help with "SetLooting"

    So what I'm looking for is a persistent that changes the looting action for (e.g.) Energy Ring (Loot/Ignore) depending on my User Options.

    Here is my User Option:

    {
    "type" : "group",
    "name" : "Looting Settings",
    "column" : 1,
    "row" : 3,
    "children" :
    [
    {
    "type" : "checkbox",
    "name" : "rings",
    "text" : "Loot Energy Ring?",
    "value" :true
    }
    ]
    }


    And here's my current (not working) persistent.

    auto(300)
    if (getuseroption("rings")) then
    setsetting('LootList/Item/energy ring/action', 'Loot')
    else
    setsetting('LootList/Item/energy ring/action', 'Ignore')
    end


    The only thing I actually need help with is finding out what the directory/adress to changing the action is. Bare with me, I've only been using WindBot for 5 days
    Thanks in advance!
    Last edited by Nostalgica; 03-31-2014 at 01:36 PM.

  2. #2
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    auto(300)
    if getuseroption("rings") then
    setsetting('LootList/Item/energy ring/action', 'Loot')
    else
    setsetting('LootList/Item/energy ring/action', 'Ignore')
    end


    you don't need to add ( ) to open and close getuseroptions

    Regards

  3. #3
    Free User
    Join Date
    Mar 2014
    Posts
    50
    Reputation
    8
    Rep Power
    0
    I knew that, but thanks anyway
    Doesn't solve my problem though!

  4. #4
    Free User Jesusz0r's Avatar
    Join Date
    Dec 2013
    Location
    Spain
    Posts
    278
    Reputation
    70
    Rep Power
    21
    local lootRing = getuseroption('rings')


    auto(100)
    if lootRing then
    setsetting('Looting/LootList/energy ring/Action', 'Loot')
    else
    setsetting('Looting/LootList/energy ring/Action', 'Ignore')
    end
    Last edited by Jesusz0r; 03-31-2014 at 02:39 PM.

  5. #5
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    auto(100)
    if getuseroption("rings") then
    setsetting('Looting/LootList/energy ring/Action', 'Loot')
    else
    setsetting('Looting/LootList/energy ring/Action', 'Ignore')
    end


    tested it right now its working, just put this in Persistents

  6. #6
    Free User
    Join Date
    Mar 2014
    Posts
    50
    Reputation
    8
    Rep Power
    0
    Thanks Jesusz0r
    The font gave me
    error in Persistent script Looting Setup:
    [" local lootRing = [FONT=Courie..."]:Looting Setup:8: unexpected symbol near '['

    but other than that, it's working just fine!
    Close thread or w/e!

  7. #7
    Free User
    Join Date
    Mar 2014
    Posts
    50
    Reputation
    8
    Rep Power
    0
    Quote Originally Posted by Dworak View Post
    auto(100)
    if getuseroption("rings") then
    setsetting('Looting/LootList/energy ring/Action', 'Loot')
    else
    setsetting('Looting/LootList/energy ring/Action', 'Ignore')
    end


    tested it right now its working, just put this in Persistents
    Simple as that

 

 

Posting Permissions

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