View Single Post
02/23/21, 02:52 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Originally Posted by mamol27 View Post
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).

Last edited by Baertram : 02/23/21 at 02:56 AM.
  Reply With Quote