can't get Event_Chat to work... please help

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

skang01
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sat Nov 29, 2003 8:03 pm

can't get Event_Chat to work... please help

Post by skang01 » Wed Dec 10, 2003 6:49 pm

Hi, new to MQ and I'm trying to get my bot to recognize tells (I'm writing a macro so I can control my SK alt when I'm kiting with my Wiz main).

For some reason, I can never seem to trigger the Event_Chat on incoming tells. I stripped the bot to basically these bare-bones commands and it still doesn't work:
--------

#turbo
#chat tell

Sub Main
/doevents flush
:MainLoop
/doevents
/delay 0
/goto :MainLoop
/return

Sub Event_Chat
/echo telldetected
/return

-------

I've gotten other Events to work, it's just the chat one that doesn't respond for some reason. I've also tried both /plugin mq2chat and /plugin mq2chat unload and neither way seems to work.

Thanks for your help!

Drunkensloth
a lesser mummy
a lesser mummy
Posts: 67
Joined: Sat Oct 18, 2003 2:54 am

Post by Drunkensloth » Wed Dec 10, 2003 8:40 pm

i think i found it~

Code: Select all

#turbo 
[b]#chat tell [/b]

Sub Main 
/doevents flush 
:MainLoop 
/doevents 
/delay 0 
/goto :MainLoop 
/return 

[b]Sub Event_Chat [/b]
/echo telldetected 
/return 


make the case match... that might be it... because almost the same exact code works on my mq2 (compiled 2 nights ago with lastest source)[/b]
And here I was clicking like a sucker!

skang01
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sat Nov 29, 2003 8:03 pm

Post by skang01 » Wed Dec 10, 2003 11:30 pm

Hey drunkensloth,

Thanks for replying but I'm not sure I know what you mean. Do you mean make the case match as in upper and lower case? I tried writing everything in lower case and still doesn't work.

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

re

Post by Shali » Thu Dec 11, 2003 4:29 pm

you may want to test this cause im not sure its right but here goes...

nm
what i entered here earlier was incorrect

*edited*

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Thu Dec 11, 2003 8:14 pm

Only way I was able to get a response was to use variables after the event chat

Code: Select all

Sub Event_Chat[color=red](ChatType,Sender,ChatText)[/color] 
   /echo Tell Detected
  /return
} 
Leaving out the variables it never seemed to respond.

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

re

Post by Shali » Thu Dec 11, 2003 9:38 pm

thats cause you never tell it do do anything, just realized that you never tell it to respond or anything, you just tell it to send "telldetected" to your MQ chat screen, try this, replacing it with what you want

Code: Select all

Sub Event_Chat 
   /echo Tell Detected 
  [color=red] /reply "we demand another shrubbery"[/color]
  /return 
}