Hi,

It's my first attempt at scripting, and it's going bad, i hope someone can help me here.

I want to echo a prebot on this network/chan (Corrupt-Net | #PRE) to another network.
I found a script on this board, tried to tweak it, but i don't seem to make it work.

Here the script :

Quote:
on *:TEXT:*:#PRE:{
var %e = /^\X264|TV-HD|MULTi|COMPLETE|GAMES/0DAY/iS
var %f = /(?:GERMAN|SPANiSH|iTALiAN|XXX|XXX-0DAY)/iS
if ($regex($1-,%e)) {
if (!$regex($1-,%f)) {
if ($network == Corrupt-net) {
var %text = $read(FILENAME,W,$+(*,$2-,*))
var %i = 1
var %netcnt = $scon(0)
while (%i <= %netcnt) {
if ($scon(%i).network == MYNETWORK) {
scon $scon(%i)
.msg #MY-PRE-CHAN <PRE> $1- $date
}
inc %i
}
}
}
}
}



So if someone can point me to where the problem is, i would appreciate it.

Thanks.