Lore archive · Warcraft Wiki, 2023 dump
API C EquipmentSet.GetItemLocations
Last wiki revision 2023-01-28
Returns the location of all items in an equipment set. locations = C_EquipmentSet.GetItemLocations(equipmentSetID)
- equipmentSetID:
- locations: - indexed by InventorySlotId
The values for each slot [0..19] can be examined as follows:
- -1 : The item for this slot is unavailable.
- 0 : The slot should be emptied.
- 1 : This slot is ignored by the equipment set, no change will be made.
- Any other value can be examined by calling
This function does not differentiate between slots that cannot be equipped and slots that you have chosen to ignore in the equipment manager. For example, if you are testing to see if a particular item in your inventory has become unavailable (perhaps you sold it or scrapped it by mistake), you cannot simply scan looking for -1 values as the ammo slot will return a -1 as well as slots that you cannot equip at all (such as shields for hunters). Additional coding, likely by class and spec, are needed to make that differentiation.
Source
https://warcraft.wiki.gg/wiki/API_C_EquipmentSet.GetItemLocations · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.