mIRC Homepage
Posted By: very_confused mass voice - 30/06/03 07:56 PM
how do i mass voice everyone in a channel how is not voiced
Posted By: pheonix Re: mass voice - 30/06/03 07:58 PM
alias mv {
var %i 1
while (%i <= $nick($chan,0)) {
if ($nick($chan,%i) !isvoice $chan) {
mode # +v $nick($chan,%i)
}
inc %i
}
}
Posted By: very_confused Re: mass voice - 30/06/03 07:59 PM
do i put this in alias or remotes
Posted By: SladeKraven Re: mass voice - 30/06/03 08:07 PM
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)
Posted By: theRat Re: mass voice - 30/06/03 08:07 PM
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 }
© mIRC Discussion Forums