To print all items that are part of the first set: local set = GetEquipmentSetInfo(1); local itemArray = GetEquipmentSetItemIDs(set); for i=1, 19 do if itemArray[i] then print(i, (GetItemInfo(itemArray[i]))); end end NOTE: If the set is a partial set the method 'for i=1, #itemArray do' will not work, as 'i' can possibly be the wrong ids. where #itemArray returns 2, items 1, 2 may be nil and items 15, 17 may be the correct array indicies
| Attributes | Values |
|---|
| rdfs:label
| - API GetEquipmentSetItemIDs
|
| rdfs:comment
| - To print all items that are part of the first set: local set = GetEquipmentSetInfo(1); local itemArray = GetEquipmentSetItemIDs(set); for i=1, 19 do if itemArray[i] then print(i, (GetItemInfo(itemArray[i]))); end end NOTE: If the set is a partial set the method 'for i=1, #itemArray do' will not work, as 'i' can possibly be the wrong ids. where #itemArray returns 2, items 1, 2 may be nil and items 15, 17 may be the correct array indicies
|
| dbkwik:wowwiki/pro...iPageUsesTemplate
| |
| abstract
| - To print all items that are part of the first set: local set = GetEquipmentSetInfo(1); local itemArray = GetEquipmentSetItemIDs(set); for i=1, 19 do if itemArray[i] then print(i, (GetItemInfo(itemArray[i]))); end end NOTE: If the set is a partial set the method 'for i=1, #itemArray do' will not work, as 'i' can possibly be the wrong ids. where #itemArray returns 2, items 1, 2 may be nil and items 15, 17 may be the correct array indicies
|