WoW:API GetItemGem: Difference between revisions

→‎Common usage: eat section duplicating function signature
(New page: {{wowapi}}__NOTOC__ Takes an item with a gem in it, and an index from 1-3, and returns the name and link for the gem at that index. itemName, itemLink = GetItemGem("name"|"itemlink", inde...)
 
(→‎Common usage: eat section duplicating function signature)
Line 42: Line 42:
: If you have never seen the item that belongs to the Item ID or Item Link it will return ''nil''.
: If you have never seen the item that belongs to the Item ID or Item Link it will return ''nil''.
: Using the name may be ambiguous if you have more than one of the named item.
: Using the name may be ambiguous if you have more than one of the named item.
== Common usage ==
local gemName, gemLink = GetItemGem(itemLink, index)