|
Joined: Jun 2004
Posts: 124
Vogon poet
|
OP
Vogon poet
Joined: Jun 2004
Posts: 124 |
can sumone help me how to make a popup script for mass voice, op , deop, devoice... i tried to make one but /voice dont kinda work in undernet...
.Voice:/mode # +vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $1- .Devoice:/mode # -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $1-
this is wat i have....
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
.Voice:/mode # +v $* .Devoice:/mode # -v $*
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Hi, I wouldnt use that to perform mass mode changes, since with the $*, only 1 nick per line will be voiced/devoiced/oped/deoped. So devoicing 20 people means a flood of 20 lines. Perhaps you could try the following:
massmode {
var %x = $modespl, %y = $3-
if $me !isop $active { echo -a Error: You are not an operator on $v2 | return }
while $gettok(%y,1- %x,32) { mode $active $+($1,$str($2,%x)) $v1 | %y = $deltok(%y,1- %x,32) }
}
In conjunction with: .Op: massmode + o $1- .Deop: massmode - o $1- .Voice: massmode + v $1- .Devoice: massmode - v $1- Note that the alias massmode respects the maximum number of parameters allowed per /mode, because it uses $modespl. So if the max is 5, and u wish to voice 15 people, it will take 3 lines voicing each time 5 people. Btw this code is for mIRC 6.16. Greets
Gone.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
thats a nice little engine modified to work in 5.91
massmode {
var %x = $modespl
var %y = $3-
if $me !isop $active { echo -a Error: You are not an operator on $v2 | return }
while $gettok(%y,1- %x,32) { mode $active $+($1,$str($2,%x)) $gettok(%y,1- %x,32) | %y = $deltok(%y,1- %x,32) }
}
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Hi, close, though u forgot about the $v2, hehe.
massmode {
var %x = $modespl, %y = $3-
if $me !isop $active { echo -a Error: You are not an operator on [color:red]$active[/color] | return }
while $gettok(%y,1- %x,32) { mode $active $+($1,$str($2,%x)) [color:red]$ifmatch[/color] | %y = $deltok(%y,1- %x,32) }
}
Cya!
Gone.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
hmm so I did haha /me scrapes some rust off his mIRC editor.
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Just realised I could use # instead of $active...makes the code a tiny bit shorter, but well, for those who care about size :tongue:
Gone.
|
|
|
|
Joined: Jun 2004
Posts: 124
Vogon poet
|
OP
Vogon poet
Joined: Jun 2004
Posts: 124 |
thankz guyz.. :P ,V..
|
|
|
|
|