This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

React on colorized text

Old posts that have not been replied to for several years.
Locked
S
SkaaP

React on colorized text

Post by SkaaP »

Hi i'm trying to make a tcl script that reacts on colorized text, Invision a mirc addon automaticly says • Thanks for the +v • colorized

Code: Select all

  12• 11Thanks for the +v 12• 
i want my bot to react if this is saying by activating a proc, i tried make the trigger *thanks* (who ever uses thanks on irc it's always thx anyway ) but this doesn't work on the colorized text, what did i do wrong and can anyone help me?
j
jimmyx
Voice
Posts: 11
Joined: Mon Jul 14, 2003 6:51 pm

Post by jimmyx »

mIRC color code wont work in TCL. You need to use \003

For example:

Code: Select all

putserv "privmsg #channel : \00312,11Thanks for the +v \00312"
S
SkaaP

Post by SkaaP »

Sorry for not making myself clear but i mean that the bot must react if some says "thanks for the +v".
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pubm - "*\002*" pubm:color
bind pubm - "*\003*" pubm:color
bind pubm - "*\006*" pubm:color
bind pubm - "*\007*" pubm:color
bind pubm - "*\017*" pubm:color
bind pubm - "*\026*" pubm:color
bind pubm - "*\037*" pubm:color

proc pubm:color {nick uhost hand chan text} {
  # your stuff here..
}
This will react on: bold, colour, underline, reverse, italic, and.. ummm.. bell or something, I've forgot. :)
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It sounds like a simple case of you using the PUB bind, when you should be using the PUBM bind.
S
SkaaP

Post by SkaaP »

a 1000 thanks it now works :D
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Umm.. damn, forgot to remove the m :)
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You didn't.

It needs the m, or am I misunderstanding you.

PUB is for "The first work is the command"

PUBM is for "Wildcard based matching, on the whole line of text".

Thus, only PUBM works on multiword matching.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Haha.. damn.. now I know what happeens when I act without thinking. :) The pubm is the correct type.
Once the game is over, the king and the pawn go back in the same box.
Locked