Event_Chat Question

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Event_Chat Question

Post by Amadeus » Thu Jul 04, 2002 3:30 am

In the documention for Event_Chat it indicates that it can be used to monitor the custom channels such as taxi (showing here in bold):

Code: Select all

Sub Event_Chat: Event callback for messages 
    $p0 - Channel of message 
            chat channels will callback with the name of the channel 
            (ie. /join port ... callback will have $p0==port)
However, at the bottom of the documentation it states that you must declare the channel using #chat -- but, it seems to be much more limited in scope:

Code: Select all

    You must declare what channels you will parse in your macro via #chat 
    channel can be: say, ooc, shout, tell, guild, group, auc, chat 
Therefore, my question is this: If I want to monitor the taxi channel, it's ok for me to use #chat taxi ?

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Thu Jul 04, 2002 4:50 am

"#chat chat" triggers Event_Chat for all /chat channels.
There isn't a way currently to only have Event_Chat for specific /chat channels

You can

Code: Select all

#chat chat
...
Sub Event_Chat
   /if "$p0"=="taxi" /call Taxi_Handler $p1 $p2
/return

Sub Taxi_Handler
  | $p0 is the sender
  | $p1 is the message
  ...
/return
- Plazmic

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

Event_chat and macro control

Post by FlashG » Tue Jul 16, 2002 12:35 pm

I was looking into ways to control a macro 'on the fly' and had 2 questions. Does event_chat bog down a macro if it's constantly firing? So if I joined /market and /selfcontrol would event_chat be firing for /market 'too' much to quickly respond to a command given via /selfcontrol? Once a macro is running is there any 'official' way to control its behavior (NOT including the iniatial $arg1, $arg2 start up parameters) that is fast and undetectable?

The other question that borders on paranoid. Does the (or will a) GM have the ability to log into a password protected /chat, or can the GM see what ever is passes though the server to a client? Does command like /who npc pass to the server or kept strictly client side?

Thanks.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Wed Jul 17, 2002 4:16 am

no clue on the chat, probably not logged, not sure about GMs though
MQ commands are 100% local...

remote control would 'officially' be through chat events...
better console control is coming...
- Plazmic