→Example: Removed link cleaning for GetItemInfo, not needed anymore
m (Robot: Removing selflinks) |
(→Example: Removed link cleaning for GetItemInfo, not needed anymore) |
||
| Line 19: | Line 19: | ||
=== Code === | === Code === | ||
local mainHandLink = GetInventoryItemLink("player",GetInventorySlotInfo("MainHandSlot")) | local mainHandLink = GetInventoryItemLink("player",GetInventorySlotInfo("MainHandSlot")) | ||
local _, _, _, _, _, itemType = GetItemInfo(mainHandLink) | |||
local _, _, _, _, _, itemType = GetItemInfo( | |||
DEFAULT_CHAT_FRAME:AddMessage(itemType) | DEFAULT_CHAT_FRAME:AddMessage(itemType) | ||
| Line 27: | Line 26: | ||
Prints the subtype of the mainhand weapon - for example "Mace" or "Sword". | Prints the subtype of the mainhand weapon - for example "Mace" or "Sword". | ||
__NOTOC__ | __NOTOC__ | ||