Lore archive · Warcraft Wiki, 2023 dump
API GetSocketItemInfo
Last wiki revision 2022-07-22
Returns info for the item currently being socketed. itemName, iconPathName, itemQuality = GetSocketItemInfo
- itemName: - Localized name of the item currently being socketed, or nil if the socketing UI is not open.
- iconPathName: - Virtual path name (i.e. Interface\Icons\inv_belt_52) for the icon displayed in the character window (PaperDollFrame) for this item, or nil if the socketing UI is not open.
- itemQuality: - 0) Socketing UI not currently open, 1) Common [white], 2) Uncommon [green], 3) Rare [blue], 4) Epic [purple], etc. (the colors correlate to the color of the font used by the game when it draws the item's name.
-- from Blizzard_ItemSocketingUI.lua local name, icon, quality = GetSocketItemInfo; local sname, sicon, squality = tostring(name), tostring(icon), tostring(quality)
print("name:" .. sname .. " icon:" .. sicon .. " quality:" .. squality)
- Simple print statement displaying the values returned. In this example, I used Merlin's Robe (item id:47604):
name:Merlin's Robe icon:Interface\Icons\INV_Chest_Cloth_64 quality:4
Source
https://warcraft.wiki.gg/wiki/API_GetSocketItemInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.