View Single Post
Unread 12-05-12, 11:33 AM   #5
pedenspeed
Zombie
Join Date: Dec 2012
Posts: 3
Quote:
Originally Posted by Baanano View Post
What are just using as value for the item variable?

Just tried this and it works for me:

Code:
local item = Utility.Item.Slot.Equipment("helmet")
local itemDetail = Inspect.Item.Detail(item)
local itemStrength = itemDetail and itemDetail.stats and itemDetail.stats.strength or 0
Well this seems to work. It seems that the utility that I am using is not what I want to use. Let me start over by explaining what it is I am trying to do. I want to make an addon, that will allow me to compare items using a value based off of the theory crafting weights assigned to each stat per class. So that when I mouse over the item I looted, or the loot window that is up, I can see a single value instead of trying to figure out if its better to have more strength or more attack power. So with that being said, I can't use Utility.Item.Slot.Equipment since its not a single item, and if I use Inspect.Item.Detail(item) that doesn't seem to return a value, or it gives me an error. Any ideas on this? Your help so far has been much appreciated.
pedenspeed is offline   Reply With Quote