m
Move page script moved page API GetItemStats to WoW:API GetItemStats without leaving a redirect
(Creating the page.) |
m (Move page script moved page API GetItemStats to WoW:API GetItemStats without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 16: | Line 16: | ||
== Example == | == Example == | ||
The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua | The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua. For example, an item that has 10 Stamina and no other stats would return <code>{ "ITEM_MOD_STAMINA_SHORT" = 10 }</code>. | ||
stats = GetItemStats(GetInventoryItemLink("player", 16)) | stats = GetItemStats(GetInventoryItemLink("player", 16)) | ||
| Line 26: | Line 26: | ||
Your main hand item has 10 Stamina. | Your main hand item has 10 Stamina. | ||
The stat table contains the stats for the "base" version of an item, without any enchantments or gems. | The stat table contains the stats for the "base" version of an item, without any enchantments or gems. There is no way to get the stats for the gemmed and enchanted version of an item. | ||
== Details == | == Details == | ||