Do you mean if you have that many rented? The non-rented slots 'Available' value equals 'false' so you could count the 'Available' values or just check the first slot of each bag. eg,
local slots = 60 -- first 2 bags be don't need to check
for i = 121, 211, 30 do -- check the first slot of each bag
if inventory.BagSlot[i].Available then
slots = slots + 30
end
end
if slots > 140 then
player:merchant("NPC_name")
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.