C_EquipmentSet.GetItemIDs

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_EquipmentSet.GetItemIDs 11.1.5 (60428)4.4.2 (59734)1.15.7 (60191) + 7.2.0 / 2.5.1 / 1.14.0
GitHub Octocat.png  Townlong-Yak Globe.png  Wowprogramming.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