WoWInterface (
-   Lua/XML Help (
-   -   Get item armor/damage/speed info (

MinguasBeef 03-06-20 11:41 AM

Get item armor/damage/speed info
Note: This is on classic.

I know you can get an item's link/stats as follows

link = GetInventoryItemLink("player",1)
stats = GetItemStats(link)
for k, v in pairs(stats) do
  print(k .. "-" .. v)

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.

All times are GMT -6. The time now is 11:09 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI