• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Distinguish between a slot that doesn't exist vs a slot with no item

Joined
Sep 27, 2020
RedCents
6,554¢
Using mq.TLO.Me.Inventory(pack).ID() on a top-level inventory spot where pack can be a value from 23 to 34. Return is nil for both a slot that doesn't exist (i.e., 33-34 where the merchant perk is not activated) and the slot exists, but is empty. Thoughts on the best way to differentiate the two?
 
I believe the slot always exists. However, if you have access to the slot is the real question. So you'd want a way to check if you have access to the slot as opposed to checking if the slot exists.
 
Cool. I don't see anything in the documentation for the item datatype to check if I have access. How do I check for access to a top-level inventory spot?

EDIT: Just found the Me.NumBagSlots. That will work.
 
Question - Distinguish between a slot that doesn't exist vs a slot with no item

Users who are viewing this thread

Back
Top
Cart