m
Move page script moved page API GetInventoryItemLink to WoW:API GetInventoryItemLink without leaving a redirect
m (changed the links to link to the correct pages and not the redirected ones and fixed a String declaration.) |
m (Move page script moved page API GetInventoryItemLink to WoW:API GetInventoryItemLink without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 2: | Line 2: | ||
Get the [[itemLink]] for the specified item. | Get the [[itemLink]] for the specified item. | ||
"itemLink" = GetInventoryItemLink("unit", slotId) | |||
"itemLink" = GetInventoryItemLink("unit", slotId) | |||
== Arguments == | == Arguments == | ||
| Line 19: | Line 17: | ||
local mainHandLink = GetInventoryItemLink("player",GetInventorySlotInfo("MainHandSlot")) | local mainHandLink = GetInventoryItemLink("player",GetInventorySlotInfo("MainHandSlot")) | ||
local _, _, _, _, _, itemType = GetItemInfo(mainHandLink) | local _, _, _, _, _, _, itemType = GetItemInfo(mainHandLink) | ||
DEFAULT_CHAT_FRAME:AddMessage(itemType) | DEFAULT_CHAT_FRAME:AddMessage(itemType) | ||
<big>'''Result'''</big> | <big>'''Result'''</big> | ||
:Prints the subtype of the mainhand weapon - for example "Mace" or "Sword". | :Prints the subtype of the mainhand weapon - for example "Mace" or "Sword". | ||