C_EquipmentSet.GetItemIDs

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_EquipmentSet.GetItemIDs TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 7.2.0 / 1.15.0
Wowprogramming.png  BTNTemp.png GetEquipmentSetItemIDs + 3.1.0

Returns the item IDs of an equipment set.

itemIDs = C_EquipmentSet.GetItemIDs(equipmentSetID)

Arguments

equipmentSetID
number - Appears to return valid info for indices [0, 2, 4, ...]

Returns

itemIDs
table - a table of numbers indexed by InventorySlotId

Example

To print all items that are part of the first set:

local items = C_EquipmentSet.GetItemIDs(0)
for i = 1, 19 do
	if items[i] then
		print(i, (GetItemInfo(items[i])))
	end
end