#chat help

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

Moderator: MacroQuest Developers

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

#chat help

Post by boredom » Mon Jun 30, 2003 1:59 pm

Looking for some info on #chat. I was wondering if it's able to trap multiple channels, like #chat tell,group or something, then dealing with what channel it is in my Sub Event_Chat.

Bored

Jalapeno
orc pawn
orc pawn
Posts: 15
Joined: Sat Jun 28, 2003 9:29 pm
Location: Charleston, SC

Post by Jalapeno » Mon Jun 30, 2003 6:59 pm

Code: Select all

#chat channel
Declares where Event_Chat channels you want to handle can be: say, ooc, shout, tell, group, auc,chat
ex: #chat ooc
ex: #chat tell


______________

rtfm

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Mon Jun 30, 2003 7:17 pm

Jalapeno, try reading his question before posting drivel like that?
He is asking if it's possible to define more than 1 channel to catch.

RTFQ ;)

Jalapeno
orc pawn
orc pawn
Posts: 15
Joined: Sat Jun 28, 2003 9:29 pm
Location: Charleston, SC

Post by Jalapeno » Tue Jul 01, 2003 3:00 am

I see he was asking something different then I initially thought. Though I did take the time to try and answer what I thought he was asking.. Couldn't you do the same? And the point still remains! The information that he was looking for is stated in the manual.

Code: Select all

Sub Event_Chat: Event callback for messages
$p0 - Channel of message (ooc etc., chat channels will callback with the name of the channel)
  (ie. /join port ... callback will have $p0==port)
$p1 - Name of the person who sent the message
$p2 - Text they sent
$p0 Channel of message....


Please don't post just to flame.

User avatar
BlueSkies
a ghoul
a ghoul
Posts: 132
Joined: Tue Oct 01, 2002 6:22 pm

Post by BlueSkies » Tue Jul 01, 2003 3:00 am

Kagonis, you weren't paying very much attention...
Sub Event_Chat: Event callback for messages
$p0 - Channel of message (ooc etc., chat channels will callback with the name of the channel)
(ie. /join port ... callback will have $p0==port)
$p1 - Name of the person who sent the message
$p2 - Text they sent
According to the above, all you need to do is run an /if statement for $p0 and you can decide how to act based on the result.

Jala answered half the question -- how to catch multiple chat channels. My quote FROM THE MANUAL (rtfm, please) answers the other half.

More and more, I see people on these forums asking for help with some function that is VERY CLEARLY defined in the manual. I'm starting to understand why the rtfm nazies of ShowEQ got that way. *sigh*
Live your dreams! Blue Skies everyone

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Tue Jul 01, 2003 9:13 am

Ah yes, I apologize.

I pride myself in being decent in understanding a manual, and I understand that some others might not have as easy an understanding of a manual.
But when something that is -not- obvious is asked for, and basically all they are told is to RTFM, then frankly I fail to see the purpose of this help forum.

I did not know that the same chat event handler could catch several different chats. Now I know, thanks to BlueSkies.

And RTFM works really well when the manual is updated along with the program.


As a subnote; there is a saying: There are no such thing as dumb questions, only dumb answers.


Thanks for a great program :)

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

#chat twice

Post by boredom » Tue Jul 01, 2003 11:01 am

I'm sorry, I did not think of using #chat twice in the same script. Though I don't see where this is suggested in the documentation, I do read it, probably more than I should, and found no examples of it using the search feature on the boad.

Thanks for the help

Bored

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Tue Jul 01, 2003 1:07 pm

there ARE in fact dumb questions. one just need goto the seq.sf.net forums and scroll through the first 3 or 4 pages looking at all the duplicate threads for the same issue that is discussed in a thread only 1 or 2 up/down from the one that was created.

that being said, i don't think this was one of them :)

i still don't see why you can't do a #chat tell, ooc, gu because the docs do not imply it. there should probably be an "or" between the last and second to last option to fix this :)

Jalapeno
orc pawn
orc pawn
Posts: 15
Joined: Sat Jun 28, 2003 9:29 pm
Location: Charleston, SC

Post by Jalapeno » Tue Jul 01, 2003 6:01 pm

Im sorry to keep this going I just don't like people trying to TELL me something when they don't even know what they are talking about.

Code: Select all

Appendix A: Macro Example

|** Filename: skillbuild.mac
** Orignally written by Plazmic
** Bastardized by Rizwank
** Please note : This script doesnt use real items. There is no Pizza combine in Everquest. Sorry.
**|
Block comment for macro header.

#turbo
  Turns on turbo mode.
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"
#chat say
#chat tell

Please note the bottom of the code there taken Directly from the manual. A simple search for #chat brought that up for me....

Thanks, next question please.

- Jala