Thread Tools Display Modes
07/20/17, 02:39 PM   #1
ivanwfr
Join Date: Apr 2014
Posts: 9
Getting slotId from slotNum in Quick Slot Bar

I am looking for a way to get the bag slotId from ZO_QuickslotRadialManager in order to access the right item.

When more than one level of the same Item is present in BAG_BACKPACK, this slotId would make the difference in the following code:

Code:
function get_slotId_itemLevel(slotId)
    local  data  = SHARED_INVENTORY.bagCache[BAG_BACKPACK][slotId]
    if(    data == nil) then return nil end
    return data.requiredLevel
end
From where I stand, I could not find a way to get this slotId from ZO_QuickslotRadialManager.

These are the functions I know of:
Code:
GetCurrentQuickslot()
GetItemName        (BAG_BACKPACK, slotId) (the BAG_BACKPACK index)  
GetSlotItemCount   ( slotIndex )           (the quick slot bar index)
GetSlotName        ( slotIndex )           (the quick slot bar index)
GetSlotTexture     ( slotIndex )           (the quick slot bar index)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Getting slotId from slotNum in Quick Slot Bar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off