• 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 - Determining the A number of B item in C slot inside D bag?

foromoro

Well-known member
Sorry to come back to old and horrible macro code :( but I think this is more of a TLO thing than anything else. But I am trying to /echo back the specific number of an item in a specific slot in a specific bag.

By way of example, I want to determine how many Orb of Shadows are in the first slot (ItemSlot2 0) of my first bag (pack1 or ItemSlot 23). I can tinker enough with ${FindItem} and ${FindItemCount} but so far I have generally only been able to determine what slot an item is in, what item is in a slot, or how many total items I currently have. But not any kind of way to combine the TLOs and data types to determine how many of a specific item exist in a specific slot in my bag. Anyone got any insight?

I promise one day I'll actually get around to learning Lua. :(
 
As usual, I figured it out after asking. I was looking at the wrong TLOs. I was able to obtain my desired result with ${Me.Inventory[pack1].Item[1].Stack}
 
Question - Determining the A number of B item in C slot inside D bag?

Users who are viewing this thread

Back
Top
Cart