Results 1 to 5 of 5

Thread: Need help with an action..

  1. #1
    iBot User
    Join Date
    Sep 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Need help with an action..

    So this is an action I need for multiple items, basically if I hunt with my Paladin I want the bot to loor spears, royal spears etc. ALTHOUGH, I want it to STOP looting the spears when cap is less or equal to for example 50. So I need help with the action itself please because I have no idea how I would make it..

    Also I am sorry if this question has been answered before but I did try to search function on: "Ammo looter", "Spear looter", "Item capacity looter" and nothing worked and I am out of ideas -.-

  2. #2
    Banned
    Join Date
    Jun 2012
    Location
    Internet
    Posts
    845
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    113
    Rep Power
    0
    PHP Code:
    if cap 50 then
        setsettings
    ("Settings\\Looting\\List\\spear\\Id"3277)
    else
    setsettings("Settings\\Looting\\List\\spear\\Id"0)
    end 

  3. #3
    iBot User
    Join Date
    Sep 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Oh god thank you so much!
    +1!

    Edit; Oh now that I think of it, is it possible to do something like "Don't loot spears if more than 50" same thing for strong manas..?
    Thanks in advance! ^^
    Last edited by Missen; 10-23-2013 at 07:53 PM.

  4. #4
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Quote Originally Posted by Missen View Post
    Oh now that I think of it, is it possible to do something like "Don't loot spears if more than 50" same thing for strong manas..?
    Thanks in advance! ^^
    Code:
    if cap > 50 and itemcount("spear") < 50 then
          setsettings("Settings\\Looting\\List\\spear\\Id", 3277)
    else
          setsettings("Settings\\Looting\\List\\spear\\Id", 0)
    end
    if cap > 50 and itemcount("strong mana potion") < 50 then
          setsettings("Settings\\Looting\\List\\strong mana potion\\Id", 237)
    else
          setsettings("Settings\\Looting\\List\\strong mana potion\\Id", 0)
    end
    if you are equiping spears on your hand so it should be:
    Code:
    if cap > 50 and weaponamount < 50 then
          setsettings("Settings\\Looting\\List\\spear\\Id", 3277)
    else
          setsettings("Settings\\Looting\\List\\spear\\Id", 0)
    end
    Last edited by Dehan; 10-24-2013 at 03:31 AM.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  5. #5
    iBot User
    Join Date
    Sep 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Oh my god thanks to the both of you!

Posting Permissions

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