Access Prefix Colors

By PurplesurgeMirc on Sep 13, 2009

Adds a color to the access prefixes of other users and yourself on mIRC. Requires just loading it. Pretty simple.

Place this into REMOTE. Since these uses a wildcard () for on TEXT and on INPUT, put these at the TOP of an existing script, or in a new script file. Else it won't work if you use other wildcard () on TEXT/on INPUT scripts before it.

Change the colors to what you want. The color settings are the vars (%q=~,%a=&,%o=@,%h=%,%v=+). Change the numbers following each var to change that level's specific color (0-15).

Use default if you're not comfortable editing the code.

Author: Apocalypse @ #mIRC on PurpleSurge

on ^*:TEXT:*:#:{
  var %q = 8,%a = 7,%o = 12,%h = 4,%v = 3
  if ($left($nick(#,$nick,a,r).pnick,1) == ~) { haltdef | echo -mt $chan < $+  $+ %q $+ ~ $+ $nick $+ > $1- }
  if ($left($nick(#,$nick,a,r).pnick,1) == &) { haltdef | echo -mt $chan < $+  $+ %a $+ & $+ $nick $+ > $1- }
  if ($left($nick(#,$nick,a,r).pnick,1) == @) { haltdef | echo -mt $chan < $+  $+ %o $+ @ $+ $nick $+ > $1- }
  if ($left($nick(#,$nick,a,r).pnick,1) == %) { haltdef | echo -mt $chan < $+  $+ %h $+ % $+  $+ $nick $+ > $1- }
  if ($left($nick(#,$nick,a,r).pnick,1) == +) { haltdef | echo -mt $chan < $+  $+ %v $+ + $+ $nick $+ > $1- }
}
on *:INPUT:#:{
  if ($left($1,1) != /) {
    var %q = 8,%a = 7,%o = 12,%h = 4,%v = 3
    if ($left($nick(#,$me).pnick,1) == ~) { haltdef | echo -mt $chan < $+  $+ %q $+ ~ $+ $me $+ > $1- }
    if ($left($nick(#,$me).pnick,1) == &) { haltdef | echo -mt $chan < $+  $+ %a $+ & $+ $me $+ > $1- }
    if ($left($nick(#,$me).pnick,1) == @) { haltdef | echo -mt $chan < $+  $+ %o $+ @ $+ $me $+ > $1- }
    if ($left($nick(#,$me).pnick,1) == %) { haltdef | echo -mt $chan < $+  $+ %h $+ % $+  $+ $me $+ > $1- }
    if ($left($nick(#,$me).pnick,1) == +) { haltdef | echo -mt $chan < $+  $+ %v $+ + $+ $me $+ > $1- }
    if ($left($nick(#,$me).pnick,1) !isin ~&@%+) { haltdef | echo -mt $chan < $+ $me $+ > $1- }
    .msg $chan $1-
  }
}

Comments

Sign in to comment.
#Warizardworks   -  Apr 02, 2010

Tried it out, it's a very cool snippet. Nice job PurplesurgeMirc. :)

  • Wariopower
 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.