Page 1 of 1

Summon Alert

Posted: Sun Jan 27, 2008 1:09 pm
by optix
http://www.macroquest2.com/wiki/index.php/If

I am trying to figure out the /if command to give me an alert if I get summoned. I am trying to make it so if there is something in chat box that says 'You have been summoned!' then it will auto play an alert for me, here's what I have so far...

Code: Select all

     /if (${ChatText.Find[You have been summoned]}) {
/alert
:goto start
}
The answer might be solved by adding..

Code: Select all

Sub Event_Chat(string ChatType,string ChatSender,string ChatText) 
If anyone has any answers to this problem, I would appreciate it.

Posted: Sun Jan 27, 2008 1:25 pm
by ieatacid

Posted: Sun Jan 27, 2008 1:44 pm
by optix
Thanks a lot, I wasn't even thinking what to search for.. obviously that's the answer lol

Posted: Sun Jan 27, 2008 5:10 pm
by optix

Code: Select all

#event Summoned           "You have been summoned!"
Sub Main
  :mainloop
  /doevents
  /goto :mainloop
/return

Sub Event_Summoned
  /echo You have been summoned, trigger activated
/alert
Doesn't work..

Posted: Sun Jan 27, 2008 5:34 pm
by optix
Nevermind, I figured it out.