mIRC Homepage
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
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
© mIRC Discussion Forums