mIRC Home    About    Download    Register    News    Help

Print Thread
need a small script that get text from channel... #152760 05/07/06 09:00 AM
Joined: Jul 2006
Posts: 1
F
FrAcTi0N Offline OP
Mostly harmless
OP Offline
Mostly harmless
F
Joined: Jul 2006
Posts: 1
hello... I am looking for a script that will get some text from channela and put it into a command...

explanation:
channel:
xxx21 new pack #2 losos - to get it type /msg xxx21 xdcc send #2

script
so when this appears in the channel i need the script to write /msg xxx21 xdcc send #2

and of course, 2 is variable.)
it would be great if anyone can help me with this.)

thanks

Re: need a small script that get text from channel #152761 05/07/06 11:06 AM
Joined: Jul 2005
Posts: 40
K
Karas Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Jul 2005
Posts: 40
Quote:

channel:
xxx21 new pack #2 losos - to get it type /msg xxx21 xdcc send #2


Code:
on *:TEXT:*:#: { 
if ($regex($1-,/\w+ new pack .+? to get it type /msg (.+?)$/) == 1) {
 /msg $regml(1)
}
}


Dunno if it's correct .. try it xD
Maybe add .echo -q $regex($1-,/\w+ new pack .+? to get it type /msg (.+?)$/)

try :S


j0k3r @ k4s.ch