Wikia

WoWWiki

Watchlist Recent changes

API GetItemIcon

Main Menue



Return the icon texture for the item.

itemIcon = GetItemIcon(itemID) 

Parameters Edit

Arguments Edit

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

Returns Edit

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

Example Edit

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

ResultEdit

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

Notes Edit

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

Pages on WoWWiki

94,193pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki