View Single Post
08-08-18, 06:45 AM   #3
myName
A Deviate Faerie Dragon
 
myName's Avatar
Join Date: Jul 2018
Posts: 10
Originally Posted by myrroddin View Post
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
  Reply With Quote