Originally Posted by mamol27
Sorry, I'm new here. Where can I read specs about this function?
|
Search for it in the esoui source code and check how ZOs uses i does the trick most of the time:
https://github.com/esoui/esoui/searc...eredEquipSlots
The eso inventories are using a bagId for the inventory bagTyp like BAG_BAGPACK, BAG_BANK, BAG_WORN (these are constants just providing a name to a number. BAG_WORN = 0 e.g.).
The function ZO_Character_EnumerateOrderedEquipSlots should do the same like Ryhono said. Iterates over the equipmentslots
(where equipmentslot's slotId is one of the following ones:
https://github.com/esoui/esoui/blob/...ntory.lua#L791
)
.
The itemLink functions use the bagId and the equipSlotId then to create the itemLink for the equipped item.
GetItemLinkItemId provides the itemId from the itemLink created than.
In normal inventory this would be GetItemLink(BAG_BAGPACK, slotIndexOfTheInventoryItem).