Top

massmode


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  5.0 (of 1 scores)
Date Added  Nov 03, 2009
Last Updated  Nov 03, 2009
Tags  massmode 

Introduction

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

Grab the Code

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

Comments

  (11)  RSS
TriNetLabs
Comments: 8
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 1:07 am
Yes, I mean it. Moronic, useless comments will be deleted. Simple as that ;x
Jethro_
Comments: 438
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 10:25 am
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:
Quote:
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:
Code:
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.
Cracker200
Comments: 263
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 4:20 pm
The code is good n BUT!! lolz
Code:
 
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
Grant-
Comments: 92
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 6:13 pm
Jesus Cracker, your alias is even worse..
Code:
alias massmode {
  var %nicks 1
  while (%nicks <= $nick(#,0)) {
    mode $chan $1 $nick(#,%nicks)
    inc %nicks
  }
}
TriNetLabs
Comments: 8
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 7:01 pm
@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

Jethro_
Comments: 438
 
mIRC Snippet:  massmode
Posted on Nov 3, 2009 7:45 pm
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.
Cracker200
Comments: 263
 
mIRC Snippet:  massmode
Posted on Nov 4, 2009 4:34 am
Lol, Grant, i was half asleep shh don't tell any one XD
WorldDMT
Comments: 171
 
mIRC Snippet:  massmode
Posted on Nov 4, 2009 5:44 am
Code:
alias massmode {
  var %nicks 1
  while $nick(#,%nicks) {
    mode # $1 $v1
    inc %nicks
  }
}
Cracker200
Comments: 263
 
mIRC Snippet:  massmode
Posted on Nov 4, 2009 7:56 am
Um... DMT, why did you post that when, Grant has posted it...? lol
Jethro_
Comments: 438
 
mIRC Snippet:  massmode
Posted on Nov 4, 2009 1:46 pm
Cracker200, if you look closely, you'll notice the slight difference between DMT and Grant's. Their workability is seamlessly the same.
Cracker200
Comments: 263
 
mIRC Snippet:  massmode
Posted on Nov 6, 2009 12:15 am
Jethro, yeh i see now it just looked the same when i looked, be for lol.

Commenting Options

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

  
Bottom