mIRC Utilities

By bassrocks on Sep 07, 2016

So this script adds in several utilities to mIRC: my away nick script, custom kicks, oper right click menu, kicks & bans tracker, hugs returner, and a nick alert. More info on each below.

Away nick: allows you to set your away nick, away msg, and turn it on and off with just a couple of clicks.

Custom kicks: I hated the built in mIRC scripts so I completely removed them from my mIRC and added these customized kicks and bans with my most popular k/b reasons.

Oper right click menu: adds a right click menu for irc operators with functions like GZline, and temp shun. If you want to enable this feature, remove the semicolons (;) in front of each line of that part of the script (lines 104-130) [disabled by default]

Kicks & bans tracker: creates a custom window whenever someone kicks or bans someone in a channel. Set the channels you want this active in on lines 134 and 138.

Hugs returner: instantly returns the hug whenever someone hugs you
.

Nick alert: Whenever your nick is said in a channel that is not active, it posts in your active window that someone has said your name, it also sticks it into a custom window to keep track.

################################
#     Useful Utilities Script  #
#       Created by Vladimir    #
################################

###Custom Kicks###

alias k {
  kick $chan $1 $2-
}
alias kb {
  mode $chan +b $address($1,2)
  kick $chan $1 $2-
}
menu nicklist {
  Kick/Bans
  .Kicks
  ..Troll:k $1 Please do not troll here
  ..Spam:k $1 Please do not spam us with your b.s.
  ..Instructions:k $1 Learn to follow instructions
  ..Drop it:k $1 You were told to drop it
  ..Restricted:k $1 This is a restricted channel
  ..Kick list:k $1 Welcome back to the watch list, fucker
  ..Ignoring Ops:k $1 Please don't ignore ops
  ..Rudeness:k $1 Take yer rude self elsewhere
  ..Enter a Reason:kick $chan $1 $$?="Reason:"
  .Bans
  ..Troll:kb $1 Please do not troll here
  ..Spam:kb $1 Please do not spam us with your b.s.
  ..Instructions:kb $1 Learn to follow instructions
  ..Drop it:kb $1 You were told to drop it
  ..Restricted:kb $1 This is a restricted channel
  ..Ignoring Ops:kb $1 Please don't ignore ops
  ..Rudeness:kb $1 Take yer rude self elsewhere
  ..Enter a Reason:kick $chan $1 $$?="Reason:" | timer 1 1 mode $chan +b $address($1,2)
}

###Info###
menu * {
  .NickServ Info
  ..NickServ Info Request(click):/ns info $1
  ..NickServ Info Request(input):/ns info $$?="Nick:"
  ..NickServ Nick Group Request:/ns glist $1
  ..NickServ Email Lookup:/ns getemail $$?="Email:"
  ..NickServ Status:/ns status $1
}

###Away Nick###

on *:open:*?:{
  msg $nick $iif($away,%amsg)
}

Menu * {
  -
  Nick Functions
  .Away On {
    set -e %totalnets $scon(0)
    while (%totalnets > 0) {
      scon %totalnets nick %anick
      scon %totalnets away %amsg
      dec %totalnets  
    }
  }
  .Away Off {
    set -e %totalnets $scon(0)
    while (%totalnets > 0) {
      scon %totalnets nick %onick
      scon %totalnets away
      dec %totalnets  
    }
  }
  .Set Away Options
  ..Away Nick {
    set %anick $$?="What do you want your away nick to be?"
    set %onick $me
    echo $active Your away nick is now %anick $+ , and your original nick is now %onick $+ .
  }
  ..Away Message {
    set %amsg $$?="What do you want your away message to be when you are gone?"
    echo $active Your away message is now %amsg $+ .
  }
  .Misc Nick Functions
  ..Global Nick Change {
    set %tempnick $$?="Enter a Temporary Nick"
    set %retnick $me
    echo $active You have changed to a temporary nick of %tempnick
    set -e %totalnets $scon(0)
    while (%totalnets > 0) {
      scon %totalnets nick %tempnick
      dec %totalnets  
    }
  }
  ..Undo Temp Nick Change {
    set -e %totalnets $scon(0)
    while (%totalnets > 0) {
      scon %totalnets nick %retnick
      dec %totalnets  
    }
  }
}

###Oper Functions###

menu * {
  Oper Functions
  .Information
  ..NickServ Registeration:msg $active To register your nick with nickserv: /msg nickserv register password email [Change the password and email to yours]
  ..NickServ Help:msg $active For nickserv help: /msg nickserv help
  ..ChanServ Registeration:msg $active To register a channel with chanserv: /msg chanserv register #channel description [Change the channel and desc to whatever you like, you must include the # in the channel, and your nick name must be registered with nickserv]
  ..ChanServ Help:msg $active For chanserv help: /msg chanserv help
  ..BotServ Assigning a Bot:msg $active To assign a bot to a channel: /msg botserv assign #channel nick [Change the channel (include the #), the nick is the bot's nick]
  ..BotServ Botlist:msg $active To see the list of bots: /msg botserv botlist [Displays a list of usable bots]
  ..BotServ Help:msg $active For botserv help: /msg botserv help
  ..HostServ Request:msg $active To request a vhost: /msg hostserv request host.you.desire.here
  ..HostServ Help:msg $active For hostserv help: /msg hostserv help
  .Enforcement
  ..Kill:kill $$1 $$?="Reason:"
  ..AKill:akill $$1 $$?="Reason:"
  ..24hr Gline:gline $$1 86400 $$?="Reason:"
  ..30 Day Gline:gline $$1 30d $$?="Reason:"
  ..Gline:gline $$1 $$?="Reason:"
  ..Kline:kline $$1 $$?="Reason:"
  ..Zline:zline $$1 $$?="Reason:"
  ..GZline:gzline $$1 $$?="Reason:"
  ..30 Day GZline:gzline $$1 30d $$?="Reason:"
  ..Shun:shun $$1 $$?="Reason:"
  ..Temp Shun:tempshun $$1 $$?="Reason:"
}

###Kicks & Bans Tracker###

on *:ban:#vamps`cafe,#frostmoon,#phonesex,#bondage:{
  window @bans
  echo -t @bans [ban logger] $nick set the following ban $1- on $time $date in $chan
}
on *:kick:#vamps`cafe,#frostmoon,#phonesex,#bondage:{
  window @bans
  echo -t @bans [kick tracker] $nick kicked $knick from $chan on $date at $time
}

###Hugs Returner###

;on *:TEXT:*hug*s*:#: {
;  if ($me isin $1-) {
;    msg $chan hugggssssssssss $nick
;  }
;}
;on *:ACTION:*hug*s*:#: {
;  if ($me isin $1-) {
;    msg $chan hugggssssssssss $nick
;  }
;}

###Nick Alert###

ON $*:TEXT:*:#: {
  var %alerter $nick
  if (quit isin $1-) {
  }
  else {
    if ($me isin $1-) && ($target != $active) {
      echo $active >>4 %alerter 0alerted you in12 $chan at $time $+ ,0 with the message of: $1-
      window @alerts
      echo @alerts >>4 %alerter 0alerted you in12 $chan at $time $+ ,0 with the message of: $1-
    }
  }
}

###Someone Has Joined #Help###

on 1:JOIN:#help:{
  flash
  notice $me $nick has joined #help at $time $date
}

Comments

Sign in to comment.
fahadmehar   -  Dec 02, 2016

Please Remove WHOIS . Whenever i try to Whois someone next window open.

fahadmehar  -  Dec 02, 2016

And also Oper Menu not working. I think thats only for Opers.

bassrocks  -  Feb 21, 2017

That's intended on both

Sign in to comment

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.