Wikia

WoWWiki

API GetItemIcon

Talk4
98,585pages on
this wiki

Return the icon texture for the item.

itemIcon = GetItemIcon(itemID) 

Parameters

Arguments

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

Returns

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

Example

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

Result

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

Notes

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

Photos

Add a Photo
62,230photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki