• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Question - How do I get argument from command chat? (1 Viewer)

Markota

New member
Joined
Oct 27, 2020
RedCents
10¢
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