• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - free inventory

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