Originally Posted by bsmorgan
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)
...