Back to Home

ESO Lua File v100023

ingame/globals/commoninventoryfunctions.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function ZO_GetNextBagSlotIndex(bagId, slotIndex)
    if bagId == BAG_GUILDBANK then
        return GetNextGuildBankSlotId(slotIndex)
    elseif bagId == BAG_VIRTUAL then
        return GetNextVirtualBagSlotId(slotIndex)
    else
        if slotIndex == nil then
            return 0
        end
        local bagSlots = GetBagSize(bagId)
        if slotIndex < (bagSlots - 1) then
            return slotIndex + 1
        else
            return nil
        end
    end
end