WoW API: GetItemIcon

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetItemIcon to API GetItemIcon without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetItemIcon

Return the icon texture for the item.

itemIcon = GetItemIcon(itemID) 

ParametersEdit

ArgumentsEdit

(itemID)
itemID
Integer - The numeric ID of the item. ie. 12345

ReturnsEdit

"itemIcon"
itemIcon
String - The name and path of the icon texture of the item.

ExampleEdit

itemIcon = GetItemIcon(6948)
print("itemIcon :", itemIcon)

ResultEdit

prints Hearthstone icon - "Interface\\Icons\\INV_Misc_Rune_01".

NotesEdit

  • As of patch 4.0.1, this function requires an itemID, it will not work with item names or links.