How To Customize The Look Of Your Mirc Events Part 2

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

How To Customize The Look Of Your Mirc Events Part 2

imacul8
Well in part 1 of How To Customize The Look Of Your Mirc Events i covered some channel events, so now i will cover the events for in a private chat. Plus some extra stuff....

** To change the look of the other persons text u again use a on text event

CODE
on ^*:TEXT:*:?: {
  echo -t $query($nick) ( $+ $nick $+ ) $1-
  halt
}


** To change the look of your own input

CODE
on *:INPUT:?: {
  if ($left($1,1) != /) {
    .msg $active $1-
    echo -t $active ( $+ $me $+ ) $1-
    halt
  }
}


** To change how actions look in both channel and private ( covered the $opv in part 1 )

CODE
on ^*:ACTION:*:#: {
  echo -t $chan * $+($opv($nick,$chan),$nick) $1-
  halt
}
on ^*:ACTION:*:?: {
  echo -t $query($nick) * $nick $1-
  halt
}


** To change the look of notice events

CODE
on ^*:NOTICE:*:?: {
  if (serv isin $nick) { echo -st $+($chr(40),Notice/,$nick,$chr(41)) $1- | haltdef }
  else { echo -at $+($chr(40),Notice/,$nick,$chr(41)) $1- | haltdef }
}

on ^*:NOTICE:*:#: {
  if (serv isin $nick) { echo -st $+($chr(40),Notice/,$nick,$chr(41)) $1- | haltdef }
  else { echo -t $chan $+($chr(40),Notice/,$nick,$chr(41)) $1- | haltdef }
}


if (serv isin $nick) { --> this part is to filter server messages and display them in your status window.

** To change the look of when modes are set in a chan

CODE
on ^*:MODE:#: {
  echo $chan (Mode/ $+ $chan $+ ) ( $+ $nick $+ ) Sets mode $+([,$1-,])
  halt
}


** To change the look of a whois & whowas event is a little different than the rest. You have to set the raw events which is pretty easy if u know how.

CODE
;WHOIS
raw 311:*: { set %whoisadd $3 $+ @ $+ $4 | echo -s 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Whois Information 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ | echo -s >> Nickname: $2 | echo -s >> Name: $6- | echo -s >> Address: %whoisadd | haltdef }
raw 314:*: { set %whoisadd $3 $+ @ $+ $4 | echo -s 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Whowas Information 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ | echo -s >> Nickname: $2 | echo >> Name: $6- | echo >> Address: %whoisadd | haltdef }
raw 301:*: { echo >> Away: $asctime($3) $4- | haltdef }
raw 307:*: { echo >> Registered: Yes | haltdef }
raw 308:*: { echo >> Admin: $2-  | haltdef }
raw 309:*: { echo >> $+($left($2,1),,$right($2,$calc($len($2) - 1))) $3-  | haltdef }
raw 310:*: { echo >> HelpOp: $2-  | haltdef }
raw 313:*: { echo >> IRCop: IRCop! | haltdef }
raw 319:*: { echo >> On Channels: $3- | haltdef }
raw 320:*: { echo >> $2-  | haltdef }
raw 312:*: { echo >> On Server: $3 | echo $theme2( $c2(¯) Server Info:) $4-  | haltdef }
raw 379:*: { echo >> Modes: $6- | haltdef }
raw 325:*: { echo >> $2 $+ : $3- | haltdef }
raw 317:*: { echo >> Idle Time: $duration($3) | echo -s $theme2( $c2(¯) Logged On:) $asctime($4) | haltdef }
raw 318:*: { echo -s 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ End 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ | haltdef }
raw 369:*: { echo -s 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ End 4ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ | haltdef }
raw 378:*: { haltdef }
;END WHOIS


Well i hope you peeps are using this to make your mirc look awesome!!
Lookout for part 3 coming soon smile.gif

Thankyou smile.gif

 

 

 


Reply

AlternativeNick
hmm a few suggestions, if you want to make channel and PM events look the same, i suggest just using 1 event, with * as the location marker (in place of # and ?) that would allow it to trigger whether public or private, and therefore only one event would be needed.
Also, if someone has serv in their name it would sorta mess up the actions, so I would change that around to something else (perhaps using raws) or maybe even nick specific
CODE

alias -l services { return nickserv chanserv }
if ($istok($services,$nick,32) { echo -st $+($chr(40),Notice/,$nick,$chr(41)) $1- | haltdef }


finally, you could clean up the raw section using something like this
CODE

raw *:*: {
if ($numeric == 301) { echo -a raw 301 | haltdef }
elseif ($numeric == 302) { etc | haltdef }
else { return }

and just set that up for each of the raws youd like to change

 

 

 


Reply

imacul8
QUOTE(AlternativeNick @ Sep 2 2006, 02:30 AM) *

hmm a few suggestions, if you want to make channel and PM events look the same, i suggest just using 1 event, with * as the location marker (in place of # and ?) that would allow it to trigger whether public or private, and therefore only one event would be needed.


I showed them both seperate so that people can know how to change them if they want them to be different... thats the only reason i did it as 2 events. and the way ive used that $opv wont work in a private so then u will need to add whether its from a channel or private anyway...
So 2 events is much easier for people to manage.

Reply

AlternativeNick
here is something else that you might find useful, i was just kinda fooling around with this and set up a nicklist colorer thing

This one will do colors 3-15 repeatedly in the nicklist.
CODE

alias ncolor {
  if (!$1) {
    var %c = 0
    while (%c < $chan(0)) {
      inc %c
      var %i = 0
      while (%i < $nick($chan(%c),0)) {
        var %x = 2
        while (%x < 15) {
          inc %x
          inc %i
          cline $iif($len(%x) == 1,$+(0,%x),%x) $chan(%c) %i
        }
      }
    }
  }
  elseif ($1) {
    var %i = 0
    while (%i < $nick($1,0)) {
      var %x = 2
      while (%x < 15) {
        inc %x
        inc %i
        cline $iif($len(%x) == 1,$+(0,%x),%x) $1 %i
      }
    }
  }
}
on *:JOIN:#:{
  ncolor $chan
}
on *:START:{
ncolor
}


This one colors the names with the color code you specify. Just change the number in line one
CODE

alias -l ncol { return 09 }
alias ncolor {
  if (!$1) {
    var %c = 0
    while (%c < $chan(0)) {
      inc %c
      var %i = 0
      while (%i < $nick($chan(%c),0)) {
        inc %i
        cline $ncol $chan(%c) %i
      }
    }
  }
  elseif ($1) {
    var %i = 0
    while (%i < $nick($1,0)) {
      inc %i
      cline $ncol $1 %i
    }
  }
}
on *:JOIN:#:{
  ncolor $chan
}
on *:START:{
  ncolor
}


Reply

Urza
QUOTE
** To change the look of your own input

CODE
on *:INPUT:?: {
  if ($left($1,1) != /) {
    .msg $active $1-
    echo -t $active ( $+ $me $+ ) $1-
    halt
  }
}


Just a note about the input event, might as well add a check for actions as well.

CODE
on *:input:?: {
  if ($1 == $read(mirc.ini,text,commandchar) $+ me) {
   .describe $active $2-
   echo $color(action) -ta * $me $+($2,*)
  }
  elseif ($left($1,1) != $read(mirc.ini,text,commandchar)) {
    .msg $active $1-
    echo -ta ( $+ $me $+ ) $1-
  }
}

Reply

AlternativeNick
hmm never thought of that xD anyways, nice to see you here Urza. i wish they gave credits for refferalls, id have about a billion xD

Reply

tractor
This is a good tut for MIRC people that don't know much

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. mirc on input haltdef - 20.29 hr back. (1)
  2. mirc upp haltdef - 49.99 hr back. (1)
  3. customize mirc - 115.36 hr back. (1)
  4. on input haltdef mirc - 431.37 hr back. (1)
  5. irc part1 part2 rest - 991.08 hr back. (1)
  6. mirc how to customize - 1031.28 hr back. (1)
Similar Topics

Keywords : customize mirc events

  1. I Am Looking For Ideas For A Mirc Addon - I want your ideas (2)
    Well im currently between 2 projects that im scripting and im bored with them haha!! Just
    looking for ideas for something else i can make... Maybe just sumthing little that u want made, i
    will make it for you and release it here. I have a fairly wide range of scripting knowledge and i
    will try to make most things... Always looking to learn more things also Ta...
  2. Need Help With Mirc - (0)
  3. Mirc 3d Rendering - (0)
    QUOTE ======================================================================5/26/2006===
    Talons Simple 3D Tutorial irc.webchat.org:6667 in
    #mIRC,#help.mIRC ==================================================================================
    As a programmer, I often find myself trying to write things that already exist. It gives some
    satisfaction to say, "I did this on my own." even if it is not as good as what is already out there.
    Nothing is more impressive than your own work, even if it is not as good. It's an accompli...
  4. Mirc Snippets - Some snippets for IRC Chatters :) (10)
    You can find them on: www.hawkee.com www.mircscripts.org www.mircscripts.com www.mirc.net ... Here
    are somones...: CODE ; Repeat flood protection ; Change #channel with the name of your channel
    :) ; It will ban+kick after 3 repeats i 8 secs. on *:text:*:#klinci: {  if
    ($nick == $me) || ($nick isop $chan) || ($nick ishop
    $chan) { halt }  else {    var %text =
    $hash($strip($1-),32)    var %stari.text = %rp. [ $+ [
    $chan ] $+ . &#...
  5. Few Mirc Snippets I Have Scripted - (19)
    Just a few things that may come in handy /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> Backwards text snippet : will revers the text u input CODE bck {
      var %x = 1,%bck   while (%x <= $len($1-)) { %bck =
    $mid($1-,%x,1) $+ %bck | inc %x }   return %bck } Usage: $bck(text)
    ie. //echo -a $bck(hello everyone) Returns: enoyreve olleh Random letter/number generator :
    creates a random letter/number combo for the length specified. CODE rx {   if ($1 == &...
  6. Sockets Help (mirc) - (8)
    hello, i was wondering if someone would be able to help me out a bit. Im looking to get some info
    from my forums using sockets and mIRC, however the info i want requires that you be logged in. I
    know that it would require sockwrite POST something, but im not really sure how to use that :S
    anyways, here is the source to the login section (HTML) HTML form action ="
    http://www.altscripts.trap17.com/forum/index.php?action=login2 " method=" post " style="
    margin: 3px 1ex 1px 0pt; text-align: right; "> input name =" user " size=" 10 "
    type=" text ">...
  7. How To Customize The Look Of Your Mirc Events - (4)
    Well im sure that a lot of you just use mIRC for chatting and do not realise that you can actually
    use it to code cool stuff. You can also change the way your events look and i am going to explain
    how here. Starting with the on join event - which triggers when you and other users join a channel.
    Instead of having just the plain * Now talking in #channel and * nick has joined #channel you can
    make it look fancy ie. (Join/nick) (nick@address) and its not hard to do. CODE on
    ^*:JOIN:#: {   echo -t $chan (Join/ $+ $nick $+ ) (...
  8. Socket Status Addon For Mirc - (2)
    This addon will display the status of your open sockets (if there is any) Displays displays the
    Name, IP, Port, Status - Bytes sent/received & last Sent/recieved Has options to refresh the status,
    close a socket and close all sockets. Copy and paste this code below into your remotes (alt + r) To
    run the dialog u can simply type /sockstats or u can add a popup to your menubar or wherever to open
    it. ie. &Socket Status:/sockstats in your status popup section (alt + p) **IF you have no active
    sockets it wont open the dialog, it will just return no open sockets in your ...
  9. Control Parts Of Msn Through Mirc - (7)
    Control your MSN, or return various information such as nickname, status, etc.. Usage:
    $msn(valuetype) Valuetypes : returnvalue online : $true or $false indicating
    wheter your signed in or not (actually $true indicates status but was added to have an
    independent online checker) status : returns the status of MSN (Busy,Online,Invisible etc)
    nickname : your nickname email : your email ie. //echo -a $msn(nickname) will return ur msn
    nickname. user : $true when succesful $false when not Methods: Blocked CanPage
    Frie...



Looking for customize, mirc, events, part, 2

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for customize, mirc, events, part, 2

*MORE FROM TRAP17.COM*
advertisement



How To Customize The Look Of Your Mirc Events Part 2



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE