Top

Mass invite and execpt modes


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  3.0
Scores Submitted  1
Date Added  Dec 06, 2007
Last Updated  Mar 25, 2008
Tags  execpt  invite  mass  modes 
  Bookmark and Share

Introduction



the commands are
!e+ <namehere> mass execpt username selected
!e- <namehere> mass deexecpt username selected
!i+ <namehere> mass invite username selected
!i- <namehere> mass deinvite username selected
!ie+ <namehere> will make the selected username have bot invite and execpt set on there name only
!ie- <username> removes it




Grab the Code

Comments

  (5)  RSS
Foresthello
Comments: 3
 
mIRC Snippet:  Mass invite and execpt modes
Posted on Dec 7, 2007 3:59 pm
open for opinions
mountaindew
Comments: 1,645
 
mIRC Snippet:  Mass invite and execpt modes
Posted on Dec 7, 2007 4:36 pm
Code:

      mode $chan -e $address($2,1)
      mode $chan -e $address($2,2)
      mode $chan -e $address($2,3)
      mode $chan -e $address($2,4)
      mode $chan -e $address($2,5)
      mode $chan -e $address($2,6)
      mode $chan -e $address($2,7)
      mode $chan -e $address($2,8)
      mode $chan -e $address($2,9)
      mode $chan -e $address($2,10)

u rly should learn while loops :)
Code:

  var %x = 1
  while %x <= 10 {
    mode $chan -e $address($2,%x)
    inc %x
  }

it is a lot shorter, and u can do something like that in multiple spots too, like when you do the +I :)
Foresthello
Comments: 3
 
mIRC Snippet:  Mass invite and execpt modes
Posted on Dec 7, 2007 6:13 pm
il get to editing my scripts i posted after i finish the ones i am about to post
napa182
Comments: 1,142
 
mIRC Snippet:  Mass invite and execpt modes
Posted on Mar 27, 2008 2:13 am
you could do the mass part of ur script like this to make it a bit shorter.
Code:
on $*:TEXT:/^[+-](e|I)/Si:#: {
  if ($nick isop #) || ($nick ishop #) {
    if (!$2) { .notice $nick please specify a nick }
    elseif ($2 == $me) { .notice $nick  I don't think so. }
    else {
      var %x = 0
      while (%x <= 9) {
        var %y $addtok(%y,$address($2,%x),32)
        inc %x
      }
      mode $chan $left($1,1) $+ $str($right($1,1),%x) %y
    }
  }
}

Andrew-|
Comments: 5
 
mIRC Snippet:  Mass invite and execpt modes
Posted on Mar 27, 2008 8:13 am
napa182, the matchtext could be /^[+-][eI]/Si.

Code:
on $*:TEXT:/^[+-][eI]/Si:#:{
  if ($nick($chan,$nick,oh)) {
    if ($2) {
      if ($2 == $me) {
        .notice $nick I don't think so.
      }
      else {
        var %a = 1
        while (%a < 10) {
          var %b = %b $addtok(%b,$address($2,%a),32)
          inc %a
        }
        mode $chan $left($1,1) $+ $str($right($1,1),%a) %b
      }
    }
    else {
      .notice $nick please speicfy a nick
    }
  }
}

Please Register or Login to start posting comments.
Bottom