• 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

Target a player based on an event?

dmeyer6743

New member
Basically I'm trying to find a command that would target a player based on something they said. For example if someone said "cure" it would target the player that said it, so i could then cast it on them; then resume the normal macro. I don't want it for if somsone sends you a tell, but for /say, group, raid, guild, ect...

Thanks for any help in the right direction.
 
First off: Im not playing but this is what I would try:

Rich (BB code):
#Chat group
#Chat raid

#Event GroupCure     "#*#tells the group, cure#*#"
#Event RaidCure     "#*#tells the group, cure#*#"

/declare deckerRocks       string outer ${Target.CleanName}

sub Event_GroupCure
  /target ${DeckerRocks} 
      /cast whatever

sub Event_RaidCure
  /target ${DeckerRocks} 
      /cast whatever

Hope it works otherwise let me know... And if it works or it gives you the idea what to do.. Remember that Im a Red Cent whore =)

- decker
 
Last edited:
You ask and you shall recieve!

This is how i did it with one of me PL macros ... The low level toon would send me a "/tell temperance".

Rich (BB code):
#Chat Chat

Sub Event_Chat(string ChatType,string Sender,string ChatText)
   /if (${ChatText.Equal[Temperance]}) {
      /delay 5
      /target ${Sender}
      /echo ${Time} Casting Temperance
      /call cast "Temperance"
  }
/return
 
decker brought up a good point in IRC ... this works for /say also.

http://www.macroquest2.com/wiki/index.php/Custom_Events said:
#chat Special event

The #chat command is a special custom event. It will always pass the channel, sender and text to the Sub Event_Chat subroutine. So your Sub Event_Chat should look something like this:

Rich (BB code):
Sub Event_Chat(ChatChannel,ChatSender,ChatText)
  /echo ${ChatSender} told me ${ChatText} in ${ChatChannel}
/return

Variable names can be anything you choose.
 
Thank you both for the help and getting me on the right track. I still can't seem to get the #chat function to work right, but I have come up something that is working mostly for me. The only thing that isn't working is when someone says "cure" in raid chat, but say/group work fine; which are the two im most concened with atm anyways.

Rich (BB code):
#event RGC           "#1# tells the group, 'cure#*#"
#event RGC           "#1# tells the raid, 'cure#*#"
#event RGC           "#1# says, 'cure#*#"

#Include spell_routines.inc

Sub Main
/echo testing cure mac
  :mainloop
  /doevents
  /goto :mainloop
/return

Sub Event_RGC(Line,NeedCure)
  /tar ${NeedCure}
/delay 1s
/call Cast "Remove Greater Curse" gem8
/delay 3s
/return
 
Target a player based on an event?

Users who are viewing this thread

Back
Top
Cart