View Single Post
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