Mass modes popup
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Aug 30, 2009 |
| Last Updated | Aug 30, 2009 |
| Tags | halfop owner popups protect voice |
Introduction
lol
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 4:30 pm
Posted on Aug 30, 2009 4:30 pm
why not use it like this:
Example
Example
| Code: |
| .Mass voice:/mode # +vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1- .Mass devoice:/mode # -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1- |
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 4:43 pm
Posted on Aug 30, 2009 4:43 pm
| Code: |
| alias mm mode $1 $+($left($2,1),$str($right($2,1),$numtok($3-,32)) $3- |
/m #chan +mode nicks..
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 4:52 pm
Posted on Aug 30, 2009 4:52 pm
Based upon the original code, it could've been written as:
By the way, jonesy44's got the right idea of using $str, but with an alias, which is not what the op has intended initially.
| Code: |
| menu nicklist { Modes .Owner:/mode # $+(+,$str(q,20)) $$1-20 .Deowner:/mode # $+(-,$str(q,20)) $$1-20 .Protect:/mode # $+(+,$str(a,20)) $$1-20 .Deprotect:/mode # $+(-,$str(a,20)) $$1-20 .Op:/mode # $+(+,$str(o,20)) $$1-20 .Deop:/mode # $+(-,$str(o,20)) $$1-20 .Halfop:/mode # $+(+,$str(h,20)) $$1-20 .Dehalfop:/mode # $+(-,$str(h,20)) $$1-20 .Voice:/mode # $+(+,$str(v,20)) $$1-20 .Devoice:/mode # $+(-,$str(v,20)) $$1-20 } |
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 4:59 pm
Posted on Aug 30, 2009 4:59 pm
Using $modespl is way better
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 5:11 pm
Posted on Aug 30, 2009 5:11 pm
Yes, zNigel-, $modespl is a good identifier to go about mass mode, but what if the server only allows 5 modes or less to be set at a time? You can check the allowance of it by using:
to see how many modes can be set together in your server.
| Code: |
| //echo -a $modespl |
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 5:37 pm
Posted on Aug 30, 2009 5:37 pm
could do this to do every one in the channel $str(v,$nick(#,0,a)) $nick(#,1,a) $nick(#,2,a) $nick(#,3,a) $nick(#,4,a) $nick(#,5,a) $nick(#,6,a) $nick(#,7,a) $nick(#,8,a) $nick(#,9,a
mIRC Snippet:
Mass modes popup
Posted on Aug 30, 2009 6:06 pm
Posted on Aug 30, 2009 6:06 pm
Weasel, if you're gonna do it that way to voice users, you might as well use a while loop and /pvoice command:
This will only trigger upon regular users without user modes. Those who's been voiced won't get voiced again. There's a delay for two seconds to prevent mode flood, but can be adjusted longer.
| Code: |
| var %x = 1 | while ($nick(#,%x,a,~hoqv)) { pvoice 2 # $v1 | inc %x } |
mIRC Snippet:
Mass modes popup
Posted on Aug 31, 2009 6:58 pm
Posted on Aug 31, 2009 6:58 pm
yeah, but that will be alot more annoying than /mode # user1user2
mIRC Snippet:
Mass modes popup
Posted on Sep 1, 2009 1:56 pm
Posted on Sep 1, 2009 1:56 pm
No, lol. more efficient, yes
mIRC Snippet:
Mass modes popup
Posted on Sep 16, 2009 6:44 pm
Posted on Sep 16, 2009 6:44 pm
I didn't do it any of those ways because to be honest I don't know how. I'm just a side scripter (if you could even call it that) everything I script is basic.
mIRC Snippet:
Mass modes popup
Posted on Sep 16, 2009 7:10 pm
Posted on Sep 16, 2009 7:10 pm
I think "part-time" scripter is more like it. lol
But remember every one is learning here, and it doesn't matter if one's ability in scripting doesn't match another. As you script more, you'll eventually, spontaneously tend to find more efficient, shorter ways to go about making scripts.
But remember every one is learning here, and it doesn't matter if one's ability in scripting doesn't match another. As you script more, you'll eventually, spontaneously tend to find more efficient, shorter ways to go about making scripts.
mIRC Snippet:
Mass modes popup
Posted on Sep 17, 2009 4:02 pm
Posted on Sep 17, 2009 4:02 pm
Oh dear lord..
And use the same code for all modes... It would make it a lot easier.
| Code: |
| mode $chan $+(+,$str(q,$modespl)) $1- |
And use the same code for all modes... It would make it a lot easier.
mIRC Snippet:
Mass modes popup
Posted on Sep 17, 2009 9:41 pm
Posted on Sep 17, 2009 9:41 pm
| Code: |
| menu nicklist { Mass Modes .$submenu($massmode($1)) } alias massmode { var %c = $+($,chan), %n = $+($,1-) if ($1 = begin) return - if ($1 = 1) return Owner:mode %c $+(+,$str(q,$modespl)) %n if ($1 = 2) return Deowner:mode %c $+(-,$str(q,$modespl)) %n if ($1 = 3) return Protect:mode %c $+(+,$str(a,$modespl)) %n if ($1 = 4) return Deprotect:mode %c $+(-,$str(a,$modespl)) %n if ($1 = 5) return Op:mode %c $+(+,$str(o,$modespl)) %n if ($1 = 6) return Deop:mode %c $+(-,$str(o,$modespl)) %n if ($1 = 7) return Halfop:mode %c $+(+,$str(h,$modespl)) %n if ($1 = 8) return Dehalfop:mode %c $+(-,$str(h,$modespl)) %n if ($1 = 9) return Voice:mode %c $+(+,$str(v,$modespl)) %n if ($1 = 10) return Devoice:mode %c $+(-,$str(v,$modespl)) %n if ($1 = end) return - } |






