Top

Mass modes popup


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Aug 30, 2009
Last Updated  Aug 30, 2009
Tags  halfop  owner  popups  protect  voice 

Introduction

Its a nicklist popup with user modes, i, tired of editing mircs default popups so i made this, I've never seen one this simple but ehh it works.
lol

Grab the Code

menu nicklist {
  Modes
  .Owner:/mode # +qqqqqqqqqqqqqqqqqqqq $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deowner:/mode # -qqqqqqqqqqqqqqqqqqqq $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Protect:/mode # +aaaaaaaaaaaaaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deprotect:/mode # -aaaaaaaaaaaaaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Op:/mode # +ooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deop:/mode # -ooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Halfop:/mode # +hhhhhhhhhhhhhhhhhhhh $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Dehalfop:/mode #-hhhhhhhhhhhhhhhhhhhh $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Voice:/mode # +vvvvvvvvvvvvvvvvvvvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Devoice:/mode # -vvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
}
 

Comments

  (13)  RSS
Gemster
Comments: 82
 
mIRC Snippet:  Mass modes popup
Posted on Aug 30, 2009 4:30 pm
why not use it like this:

Example
Code:
  .Mass voice:/mode # +vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1-
  .Mass devoice:/mode # -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1-
jonesy44
Comments: 1,856
 
mIRC Snippet:  Mass modes popup
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..
Jethro_
Comments: 438
 
mIRC Snippet:  Mass modes popup
Posted on Aug 30, 2009 4:52 pm
Based upon the original code, it could've been written as:
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
}
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.
zNigel-
Comments: 27
 
mIRC Snippet:  Mass modes popup
Posted on Aug 30, 2009 4:59 pm
Using $modespl is way better
Jethro_
Comments: 438
 
mIRC Snippet:  Mass modes popup
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:
Code:
//echo -a $modespl
to see how many modes can be set together in your server.
Weasel
Comments: 117
 
mIRC Snippet:  Mass modes popup
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
Jethro_
Comments: 438
 
mIRC Snippet:  Mass modes popup
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:
Code:
var %x = 1 | while ($nick(#,%x,a,~hoqv)) { pvoice 2 # $v1 | inc %x }
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.
Weasel
Comments: 117
 
mIRC Snippet:  Mass modes popup
Posted on Aug 31, 2009 6:58 pm
yeah, but that will be alot more annoying than /mode # user1user2
jonesy44
Comments: 1,856
 
mIRC Snippet:  Mass modes popup
Posted on Sep 1, 2009 1:56 pm
No, lol. more efficient, yes
joshschooley444
Comments: 6
 
mIRC Snippet:  Mass modes popup
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.
Jethro_
Comments: 438
 
mIRC Snippet:  Mass modes popup
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.
Phoenix-
Comments: 36
 
mIRC Snippet:  Mass modes popup
Posted on Sep 17, 2009 4:02 pm
Oh dear lord..
Code:
mode $chan $+(+,$str(q,$modespl)) $1-

And use the same code for all modes... It would make it a lot easier.
Jethro_
Comments: 438
 
mIRC Snippet:  Mass modes popup
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 -
}

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom