• 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 - How do I get argument from command chat?

Markota

New member
Objective: Say a word to an NPC of known name (NPC_NAME) without targeting them first or pre-programming the word (<word>).

Expected format: CMD <word>

---

I am thinking I could create a macro named CMD and use it by typing /CMD Pizza

And behind the scenes the macro would /target NPC_NAME; followed by /say Pizza

Or if we make this a tell it might simply be /tell NPC_NAME PIZZA

But if choice is necessary for some reason I need the say format.

----

Can it be done??
 
I could not figure out where to start looking for an answer. I am missing some top level object to review maybe -- a hint or even a key line of the code to begin with would be much appreciated. More help if you are willing -- I am happy to fish, but sometimes someone handing you the rod, reel, and bait after casting it in a trout pond is great too! ; )
 
Got it -- thanks.

#define Version "0.1"
#define /banner "/echo \ar[SayTo\ar]\ay"
Sub Main
/declare wordtopass string outer ""
/declare targetofword string outer ""
/if (${Defined[Param0]}) {
/varset wordtopass ${Param0}
/if (${Defined[Param1]}) {
/varset targetofword ${Param1}
}
} else {
/banner Your command must look like:
/banner /mac sayto.mac <"Word Here"> <Target Here>
/banner More than one word requires quotes. Single Target only.
}
/if (${Defined[Param2]}) {
/banner Your command must look like:
/banner /mac sayto.mac <"Word Here"> [<Target Here>][1]
/banner More than one word requires quotes. Only a single Target is allowed.
/endmacro
}
/tell ${Param1} ${Param0}
/return
 
Last edited:
Question - How do I get argument from command chat?

Users who are viewing this thread

Back
Top
Cart