Originally Posted by myrroddin
Not all your bags have 32 slots in them. Your main backpack certainly doesn't. You should get the bag size first.
|
Code:
if event == "ITEM_PUSH" then
-- Search my bags for item
for bag=0,4 do
for slot=1, GetContainerNumSlots(bag) do
local bagItemID=GetContainerItemID(bag,slot)
for i = 1, #FaithfulDeleteList, 1 do
if bagItemID then
if bagItemID == FaithfulDeleteList[i] then
print("is this thing on?")
end
end
end
end
end
end
So i figured using GetContainerNumSlots would address the issue you brought up, but it doesn't seem any different. /bangsheadondesk