Wowpedia
Advertisement
Wowpedia
240,448
pages
Shadowlands-Icon-Inline.png
Bc icon.gif
C_EquipmentSet.GetItemIDs
+ 7.2.0 / 2.5.1   Townlong-Yak Globe.png  Townlong-Yak BAD.png  ProfIcons engineering.png
GetEquipmentSetItemIDs
+ 3.1.0   - 7.2.0   Townlong-Yak Globe.png  Wowprogramming.png

Returns the item IDs of an equipment set.

itemIDs = C_EquipmentSet.GetItemIDs(equipmentSetID)

Arguments

equipmentSetID 
number

Returns

itemIDs 
number[] - 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


Advertisement