Summon Alert

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

optix
orc pawn
orc pawn
Posts: 29
Joined: Sun Jan 27, 2008 12:37 pm

Summon Alert

Post by optix » Sun Jan 27, 2008 1:09 pm

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.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Jan 27, 2008 1:25 pm


optix
orc pawn
orc pawn
Posts: 29
Joined: Sun Jan 27, 2008 12:37 pm

Post by optix » Sun Jan 27, 2008 1:44 pm

Thanks a lot, I wasn't even thinking what to search for.. obviously that's the answer lol

optix
orc pawn
orc pawn
Posts: 29
Joined: Sun Jan 27, 2008 12:37 pm

Post by optix » Sun Jan 27, 2008 5:10 pm

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

optix
orc pawn
orc pawn
Posts: 29
Joined: Sun Jan 27, 2008 12:37 pm

Post by optix » Sun Jan 27, 2008 5:34 pm

Nevermind, I figured it out.