General MQ2Event Question
Reply
MQ2Event Question
Can anyone tell me if it is possible with this plugin to respond to tells. I would like to set something up to buff someone if they sent me a tell with the correct key words. ex. <playername> tells you, 'kei please' and then my character cast Kei on them. Any help would be great. Thanks in advance for any answer.
Fri Mar 09, 2012 10:58 am
i know you can with a mac


Macro
More +

#turbo

#Event Rez "#1# says out of character, '#*#rez#*#"
#Event Temp "#1# auctions, '#*#temp#*#"
#Event Temp "#1# says out of character, '#*#temp#*#"
#Event Temp "#1# shouts, '#*#temp#*#"
#event Virt "#1# auctions, '#*#virt#*#"
#event Virt "#1# says out of character, '#*#virt#*#"
#event Virt "#1# shouts, '#*#virt#*#"

Sub main

:Mainloop
/doevents
/delay 5
/goto :Mainloop
/return

Sub Event_Temp(Line,Sender)
/target ${Sender}
/cast TEMPSPELL
/return

Sub Event_Rez(Line,Sender)
/target ${Sender}
/cast REZSPELL
/return

Sub Event_Virt(Line,Sender)
/target ${Sender}
/cast VIRTSPELL
/return

/goto :Mainloop
/endmacro


Fri Mar 09, 2012 12:06 pm
Listen to This Guy
Thanks for the reply. I will try that out. Havent got to much into the macro scripts yet mostly just doing ingame hotkey macros to tell other toons what to do. Im a slow learner lol.
Fri Mar 09, 2012 12:40 pm
Cant seem to get that to work. I have replaced the spells with the ones i want to use and the key words. Have saved it to /mq2/Macros as a .mac file and loaded it in game but nothing happens. Is there something else that i need to turn on or set?

Thanks,
Dechez
Fri Mar 09, 2012 1:54 pm
Add in some /echo's to see if the events get triggered.

Add in delays after targeting so you wait for the /target to change targets. Change ${Sender} to =${Sender} so you don't do things like target someone's warder or familiar or someone with a similar name.

Make sure manually typing the "/cast REZSPELL" lines will work.
Fri Mar 09, 2012 5:34 pm
Senior Project Member
General MQ2Event Question
Reply