mIRC Home    About    Download    Register    News    Help

Print Thread
#156671 19/08/06 07:10 AM
B
Br4nd0n
Br4nd0n
B
Ok.. I want to make something for me and my friends...

I'm ussally on my server and my friends and i wanna make it where when someone talks on one server a bot shows it in a channel i set on the other server. Can anyone help me ?

Thanks.

#156672 19/08/06 07:44 AM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
Code:
alias con {
  var %z
  scon -a $(%z = %z $cid,)
  return $findtok(%z,$cid,32)
}

on *:text:*:%chan1:{
  if ($con == [color:red]N[/color]) {
    scon [color:red]M[/color]
    msg %chan2 $+(<,$nick,>) $1-
  }
}


i included $con as an alias since it can be quite useful laugh

change N to the number of the connection you want to relay from blush like if its the fifth open connection, N = 5. similarly, change M to the connection to relay to

%chan1 and %chan2 should be self explanatory laugh you could replace the $con check with a check for $server if you whane


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#156673 19/08/06 07:46 AM
B
Br4nd0n
Br4nd0n
B
what is the M for again ?

#156674 19/08/06 07:47 AM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
um, the connection number of the second server :X


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#156675 19/08/06 07:49 AM
B
Br4nd0n
Br4nd0n
B
alias con {
var %z
scon -a $(%z = %z $cid,)
return $findtok(%z,$cid,32)
}

on *:text:*:%chan1:{
if ($con == 1) {
scon 1
msg %chan2 $+(<,$nick,>) $1-
}
}


if it would be the first server the bot is connected onto, correct?


Link Copied to Clipboard