mIRC Homepage
Posted By: rtil List of NICKS? - 30/05/03 09:03 PM
I am writing a flood control script - and I am wondering if it is possible, for when you enter a channel for mIRC to grab a list of nicks from the channel and make each one a variable. Any way to do it is fine, thank you.
Posted By: KingTomato Re: List of NICKS? - 30/05/03 10:04 PM
Code:
on 1:JOIN:#: {
  if ($nick == $me) {
    /set -u0 %i 1
    while ($nick($chan, %i)) {
      /set % [ $+ [ $nick($chan, %i) ] ] [color:red]value_here[/color]
      /inc -u0 %i
    }
  }
}


that will give you %kingtomato value_here, %nimue value_here, %codemastr value_here, etc
Posted By: KingTomato Re: List of NICKS? - 30/05/03 10:06 PM
Also try this for a flood kicker:

https://forums.mirc.com/showflat.php?Cat=...=true#Post26339
Posted By: Nimue Re: List of NICKS? - 30/05/03 10:10 PM
The thig is, when you join a channel, mIRC knows only you are in that channel. You'd have to wait for the names reply to finish (raw 366 RPL_ENDOFNAMES).
Posted By: KingTomato Re: List of NICKS? - 30/05/03 10:14 PM
Very true..

Code:
raw 366:*: {
  /set -u0 %i 1
  while ($nick($$2, %i)) {
    /set % [ $+ [ $nick($$2, %i) ] ] [color:Red]value_here[/color]
    /inc -u0 %i
  }
}



Thanks once again Nimue >:D

EDIT: BTW--that is the token for channel, $$2, right? Been a while >:\
Posted By: Nimue Re: List of NICKS? - 30/05/03 10:15 PM
No probs. smile
Posted By: rtil Re: List of NICKS? - 30/05/03 11:20 PM
Well thanks guys, i'm not a mirccode expert, pretty much a n00b, so i'm not quite familiar with every syntax with all the code, but i get used to it. smile
© mIRC Discussion Forums