Quantcast WoWInterface - View Single Post - GetItemStats not returning all stats
View Single Post
11-27-19, 04:27 PM   #1
stephano2013
A Kobold Labourer
Join Date: Nov 2019
Posts: 1
GetItemStats not returning all stats

Hi all,
I'm trying to get stats from items with this method, but it seems to behave differently based on how the item appears to the player (i.e. Dribbling Inkpod - 169319 for a warlock returns agility, for items with int/str it return intellect). Is there any way to get all stats (not just the valid-ish ones)?
I see it has to do with the item link (check the :::120:...):
Lua Code:
  1. -- 266 - demo warlock
  2. "|cffa335ee|Hitem:169319::::::::120:266::5:3:4799:1502:4786:::|h[Dribbling Inkpod]|h|r"
  3. -- 72 - fury warrior
  4. "|cffa335ee|Hitem:169319::::::::120:72::5:3:4799:1502:4786:::|h[Dribbling Inkpod]|h|r"

A way would be to cycle through a set of specs that eventually have all the stats, but I don't feel that's the best way. Anyone got a better idea?

Edit: it seems both these links, when parsed on a character, return the same thing, so that's a bust

Last edited by stephano2013 : 11-27-19 at 06:05 PM.
  Reply With Quote