View Single Post
09-15-19, 01:10 PM   #3
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Originally Posted by bsmorgan View Post
Is there an API call in _classic_ that I don't know about that gives just the count in your bags?
I found one but it's ugly...

Code:
local bags = {0,1,2,3,4}
for _, container in pairs(bags) do
    for i = 1, GetContainerNumSlots(container), 1 do
        local item = GetContainerItemLink(container, i)
        if item then
            local _,count = GetContainerItemInfo(container, i)
    ...
  Reply With Quote