View Single Post
07-03-09, 01:39 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
If you find the spellID/itemID from wowhead for the soul shard item and then use GetItemInfo to get the information you will be able to get the icon file used for that item.

http://www.wowhead.com/?item=6265
http://www.wowwiki.com/API_GetItemInfo

This means that 6265 is the itemID so using the following command will grab the icon path for you to use as a texture file name.

itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount,
itemEquipLoc, itemTexture = GetItemInfo(itemID)

To make things easier because you may not need the other info you can just do this.

itemTexture = select(10,GetItemInfo(itemID))

This will select the 10th item in the return list from that function.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818