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.

hello :) i have question about tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
r
rhrudrhs
Voice
Posts: 3
Joined: Fri Feb 09, 2007 11:06 am

hello :) i have question about tcl

Post by rhrudrhs »

hello please help me if you can :)

i dont know TCL well

ok start my question

On ^1:TEXT:*:#Channel1:{
if ( $regex($strip($1-,bruc),/\[NEWS\]\s\[([^\s\/\[\]]+)\]\s([^\s\/\[\]]+)\sby\s.+$/gi) ) {
var %text1 = $regml(1) | var %text2 = $regml(2)
if ( %text1 == SOCCER ) { /msg #Channel2 NEWS is %text1 and %text2 by ME | return }
if ( %text1 == BASEBALL ) { /msg #Channel2 NEWS is %text1 and %text2 by ME | return }
}


its from mirc script

that will be use for if someone msged in channel in #Channel1 . then i will msg #Channel2 to like this.

<someone> [NEWS] [SOCCER] Brazil.Vs.France by CNN
<Me> NEWS is SOCCER and Brazil.Vs.France by ME

<someone> [NEWS] [BASEBALL] USA.Vs.JAPAN by ABC
<Me> NEWS is BASEBALL and USA.Vs.JAPAN byMe

i wanna use that script from mirc script to my eggdrop script.
but i dont know TCL scripts.
please make that to like TCL ver. :)
and dont want this {[string match *NEWS* $text]} {
that string match is cant use same from that mirc script.

please help me :)
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: hello :) i have question about tcl

Post by user »

Do you only want messages starting with [NEWS] [SOCCER] / [BASEBALL] or [NEWS] [ANYTHING]?
Have you ever read "The Manual"?
r
rhrudrhs
Voice
Posts: 3
Joined: Fri Feb 09, 2007 11:06 am

Post by rhrudrhs »

i want [NEWS] [ANYTHING] :)

and [NEWS] [SOCCER] / [BASEBALL] / [ANOTHER] too

please make for me :) thank you :)
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

rhrudrhs wrote:i want [NEWS] [ANYTHING]

Code: Select all

bind pubm - {#channel1 [NEWS] [*] *} relaynews
proc relaynews {n u h c a} {
	if {[regexp {^\[NEWS\] \[(.+?)\] (.+) by [^ ]+$} $a 0 1 2]} {
		puthelp "PRIVMSG #channel2 :NEWS is $1 and $2 by ME"
	}
}
Have you ever read "The Manual"?
r
rhrudrhs
Voice
Posts: 3
Joined: Fri Feb 09, 2007 11:06 am

Post by rhrudrhs »

thanks really :D

and can you make BASEBALL SOCCER too ?

please if you can :)

thx again :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

BASEBALL & SOCCER belong to ANYTHING
Post Reply