Mass Mode Popup (Via ChanServ)

By Xio on Mar 28, 2011

Screenshots

This is a pretty simple popup script. What it does is let you mass-protect,op,halfop, and voice users as long as you have the required access. It also lets you take this status away from them.

Note that this isn't a script where you mode them all at once but rather do so one at a time via chanserv so there are alot of strings being processed at once.(And, subsequently, possible spam from chanserv in said channel depending on how many users you select)

To use the script select the users whose status you wish to change and right click. Go to Mass-Control and pick the status to give or take from them.

Like I said in the comment, this is a popup script. It goes in the popup tab under the nick-list file. (View - nick list once you're in the script editor)

/* 
This is a popup script. It goes in the popup tab under the nick-list file.(View - nick list once you're in the script editor)
It gives users status from chanserv so note that there may be spam if you select too many users at once.
To use the script, select one or more users(via ctrl, shift, or clicking and dragging) and right click one of their names. Scroll down to Mass-Control and then pick which status to give or take from said users.
*/
-
Mass-Control(Via CS)
.Mass-Protect: {
  var %op-users = $0
  while (%op-users > 0) { /cs protect # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-DeProtect: {
  var %op-users = $0
  while (%op-users > 0) { /cs deprotect # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-Op: {
  var %op-users = $0
  while (%op-users > 0) { /cs op # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-DeOp: {
  var %op-users = $0
  while (%op-users > 0) { /cs deop # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-HalfOp: {
  var %op-users = $0
  while (%op-users > 0) { /cs hop # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-DeHalfOp: {
  var %op-users = $0
  while (%op-users > 0) { /cs dehop # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-Voice: {
  var %op-users = $0
  while (%op-users > 0) { /cs voice # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
.Mass-DeVoice: {
  var %op-users = $0
  while (%op-users > 0) { /cs devoice # [ $ $+ [ %op-users ] ] | /dec %op-users 1 }
}
-

Comments

Sign in to comment.
Xio   -  Apr 17, 2011

Vegitha, sorry for the late comment. You probably didn't add it to the right file.

"This goes in the popup tab under the nick-list file.(View - nick list once you're in the script editor)"

The only thing I can think of that would cause this is you forgot to click View-'nick list' in the script editor. You shouldn't put this in a separate file and load it. It has to be in the default mirc 'nick list' file under the popup tab.

 Respond  
Vegitha   -  Apr 01, 2011

doesn't seem to work, no idea why :(. it says loaded, but when clicking on a nick it doesn't come on a popup

 Respond  
Xio   -  Mar 29, 2011

It's fine, Jethro_. Drama is entertaining to read over.

For those of you who gave tips, thanks for the feedback. It's always fun to learn how to shorten scripts and make them simpler.

 Respond  
_Dean_   -  Mar 29, 2011

I'll try my best to ignore him with all my might.

im tired to read that you will ignore me, and you never do it

 Respond  
Jethro   -  Mar 29, 2011

Gee... I didn't know that. Thanks much, jaytea, for the lesson learned.

Thanks, napa182, for the continuous reminder and support. I'll try my best to ignore him with all my might. Sorry, Scott, that you have to put up with this unpleasant "trolling fight." It's just that he gets on people's nerve for his stupidity, and he does it deliberately.

And last but not least, Xio, pardon me for using your thread for the off-topic matter. I hope you don't mind.

 Respond  
jaytea   -  Mar 29, 2011

sure. $*, as you know, operates in turn on $1, $2, $3, etc.

when a nicklist popup is activated, $1- is automatically filled, with $1 being the first selected nickname, $2 being the second, and so on.

thus, for example, the following works as needed:

.Mass-Protect: {
  cs protect # $*
}
 Respond  
napa182   -  Mar 29, 2011

Jethro_ don't fall into Dean's lil pissing match. You know he is the Queen of Drama so why fall into it?
just ignore him an his sad lil comments.

 Respond  
Jethro   -  Mar 29, 2011

I wasn't following you. Don't flatter yourself. You made an off-topic post in the public thread where everybody can see it. As always, you engaged in the name-calling without any respect for other people here at Hawkee, so in reciprocation, you don't deserve to be respected. You're just a little punk waiting for attention.

Jaytea, I'm not sure what you mean by that. Could you please be a good Samaritan to explain that further?

 Respond  
jaytea   -  Mar 28, 2011

Jethro_, no need to tokenize there, $1- is already filled and split appropriately

 Respond  
_Dean_   -  Mar 28, 2011

Off-topic: why are you hijacking this thread, Dean? You should have sent Gummo a PM.

as ever you following me, take care of ur bussinness and stop following me on posts dumbass

 Respond  
Jethro   -  Mar 28, 2011

Better yet, you can use:

tokenize 44 $snicks | /cs op # $*

Off-topic: why are you hijacking this thread, Dean? You should have sent Gummo a PM.

 Respond  
_Dean_   -  Mar 28, 2011

Gummo i need to talk with u o Peercommons ._.

 Respond  
Gummo   -  Mar 28, 2011

A similar loop is this:

while ($0) { /cs op # $1 | tokenize 32 $2- }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.