mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 4
V
vrenak Offline OP
Self-satisified door
OP Offline
Self-satisified door
V
Joined: Dec 2002
Posts: 4
Want a script to pick up something from one channel on network 1 and send it to another channel on network 2, but how do I get it to send the msg to XXXXX network? confused

Last edited by vrenak; 22/10/05 10:02 AM.
Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
http://www.mircscripts.net/comments.php?cid=1721

There are probably plenty of scripts out there like this. But, a quick breakdown:

To send message to another channel, on another server, you could do something like:

Code:
on *:text:*:#channel: {
  if ($network == [color:red]TheNetworkYouGetTextFrom[/color]) {
    var %network = [color:red]TheNetworkYouSendTextTo[/color] , %schan = [color:red]#ChannelToSendTextTo[/color]
    var %text = $+(<,$nick,>) $1- , %i = 1
    while ($scon(%i)) {
      if ($scon(%i).network == %network) { scon $scon(%i) msg %schan %text | return }
      inc %i
    }
  }
}


Just adjust the variables as needed.

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You should avoid passing /scon unknown content (here's why). In your case, the simplest solution is using msg %schan % $+ text instead of msg %schan %text.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
Oh right.

Could always just use $(%text,0)


Link Copied to Clipboard