Results 1 to 4 of 4

Thread: How to set limit on looted items?

  1. #1
    Normal User
    Join Date
    Jun 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Question How to set limit on looted items?

    Hello Everyone. Is there any command for "Looting" which will set a limit on looted items? For example, I wanted to loot food (exactly this one -> You see ham. It weighs 20.00 oz.) and I want to get only 5 of it to my backpack. How to set a limit on that, cuz' I don't want situation when my character will be filled only by a food (hams), and it wont have cap for other items, like gps for example...
    Thanks for any help!
    Hepperr

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Lua Code:
     
    if itemcount("ham") <= 5 and cap >= 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "backpack name here")
    elseif itemcount("ham") > 5 or cap < 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "ground")
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    Normal User
    Join Date
    May 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Quote Originally Posted by blakw View Post
    Lua Code:
     
    if itemcount("ham") <= 5 and cap >= 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "backpack name here")
    elseif itemcount("ham") > 5 or cap < 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "ground")
    end
    Guys help me!
    I've put the script into "Action" area and something is wrong.
    http://postimg.org/image/bnqra07y3/
    http://postimg.org/image/en0a0jpu5/

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Wow.

    Add it from inside the bot.

    You've opened the xml file here and you can't just type symbols like < > from there.

    In the bot, expand Settings > Action > List then click Edit > Add

    Quote Originally Posted by blakw View Post
    Lua Code:
     
    if itemcount("ham") <= 5 and cap >= 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "backpack name here")
    elseif itemcount("ham") > 5 or cap < 20
    then
        setsettings("Settings\\Looting\\List\\Ham\\Destination", "ground")
    end
    Personally, I would use 99 instead of "ground" because i dont like giving other pople my loot :P even if it is just meat.

Posting Permissions

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