Check Item Durability

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
MustHave
Posts: 28
Joined: Sat Jan 21, 2012 11:51 pm
Location: 742, Evergreen Terrace, Springfield

Check Item Durability

#1 Post by MustHave » Fri Jan 27, 2012 7:31 am

Hi there,

tried to search for it but couldn't find any topic which could help me out.
I'm searching for a possibility to check the durability a of equipped Item .

I only found getMainhandDurability(). Is there any similar like getItemDurability(10)
where 10 stands for the slot I want to check?

Kind regards and a thousand of apologizes if there are topics I wasn't able to find.
Beer: The cause of, and solution to, all of life's problems.
Thnx to all of those who are working their ass off for us dumb asses

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Check Item Durability

#2 Post by rock5 » Fri Jan 27, 2012 7:41 am

Sometimes it helps to look at the files themselves. If you look at "inventory:getMainHandDurability" which is in "inventory.lua" you will see that it just has one line

Code: Select all

return inventory:getDurability( 16 );		-- 16=Main Hand
So, yes you can use

Code: Select all

inventory:getDurability(10)
to get the durability of equiped slot 10.

Note: I think in game uses different equipment slot numbers than the bot, so make sure you test the slot number.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
MustHave
Posts: 28
Joined: Sat Jan 21, 2012 11:51 pm
Location: 742, Evergreen Terrace, Springfield

Re: Check Item Durability

#3 Post by MustHave » Fri Jan 27, 2012 7:56 am

Thank you very much rock5.
As always I didn't thought to do the easiest thing - check what I already have :lol:
Will think about your hint the next time.
Beer: The cause of, and solution to, all of life's problems.
Thnx to all of those who are working their ass off for us dumb asses

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests