• 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 --->

Target a player based on an event? (1 Viewer)

dmeyer6743

New member
Joined
Sep 22, 2006
RedCents
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