NameSilo

Kickban Count (mIRC Snippet)

Spaceship Spaceship
Watch
I just felt like posting some useful mIRC Scripts for you guys... Well, I have a big actual 'Script' kinda thing, still in development, but that will be too big for a snippet to post, I will have to post a download link or something...

mIRC Can be downloaded Here

You can make something like script.mrc & save this code in there, & when you load it, it will show the kick count as well as ban the user!

Code:
on *:load:{
  if ($version < 5.61) echo -a  $+ $colour(info2) $+ *** KickBan Script!. | beep 
  echo -a  4Loaded KickBan Script v2! | echo -a  4Please type: !kb <nick> in channel or /kb to kickban! | beep 5
}
alias kickban {
  if ($1 == $me) { msg $2 $me Trying to kick yourself now? $me  | halt }
  if ($me !isop $chan) { msg $me OP ME FIRST! $2 | halt }
  if (!($1 isin $2)) { msg $me $1 isn't on $2 | halt }
  else { 
    mode $2 +b $address($1,4) | kick $2 $1 $4- 0(12‹ $+ %kick.count $+ 12›0 | inc %kick.count 1 
  }
}
on *:INPUT:#:{ if ($1 == !kb) {
  kickban $$2 $chan $nick $3-
 }
}
alias kb {
  if ($1 == $me) { msg $2 $me Trying to kick yourself now? $me  | halt }
  if ($me !isop $chan) { msg $me OP ME FIRST! $2 | halt }
  if (!($1 isin $2)) { msg $me $1 isn't on $2 | halt }
  else {
    var %kb.channel $$?="Channel"
    var %kb.nick $$?="Ban Nick"
    mode %kb.channel +b %kb.nick | kick %kb.channel %kb.nick 0(12‹ $+ %kick.count $+ 12›0 | inc %kick.count 1
  }
}

To load, stick the script in your directory with mIRC.exe in it, then do a:

/load -rs script.mrc

If the name of the file is script.mrc, otherwise replace script with the file name!

-RageD
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back