mIRC Home    About    Download    Register    News    Help

Print Thread
#161733 10/10/06 12:01 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
when i joina chan

how can i loop and echo all the nicks in the channel

#161734 10/10/06 12:39 PM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
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


Newbie
#161735 10/10/06 12:49 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
but ym channel names are like

%#test

so i think its different like that

#161736 10/10/06 09:35 PM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
i have no idea what you mean. i cant make head or tail of it. :tongue:


Newbie
#161737 10/10/06 09:45 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#161738 10/10/06 09:48 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
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?

#161739 10/10/06 10:15 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Does $2 work from raws?
Code:
raw 366:*:{
  var %i = 1
  while $nick($2,%i) { echo $2 $v1 | inc %i }
}


Link Copied to Clipboard