The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua, and the value of that constant is the localized name for the stat. For example, an item that has 10 Stamina and no other stats would return { "ITEM_MOD_STAMINA_SHORT" = 10 }. stats = GetItemStats(GetInventoryItemLink("player", 16)) DEFAULT_CHAT_FRAME:AddMessage("Your main hand item has " .. tostring(stats["ITEM_MOD_STAMINA_SHORT"] or 0) .. " " .. ITEM_MOD_STAMINA_SHORT .. ".") would return something like Your main hand item has 10 Stamina.
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
dbkwik:wowwiki/pro...iPageUsesTemplate | |
abstract |
|