Top

mIRC Theme


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Sep 08, 2009
Last Updated  Nov 04, 2009
Tags  mirc  sunnyd  theme 

Introduction

First script on hawkee :D hope you like it lol.
I'm sure theres a been a bunch of mIRC themes on here but meh heres mine :P

It's kind of based off default mIRC theme only with a black background and some minor color changes.

-Ban Alert-
Beeps twice and flashing icon if IRC isn't your active window, if you dont want it in there simply remove the "on *:BAN:#:{" line, or if u have any suggestions on putting a trigger there. I myself have tried basing it on and "if" comparison, but interferes with the script. -Note- if someone mass bans you, (+bbb) it echoes 1 line per ban.

-Defcolor-
Ex.(/defcolor op halfop voice), Changes your ranked display colors as specified lol

-Screenie-
http://img529.imageshack.us/img529/8094/themey.png

-Updates-
-Bug fixes
-added notices
-added topic and related raws
-added beeps and flashes similar to mIRC's default theme (pm sounds, notices etc)
-added theme to queries
-added highlights

Leave a comment :D constructive criticism and any advice welcome.

Grab the Code

on *:start:{ startup }
alias startup {
  .color background 1 | .color action 6 | .color ctcp 14 | .color info 14 
  .color info2 14 | .color highlight 4 | .color invite 11 | .color join 3
  .color own 14 | .color part 3 | .color quit 2 | .color topic 1
  .color wallops 5 | .color whois 5 | .color notice 5 | .color normal 14
  .color kick 3 | .color mode 7 | .color nick 3 | .color other 15 | .color editbox text 15
  .timestamp -f 15[14hh15:14nn15] | .timestamp on | .color inactive 14 | .color treebar 1
  .color editbox 1 | .color listbox 1 | .color gray text 14 | .color listbox text 14
  .color title text 14 | .color treebar text 14 | .color topic text 14 | .font -d Arial Unicode MS
}
on ^*:TEXT:*:#:{ echo -m $chan $timestamp $iif($nick isop #,4«14(4@14) $+ $nick $+ 4»,$iif($nick ishop #,7«14(7 $+ $chr(37) $+ 14) $+ $nick $+ 7»,$iif($nick isvoice #,12«14(12+14) $+ $nick $+ 12»,$iif($nick isreg #,15«14 $+ $nick $+ 15»)))) $iif($me isin $1-,$replace($1-,$me,4 $+ $me $+ ),$1-) | halt } 
on ^*:RAWMODE:#:{ echo -t $chan 7»15M7«(15Mode7):15 $nick 7sets mode $chr(91) $+ 15 $1- $+ 7 $chr(93) | halt }
on ^*:NICK:{ haltdef | var %x = 1 | while (%x <= $comchan($newnick,0)) { echo -t $comchan($newnick,%x) 3»15N3«(15Nick3):15 $nick 3»»»»15 $newnick | inc %x } }
on ^*:JOIN:#:{ if ($nick != $me) { echo -t $chan 3»15J3«(15Join3):15 $nick 3(14 $replace($address,.,15.14,@,15@14,~,15~14) $+ 3 $chr(41) joined15 $chan | halt } }
on ^*:PART:#:{ if ($nick != $me) { echo -t $chan 3»15P3«(15Part3):15 $nick 3(14 $replace($address,.,15.14,@,15@14,~,15~14) $+ 3 $chr(41) left15 $chan $+  $iif($1- != $null,3¤ $+ $chr(40) $+ 15 $+ $1- $+ 3 $+ $chr(41) $+ ¤,$chr(32)) | halt } }
on ^*:QUIT:{ haltdef | var %x = 1 | while (%x <= $comchan($nick,0)) { echo -t $comchan($nick,%x) 2»15Q2«(15Quit2):15 $nick 2(15 $address 2) Quit $iif($1- != $null,2¤ $+ $chr(40) $+ 15 $+ $1- $+ 2 $+ $chr(41) $+ ¤,.) | inc %x } }
on *:INPUT:#:{ if ($left($1,1) != /) { haltdef | .msg $chan $1- | echo -at $iif($nick isop #,4«14(4@14) $+ $nick $+ 4»,$iif($nick ishop #,7«14(7 $+ $chr(37) $+ 14) $+ $nick $+ 7»,$iif($nick isvoice #,12«14(12+14) $+ $nick $+ 12»,$iif($nick isreg #,15«14 $+ $nick $+ 15»)))) $1- } }
on ^*:NOTICE:*:*:{ beep 4 | haltdef | echo $iif(serv isin $nick,-st,-at) 5-»15N5«(15 $+ $nick $+ 5):-5 $1- | $iif(serv isin $nick,echo -s 5-,halt) }
on ^*:KICK:#:{ if ($knick != $me) { echo -t $chan 3»15K3«(15Kick3):15 $knick 3was kicked by15 $nick $iif($1- != $null,3¤ $+ $chr(40) $+ 15 $+ $1- $+ 3 $+ $chr(41) $+ ¤,.) | halt } }
on ^*:INVITE:#:{ beep 4 | echo -t 11»15i11«(15Invite11):15 $nick 11(15 $address 11) Invites you to join15 $chan | halt }
on ^*:BAN:#:{ if ($nick != $me && $banmask iswm $address($me,5)) { flash -r [Ban-Alert] | beep 2 | echo -t $chan 4»15!4«(15Warning4):15 $nick 4has banned you in15 $chan 4[15 $banmask 4] } }
on ^*:TEXT:*:?:{ echo -m $nick $timestamp 4«14 $+ $nick $+ 4» $1- | halt }
on ^*:OPEN:?:*:{ beep 7 }
on *:INPUT:?:{ if ($left($1,1) != /) { haltdef | .msg $active $1- | echo -a $timestamp 4«14 $+ $me $+ 4» $1- } }
raw 332:*:{ echo -t $2 15»Topic15: $3- | haltdef }
raw 333:*:{ echo -t $2 15»Topic15: Set by 15»14 $+ $iif(! isin $3,$gettok($3,1,33),$3) $+ 15« at 15»14 $+ $asctime($4) $+ 15« | echo -t $2 15~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | haltdef }
 

Comments

  (22)  RSS
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 3:53 pm
Code:
echo -m $chan $timestamp

you can use the 't' switch to prefix the line with the current $timestamp
SunnyD
Comments: 19
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 5:52 pm
done :D had went thru an updated some but guess i missed a few :P

TheNitelyfe
Comments: 46
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 6:38 pm
Very nice, but some things that could make it shorter...

Code:

 set %o.col 4 | set %h.col 7 | set %v.col 12
+ defcolor

You don't need to set vars for colors, that's what /cnick is for. So it can be
Code:

tokenize 46 * 4 ~&@.* 7 % .* 12 +.* 01.on | .cnick $*

and these...
Code:

  if ($nick isop #) { echo -t $chan  $+ %o.col $+ «14( $+ %o.col $+ @14) $+ $nick $+  $+ %o.col $+ » $1- }
  elseif ($nick ishop #) { echo -t $chan  $+ %h.col $+ «14( $+ %h.col $+ $chr(37) $+ 14) $+ $nick $+  $+ %h.col $+ » $1- }
  elseif ($nick isvoice #) { echo -t $chan  $+ %v.col $+ «14( $+ %v.col $+ +14) $+ $nick $+  $+ %v.col $+ » $1- }
  elseif ($nick isreg #) { echo -t $chan 4«14 $+ $nick $+ 4» $1- }
   if ($me isop #) { haltdef | .msg # $1- | echo -at  $+ %o.col $+ «14( $+ %o.col $+ @14) $+ $me $+  $+ %o.col $+ » $1- | halt }
    elseif ($me ishop #) { haltdef | .msg # $1- | echo -at  $+ %h.col $+ «14( $+ %h.col $+ $chr(37) $+ 14) $+ $me $+  $+ %h.col $+ » $1- | halt }
    elseif ($me isvoice #) { haltdef | .msg # $1- | echo -at  $+ %v.col $+ «14( $+ %v.col $+ +14) $+ $me $+  $+ %v.col $+ » $1- | halt }
    elseif ($me isreg #) { haltdef | .msg # $1- | echo -at 4«14 $+ $me $+ 4» $1- | halt }

can be shortened by nesting $iif
Code:

echo -t $chan $iif($nick isop $chan, $+ %o.col $+ «14( $+ %o.col $+ @14) $+ $nick $+  $+ %o.col $+ »,$iif($nick ishop $chan,  $+ %h.col $+ «14( $+ %h.col $+ $chr(37) $+ 14) $+ $nick $+  $+ %h.col $+ »,$iif($nick isvoice $chan, $+ %v.col $+ «14( $+ %v.col $+ +14) $+ $me $+  $+ %v.col $+ »,$iif($nick isreg $chan,4«14 $+ $me $+ 4»)))) $1- | halt


Same with the on INPUT.

Otherwise very nice 8/10

SunnyD
Comments: 19
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 6:45 pm
thanks :DDD i'll get right on that :p
FordLawnmower
Comments: 411
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 6:58 pm
o.O That's enough Pipes for all the crackheads in Cincinnati.
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 8:26 pm
lol'd
Bushak
Comments: 4
 
mIRC Snippet:  mIRC Theme
Posted on Sep 8, 2009 10:15 pm
ADD:

if ($nick isadmin #) { }
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 9, 2009 2:44 pm
Bushak 'isadmin' isnt an /if operator
Cracker200
Comments: 257
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 7:00 pm
Can some one please tell me why the fack.. it doubles i didn't double load i Checked every thing i can't see why it does :S
Code:
 [12:58:33:am] 4«14(4@14)[M|GhTyK|LLeR]4» lol
[12:58:33:am] 4«14(4@14)[M|GhTyK|LLeR]4» lol


It only doubles when i speak :/
SunnyD
Comments: 19
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 7:21 pm
do u have 2 input scripts? it could be any 2 inputs scripts, doesnt necessarily have to be the same script twice

Cracker200
Comments: 257
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 7:26 pm
lol ok thanks Nope... i checked em it aint that :S

Code:
 [01:28:11:am] <[M|GhTyK|LLeR]> 5FÚCK
[01:28:11:am] 4«14[M|GhTyK|LLeR]4» fark
[01:28:11:am] * You were kicked by glaucus (flood)
[01:28:11:am] * Attempting to rejoin channel #LOL
[01:28:11:am] * Rejoined channel #LOL
[01:28:11:am] * Topic is 'LOLOLOL'
[01:28:11:am] * Set by glaucus on Fri Aug 28 18:14:42
[01:28:21:am] <Brent> lol
[01:28:21:am] 4«14Brent4» lol


It doubles ffs :S it's a good script Maybe it's some thing else i am useing O_o

Quote:
do u have 2 input scripts? it could be any 2 inputs scripts, doesnt necessarily have to be the same script twice
Yes i do lol but it's never effected any thing b4 OO
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 8:46 pm
use the ^ prefix on the input event
Jethro_
Comments: 437
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 8:57 pm
sunslayer, I don't think that'll make any difference, because, according to mirc's help file, it states:
Quote:
The ^ event prefix currently works only on the following types of events: ACTION, BAN, CHAT, DEHELP, DEOP, DEVOICE, HELP, INVITE, JOIN, KICK, MODE, NICK, NOTICE, OP, OPEN, PART, PING, TEXT, UNBAN, USERMODE, VOICE, QUIT, SERV, SERVERMODE, SERVEROP, SNOTICE, TABCOMP, TOPIC, WALLOPS.
As you can see, the on input event isn't listed. I've been told the ^ for on input is undocumented, but for my past attempts to get it to work with the ^ prefix did not yield a success.

sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 9:26 pm
hmm nvr knew that

anyways if u cant use ^ then change the order of the files(file>order) and make this script number 1 and make sure to /halt it, should fix the problem
SunnyD
Comments: 19
 
mIRC Snippet:  mIRC Theme
Posted on Sep 10, 2009 9:41 pm
yikes lol, might try halting the other input or removing it to test, checked everything over and seems ok to me D:
SunnyD
Comments: 19
 
mIRC Snippet:  mIRC Theme
Posted on Sep 12, 2009 3:11 pm
updated, think i fixed the double echo problem as i ran into it earlier, people who had 2 modes IE. o and h and v, were echoing 3 times cause it matched 3 different if's.
Cracker200
Comments: 257
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 3:53 pm
@ sunslayer i did what you said "use the ^ prefix on the input event" It did'nt make a diffrence...
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 5:11 pm
as jethro_ said:
Quote:
sunslayer, I don't think that'll make any difference, because, according to mirc's help file, it states:
Quote:
Quote
The ^ event prefix currently works only on the following types of events: ACTION, BAN, CHAT, DEHELP, DEOP, DEVOICE, HELP, INVITE, JOIN, KICK, MODE, NICK, NOTICE, OP, OPEN, PART, PING, TEXT, UNBAN, USERMODE, VOICE, QUIT, SERV, SERVERMODE, SERVEROP, SNOTICE, TABCOMP, TOPIC, WALLOPS.

As you can see, the on input event isn't listed. I've been told the ^ for on input is undocumented, but for my past attempts to get it to work with the ^ prefix did not yield a success.
Quote:
anyways if u cant use ^ then change the order of the files(file>order) and make this script number 1 and make sure to /halt it, should fix the problem

Cracker200
Comments: 257
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 5:14 pm
Oh sorry i didn't read any other comments lool D:
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 5:16 pm
epic response time.
Cracker200
Comments: 257
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 5:31 pm
Lolz SunSlayer can u pvt me what server u're on or?
o.O
sunslayer
Comments: 267
 
mIRC Snippet:  mIRC Theme
Posted on Sep 27, 2009 5:37 pm
irc.swiftirc.net -j #sunslayer

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom