WoW API: GetEquipmentSetItemIDs
Jump to navigation
Jump to search
← WoW API < GetEquipmentSetItemIDs
Populates a table with item IDs of items in the specified equipment set.
itemArray = GetEquipmentSetItemIDs("name"[, returnTable]);
Arguments
- "name"
- String - equipment set name to retrieve information about.
- returnTable
- Table, optional - if specified, the array portion of the table is populated with item IDs. If not provided, a new table is creased
Returns
- itemArray
- Table - the array portion of this table contains item IDs of the items in the set.
Example
To print all items that are part of the first set:
local set = GetEquipmentSetInfo(1); local itemArray = GetEquipmentSetItemIDs(set); for i=1,#itemArray do print(i, (GetItemInfo(itemArray[i]))); end
|