Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_EquipmentSet.GetItemIDs

From Wowpedia
Jump to: navigation, search

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

Patch changes

See also