View Single Post
07/09/14, 07:56 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
I'm not sure about this function, but if you want to know how many items are in stack, you can use:
Lua Code:
  1. local icon, stackCount, sellPrice, meetsUsageRequirement, locked, equipType, itemStyle, quality = GetItemInfo(bagId, slotIndex)

EDIT:
Also what can be useful is inventory manager. You are working with bank so:
Lua Code:
  1. local item = PLAYER_INVETORY:GetBankItem(slotIndex)
It will give you a table with the following keys:
item.bagId
item.equipType
item.filterData
item.iconFile
item.inventory
item.isJunk
item.itemInstanceId
item.locked
item.meetsUsageRequirement
item.quality
item.searchData
item.sellPrice
item.slotIndex
item.slotType
item.stackCount
item.stackSellPrice
item.statValue

Last edited by Garkin : 07/09/14 at 08:27 PM.
  Reply With Quote