massmode

By TriNetLabs on Nov 03, 2009

Got bored, made this. There's only so many ways it can be done, so if you think I ripped it, keep your comment to yourself. If you don't know how to use it, then you need to read mIRC's /help file before asking me anything.

Usage: /massmode [+/- [mode]]

Coded by Simplicity

alias massmode { //var %nicks 1 | while (%nicks <= $nick(#,0)) { mode # $1 $nick(#,%nicks) | inc %nicks } }

Comments

Sign in to comment.
Cracker200   -  Nov 06, 2009

Jethro, yeh i see now it just looked the same when i looked, be for lol.

 Respond  
Jethro   -  Nov 04, 2009

Cracker200, if you look closely, you'll notice the slight difference between DMT and Grant's. Their workability is seamlessly the same.

 Respond  
Cracker200   -  Nov 04, 2009

Um... DMT, why did you post that when, Grant has posted it...? lol

 Respond  
WorldDMT   -  Nov 04, 2009
alias massmode {
  var %nicks 1
  while $nick(#,%nicks) {
    mode # $1 $v1
    inc %nicks
  }
}
 Respond  
Cracker200   -  Nov 04, 2009

Lol, Grant, i was half asleep shh don't tell any one XD

 Respond  
Jethro   -  Nov 03, 2009

There are two factors you should REALLY consider nevertheless. One is the timer and the other != $me . Imagine there's a room with a 100+ population. There's no reason to mode yourself. Other than that, your code's pretty decent.

 Respond  
TriNetLabs   -  Nov 03, 2009

@All of the above:

I use pipes and make my scripts condense. Thank you all for offering your opinions and suggestions, but I'd rather stick to the way I code. It's easier for me :P Thanks for the positive comments!

@Jethro_:

Most people I know usually have common sense not to use massmode in large channels (the largest I did it in was some 30 people, lmao). But good idea nonetheless, and I admit I didn't think of adding a timer to it :P Also, I know the slashes (//) aren't needed in the code, but again, it's just a personal thing. xP

 Respond  
Grant-   -  Nov 03, 2009

Jesus Cracker, your alias is even worse..

alias massmode { 
  var %nicks 1
  while (%nicks <= $nick(#,0)) {
    mode $chan $1 $nick(#,%nicks)
    inc %nicks 
  } 
}
 Respond  
Cracker200   -  Nov 03, 2009

The code is good n BUT!! lolz


alias massmode { //var %nicks 1 
 while (%nicks <= $nick(#,0)) 
{ mode $chan $1 $nick(#,%nicks) 
 inc %nicks } }

I'm sorry to be a pest like this but '|' Pipes, make it looks sloppy when it's good code hideing behind it :P

 Respond  
Jethro   -  Nov 03, 2009

That is a good mass mode code, but a timer can be used to massively give out modes to people in intervals. This decreases the chances of flooding in a big channel. The double slashes are not needed. Furthermore, your code can be altered to mode people horizontally, rather than vertically. Here are what I mean:> alias massmode { var %nicks 1 | while (%nicks <= $nick(#,0)) { .timer 1 $calc(%nicks * 2) mode $!chan $1 $iif($nick(#,%nicks) != $me,$v1) | inc %nicks } }Below is an example of giving modes horizontally:

alias massmode { var %x, %nicks 1 | while ($nick(#,%nicks)) { if ($v1 != $me) { %x = %x $v1 } | inc %nicks } | mode # $str($1,$nick(#,0)) %x }

Also, you don't want to mode yourself. I added $nick != $me to negate that occurrence.

 Respond  
TriNetLabs   -  Nov 03, 2009

Yes, I mean it. Moronic, useless comments will be deleted. Simple as that ;x

 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.