WoW API: GetEquipmentSetItemIDs

From AddOn Studio
Revision as of 20:25, 20 May 2009 by WoWWiki>Starlightblunder (Created page with '{{wowapi}} Populates a table with item IDs of items in the specified equipment set. itemArray = GetEquipmentSetItemIDs("name"[, returnTable]); ==Parameters== ===Arguments=== ;"...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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