mIRC Home    About    Download    Register    News    Help

Print Thread
#33232 30/06/03 07:56 PM
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
how do i mass voice everyone in a channel how is not voiced

#33233 30/06/03 07:58 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias mv {
var %i 1
while (%i <= $nick($chan,0)) {
if ($nick($chan,%i) !isvoice $chan) {
mode # +v $nick($chan,%i)
}
inc %i
}
}


new username: tidy_trax
#33234 30/06/03 07:59 PM
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
do i put this in alias or remotes

#33235 30/06/03 08:07 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
alias massv {
  set %mass 0 | :jump1 | inc %mass 1 | if (%mass &gt; $nick(#,0)) { goto end } | if ($nick(#,%mass) == $me) { goto jump1 } | mode $chan +v $nick(#,%mass) | goto jump1 | :end | unset %mass 
}

In remotes. (Alt + R)

#33236 30/06/03 08:07 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Code:
alias massvoice {
var %i = 1, %j = $nick(#,0,a,v) , %tmp
while ( %i &lt;= %j ) {
%tmp = %tmp $nick(#,%i,a,v)
inc %i
}
tokenize 32 %tmp
var %i = 1
while ( $gettok(%tmp,%i,32) ) {
var %incc = $iif( $modespl &lt; %j , $modespl , %j) 
mode # $+(+,$str(v,%incc)) $gettok(%tmp,$+(%i-,$calc( %i - 1 + %incc)),32)
inc %i %incc
dec %j %incc
}
}

something along those lines should work

EDIT: formatting & added missing }

Last edited by theRat; 30/06/03 08:09 PM.

Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard