View Single Post
04/16/14, 04:46 AM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
I'm not really sure what GetMaxBags() does, but it will probably return number of bags, not numbers of slots in bag. I think you can use (I didn't test it in game):
lua Code:
  1. local _, numSlots = GetBagInfo(BAG_BACKPACK)
or
lua Code:
  1. local numSlots = ZO_InventoryManager:GetNumSlots(INVENTORY_BACKPACK)
or
lua Code:
  1. local numSlots =  PLAYER_INVENTORY.inventories[INVENTORY_BACKPACK].numSlots

Last edited by Garkin : 04/16/14 at 06:09 AM.
  Reply With Quote