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.
Check Item Durability
Check Item Durability
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
Thnx to all of those who are working their ass off for us dumb asses
Re: Check Item Durability
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
So, yes you can use
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.
Code: Select all
return inventory:getDurability( 16 ); -- 16=Main Hand
Code: Select all
inventory:getDurability(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
Re: Check Item Durability
Thank you very much rock5.
As always I didn't thought to do the easiest thing - check what I already have
Will think about your hint the next time.
As always I didn't thought to do the easiest thing - check what I already have
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
Thnx to all of those who are working their ass off for us dumb asses
Who is online
Users browsing this forum: Ahrefs [Bot] and 13 guests