• 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 - free inventory

Joined
Feb 6, 2007
RedCents
1,683¢
Looking for a macro snippet to count the number of empty slots in a particular container vs Me.FreeInventory. I want to count how empty slots in Extraplanar Trade Satchel vs all my other containers. The purpose is so my macro will switch looters if the Master Looter runs out of empty slots excluding the trade satchel. Any help would be greatly appreciated as I am currently too busy (lazy) to try and figure it out myself.
 
${InvSlot[Pack1].Item.Container} will return how many slots, if this is a Container. ${InvSlot[Pack1].Item.Items} returns how many slots in the bag are used. just do the math to figure out how many slots are free/open.
 
${InvSlot[Pack1].Item.Items} this looks like the part I could not find. Can I assume that Pack2, Pack3... Pack10 will check the remaining top level slots for containers?


edit:
nevermind the question... looked it up in wiki and found the answer is yes.

Again thank you ctaylor22
 
In case anyone else is interested here is the code snippet I plan to try tomorrow:

Rich (BB code):
	/varset freespace 0
	/for tc 1 to 10
	/if (${InvSlot[Pack${tc}].Item.Container} && ${InvSlot[Pack${tc}].Item.Name.NotEqual[Extraplanar Trade Satchel]}) {
		/varcal freespace ${freespace}+(${InvSlot[Pack${tc}].Item.Container}-${InvSlot[Pack${tc}].Item.Items})
	}
	/next tc
	/if (${freespace}<3) /do some stuff to switch master looter
 
Question - free inventory

Users who are viewing this thread

Back
Top
Cart