Well the bags are slot 61 to 240. There is nowhere stored which bags are available but the slots themself are marked available. Usually I would do it like this (assuming your not looking for empty slots)
for slot = 61, 240 do
if (not inventory.BagSlot[slot].Empty) and inventory.BagSlot[slot].Available then
item = inventory.BagSlot[slot]
printf("%s. %s\n", slot, item.Name);
end;
end;
local item
for slot = 61, 240 do
item = inventory.BagSlot[slot]
if (not item.Empty) and item.Available then
printf("%s. %s\n", slot, item.Name);
end;
end;
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.