Quantcast
Get item armor/damage/speed info - WoWInterface
Thread Tools Display Modes
03-06-20, 11:41 AM   #1
MinguasBeef
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 33
Get item armor/damage/speed info

Note: This is on classic.

I know you can get an item's link/stats as follows
Code:
link = GetInventoryItemLink("player",1)
stats = GetItemStats(link)
for k, v in pairs(stats) do
   print(k .. "-" .. v)
end
How would I go about getting the item's armor? In this case, I was wearing Dreadmist Mask, so the armor would've been 71.

Similarly, how would I get a weapon's damage/speed from a link? Or is this just not possible? I'm currently only able to retrieve the damage per second stat via this method. I know a long time ago I tried to retrieve a weapon's speed back in beta but I wasn't sure if they've added a way since then.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Get item armor/damage/speed info

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off