Jul 24, 2008

How To Customize The Look Of Your Mirc Events

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Others

free web hosting

How To Customize The Look Of Your Mirc Events

imacul8
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 $+ ) ( $+ $gettok($fulladdress,2,33) $+ )
  haltdef
}

you can add colors and change it to however u wish to make ur custom displays.

Now i will just go through a whole bunch of events keeping the same theme as the above one.


CODE
** Part event for when users part from a channel

on ^*:Part:#: {
  echo -t $chan (Part/ $+ $nick $+ ) ( $+ $gettok($fulladdress,2,33) $+ )
  haltdef
}

** Quit event for when users quit from a server

on ^*:Quit: {
  var %num = 1
  while ($comchan($nick,%num)) {
    echo -t $comchan($nick,%num) (Quit/ $+ $nick $+ ) $chr(40)) $+ Reason $+ : $remove($iif($2 != $+($chr(40),$chr(41)),$remove($1-,Quit,$chr(40),$chr(41)),None) $+ $chr(41),:)
    inc %num
  }
  halt
}

** Nick event for when you and/or users change your nickname

on ^*:Nick: {
  var %num = 1
  while ($comchan($newnick,%num)) {
    echo $comchan($newnick,%num) $tstamp $theme2((NickChange) ( $+ $nick to $newnick $+ ))
    inc %num
  }
  haltdef
}

** Kick event for when you and/or users are kicked from a channel
on ^*:KICK:#: {
  echo $chan $tstamp $theme2(( $+ $knick $+ ) Was kicked from $chan by ( $+ $nick $+ ) $+([,$1-,]) $+ )
  halt
}


Now you can also change the events for when text is sent to the channel

To edit your input you use the on input event

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

the $opv is another alias which will return the persons status in a channel @,+,- ie. @nick for an op.

alias opv {
  if ($1 isop $2) { return @ }
  if ($1 isvo $2) { return + }
  if ($chr(45) isin $remove($nick($chan,$nick).pnick,$nick)) { return - }
  else { return }
}

The to edit how you receive other peoples text

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


the -t in all these codes is to display your timestamp if u have it turned on. You can turn this on and edit it by going into options > IRC > messages > timestamp.



These are all codes to edit the look of channel events. Will cover private messages and other things in later posts.

any questions please ask smile.gif

Thankyou smile.gif

 

 

 


Reply

AlternativeNick
hey thats pretty cool, ( i already knew how to do it, i <3 mIRC scripting ) but its good to see someone else here doing it xD

anyways, PM me with the server that you are on, and the channels, always nice to see other trap17 members smile.gif

Reply

masterleous
their are so many scripts that can be addable in MIRC. Last time i customized my mirc by writing my own scripts in C++, and that result too pretty MIRC. I distribut it to my friends and other community friends. In that script i include some war play scripts like flooding and and also its protection, but these scripts are not mine i got them from internet and they worked fine.

Reply

Urza
you missed the theme2 alias in the post hehe wink.gif

Something like this is probably a better idea for the opv alias.
instead of only checking for op/voice/whatever the - is since ive never seen that (what services is that on by the way?) it will check for whatever status's the server supports and return the highest one

CODE
alias opv {
;opv chan nick
  var %chan = $1, %nick = $2
  if (%nick != $nick(%chan,%nick).pnick) return $left($nick(%chan,%nick).pnick,1)
  else return
}


Reply

tractor
Yes alt made a good one but now i understand. smile.gif

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.
Confirm Code:

Recent Queries:-
  1. socket mirc war - 148.06 hr back. (3)
Similar Topics

Keywords : customize mirc events

  1. I Am Looking For Ideas For A Mirc Addon - I want your ideas (1)
    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. 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 ...
  8. 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...
  9. How To Customize The Look Of Your Mirc Events Part 2 - (6)
    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...



Looking for customize, mirc, events

Searching Video's for customize, mirc, events
advertisement



How To Customize The Look Of Your Mirc Events



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
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