• 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

Before starting my first macro...

laugil

New member
I am playing 4 boxes with real eq macros.
I took a look at the slipgear macro and would like to take the idea of events to make react my characters.

I am playing SK, Cleric, Druid, Echanter.

I'm playing the SK by myself and want to say things in the group channel to make other character to cast the good spell, ...

But how can I say to the macro to read the group channel ?

#event HEALTANK "#*#HEAL TANK#*#"

Or this command listen all the channel ?

Thanks
 
if you look at those macros.. you can .. have the cleric heal the tank at certain % HP .. which would prob be better than waiting for a tell .... there is auto slowing by enc... and auto mez for adds...
 
doing that by myself i can learn.. using something else is easier but will not help me to learn.

But i ll take a look at that and see if i cant understand...
 
Very simple example of how to catch group chatter..
#1# is simply a wildcard which will be returned in the Event subroutine as Param1 (or in the case of the example Toon).
I'm just doing a simple /echo in the subroutine, but you could do just about anything allowed within the macro.
Rich (BB code):
#Event GroupMsg "#1# tells the group, '#2#'"
Sub Event_GroupMsg(string Line, string Toon, string Msg)
    /echo ${Toon} said '${Msg}' in the group.
/return
 
If I remember correctly the first arg passed to any sub is the entire line. Then any args after it are the ones you declare with #1#, #2#, etc. So if you use passed args to a sub, it automatically has to have something for the line first before any user args.
 
That...confused me.

Yes, the first param is the entire line.

So, lets say you wanted an event that triggered when something hits you that would echo what hit you and how much it for you for. Lets say Bob hits you for 20 points.

Rich (BB code):
#event example "#1# hits you for #2# points"

Sub event_example(string line, string Mob, int damage)
/echo ${Mob}
/echo ${damage}
/echo ${line}
/return

That would output

Rich (BB code):
Bob
20
Bob hits you for 20 points
 
Before starting my first macro...

Users who are viewing this thread

Back
Top
Cart