mIRC Homepage
Posted By: pouncer get nicks on join - 10/10/06 12:01 PM
when i joina chan

how can i loop and echo all the nicks in the channel
Posted By: HaleyJ Re: get nicks on join - 10/10/06 12:39 PM
maybe something like this

Code:
 on 50:JOIN:#:/.timer 1 2 /nicks $chan
alias nicks {
  var %i = 1
  while %i <= $nick($1,0) {
    if $nick($1,%i) != $me {
      echo -a $nick($1,%i) 
    }
    inc %i
  }
} 


//auser 50 $me
Posted By: pouncer Re: get nicks on join - 10/10/06 12:49 PM
but ym channel names are like

%#test

so i think its different like that
Posted By: HaleyJ Re: get nicks on join - 10/10/06 09:35 PM
i have no idea what you mean. i cant make head or tail of it. :tongue:
Posted By: Lpfix5 Re: get nicks on join - 10/10/06 09:45 PM
lol I don't know what he meant either thus why I didnt reply to the script since %# is not a channel and % might be an "Illegal" char to be used I dont mean like bad illegal just illegal as in cannot be used in #channel im not 100% though
Posted By: pouncer Re: get nicks on join - 10/10/06 09:48 PM
on servers like shizzly or buzzen, the channel names have a % infront of them

so when performing timer commands on these channel names, don't i have to evaluate them incase mirc thinks they are variables?
Posted By: deegee Re: get nicks on join - 10/10/06 10:15 PM
Does $2 work from raws?
Code:
raw 366:*:{
  var %i = 1
  while $nick($2,%i) { echo $2 $v1 | inc %i }
}
© mIRC Discussion Forums