mIRC Home    About    Download    Register    News    Help

Print Thread
displaying nicklist from other channel into anothe #137721
18/12/05 02:24 PM
18/12/05 02:24 PM
Joined: Oct 2005
Posts: 75
Sparks, Nevada
C
Confuzzled Offline OP
Babel fish
Confuzzled  Offline OP
Babel fish
C

Joined: Oct 2005
Posts: 75
Sparks, Nevada
hello again everyone,

was wondering if theres any way in mirc to put all nicks together from the nicklist into a %var or .txt file from an active channel and display them using /msg or /play command and display all nicks into a different channel?

Re: displaying nicklist from other channel into anothe #137722
18/12/05 02:47 PM
18/12/05 02:47 PM
Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics Offline
Hoopy frood
FiberOPtics  Offline
Hoopy frood

Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
/*

Usage:

/nicks [cid] <inchan> [cid] <outchan>

Example:

/nicks #mirc #mychan
/nicks 3 #mirc 5 #mychan

The optional cid's are there so that you could take the nicks from a channel on server window with a certain cid, and message it to another server with another cid.

Take a look at /help play for more information regarding the flags and options that /play provides.

*/

Code:
alias nicks {
  if ($0 &lt; 2) return
  if ($0 == 2) tokenize 32 $cid $1 $cid $2
  scid $1
  if ($me ison $2) {
    filter -wlfc $2 tmp
    scid $3
    if ($me ison $4) .play $4 tmp
  }
  :error
  scid -r
  .remove tmp
}


Gone.
Re: displaying nicklist from other channel into anothe #137723
18/12/05 03:10 PM
18/12/05 03:10 PM
Joined: Oct 2005
Posts: 75
Sparks, Nevada
C
Confuzzled Offline OP
Babel fish
Confuzzled  Offline OP
Babel fish
C

Joined: Oct 2005
Posts: 75
Sparks, Nevada
will this work?

Code:
alias nicks { 
  if ($me !ison $1) || ($me !ison $$2) return
  filter -wlfc $1 tmp
  play $2 tmp [color:red]800[/color]  
  .remove tmp
}

On 666:text:listnicks*:#:{
  msg # 11.12::7Users in $2 are12::11.
  timer 1 2 nicks $2 $3
  ignore -u20 $nick
}


I put a 800 after the play command and made and On text event but i'm not sure if that 800 works in that form

thanks for you help by the way it works just the way i wanted

Re: displaying nicklist from other channel into anothe #137724
18/12/05 03:13 PM
18/12/05 03:13 PM
Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics Offline
Hoopy frood
FiberOPtics  Offline
Hoopy frood

Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
Note that I changed the code to incorporate multi-serverness.

Yes putting 800 will work like that, providing a delay for each line to be messaged of 800 milliseconds.

Btw, you don't need to ignore the nick, you can use flags with /play that prevent the same nick from doing another request until the current request is over, all you need to do is take the time to go through the help file at /help /play

Straight from the help file:

Quote:

The -q# switch specifies the maximum number of requests that can be queued. If the queue length is already larger than or equal to the specified number then the play request is ignored.

/play -q5 c:\text\info.txt 1000

The -m# switch limits the number of requests that can be queued by a specific user/channel. If the user/channel already has or exceeds the specified number of requests queued then the play request is ignored.

/play -m1 info.txt 1000

The above line limits each user to a maximum of one request at a time and ignores all of their other requests.


Gone.
Re: displaying nicklist from other channel into anothe #137725
18/12/05 03:23 PM
18/12/05 03:23 PM
Joined: Oct 2005
Posts: 75
Sparks, Nevada
C
Confuzzled Offline OP
Babel fish
Confuzzled  Offline OP
Babel fish
C

Joined: Oct 2005
Posts: 75
Sparks, Nevada
great great!,

it works better now thank you kindly