Get equipped item id
|
have a look at this function: ZO_Inventory_EnumerateEquipSlots or/and ZO_Character_EnumerateOrderedEquipSlots
|
Sorry, I'm new here. Where can I read specs about this function?
|
Iterating over the BAG_WORN and doing something like GetItemLinkItemId(GetItemLink(BAG_WORN, <index>)) would also probably be fine.
|
Quote:
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). |
Quote:
|
All times are GMT -6. The time now is 10:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI