Ok i want to be able to have my mp3 random player play to certain chans on diff networks.. I tried
/scon -at1 mag #chan1,#chan2 MESSAGE
but then i get errors from each network cause im not in same room name on bot networks..
Is there a way to do this w/o the errors?
okay, this:
$replace($chan(#chan1) $chan(#chan2),$chr(32),$chr(44))
will output list of active channels separated by comma, ready for the /msg command.
your command can then be:
/scon -at1 if (
$replace($chan(#chan1) $chan(#chan2),$chr(32),$chr(44))) msg $ifmatch <message>
I hope it's clear enough, anyway.
this is my script part
/scon -at1 msg %m.ptype Random MP3Player Online
%m.ptype being the varible for the channels to msg
guess i shoulda put a copy of the remote b4 hand
sorry
I see... maybe a loop is required here then.
'domsg' will be the custom msg alias.
alias domsg {
var %i = $numtok(%m.ptype,32)
while %i > 0 {
var %chan = $gettok(%m.ptype,%i,32)
if ($me ison %chan) { msg %chan $1- }
dec %i
}
}
and use: /scon -at1 domsg MP3 Player online
/scid -a msg %m.ptype Random MP3Player Online
This command /scid -a msg will msg the channel(s) you specify [color:green] (in this case you are using %m.ptype) on all networks you are connected to.