Useful mIRC scripts...

Any other programming language that is not covered in the Web Scripting category.

Useful mIRC scripts...

Postby devlin on Fri Jun 30, 2006 5:24 pm

I was going to make a compilation of many of the scripts that I've written, but first I have to put in more variables to make them more dynamic and less hard-coded to my nick/networks. For starters, I will put up some of my simpler more useful ones though.

For those who don't know how to use these, alt + r in mirc, then paste everything from the first line beginning with "on" to the last line ending with a single "}"

NickServ auto-auth:
Code: Select all
on *:notice:This nickname is registered and protected.  If it is your:?:{
  if ( anoxs isin $server ) && ( $nick == NickServ ) {
    msg NickServ identify [password]
  }
}


Private uptime info:
Code: Select all
alias uptime {
  echo -a $timestamp <System Message> System Uptime: $uptime(system,2)
}


Public uptime info:
Code: Select all
alias up {
  say System Uptime: $uptime(system,2)
}


Lots more to come..
Last edited by devlin on Sun Jul 09, 2006 4:19 am, edited 1 time in total.
Image
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
-Linus Torvalds, 2003
devlin
Contributer
Contributer
 
Posts: 25
Joined: Wed Jun 21, 2006 10:44 pm

Postby topolab on Sat Jul 01, 2006 1:11 pm

kewl man,
i think some ppl maybe will request some,like
i did in another forum, requesting BAN to ppl
who come from a specific server(which was accepting
proxy's) and so i had floods!

i also like a script which gives info about bandwidth
and utorrent stats of my PC
Image -= irc.EFNET.nl : #AIVAnet , #salonica =-
Image -= 0day symbian+pda -> http://aivanet.info =-
topolab
Regular
Regular
 
Posts: 134
Joined: Sun Sep 11, 2005 7:31 am
Location: macedonia-north greece

Postby Rommaster on Sat Jul 01, 2006 4:55 pm

Code: Select all
on *:notice:This nickname is registered and protected.  If it is your:?:{
  if ( anoxs isin $server ) && ( $nick == NickServ ) {
    msg NickServ identify [password]
  }
}


It's better to use:

Code: Select all
on *:notice:This nickname is registered and protected.  If it is your:?:{
  if ( $network == RuneScapeIRC ) && ( $nick == NickServ ) {
    msg NickServ identify [password]
  }
}


Because if you look at the server list of RuneScapeIRC, you see that only irc2.anoxs.net has anoxs in the name.
SwiftIRC - irc.swiftirc.net - #phoenix
Phoenix-Network

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
Rommaster
Phoenix Veteran
Phoenix Veteran
 
Posts: 960
Joined: Thu Mar 10, 2005 1:05 pm
Location: The Netherlands

Postby Cnupo on Mon Jul 03, 2006 11:34 pm

Your uptime alias is about the uptime of mIRC. If you want to get the uptime of the pc use this alias:

Code: Select all
alias pcuptime {
  echo -a -> PC Uptime: $duration($calc($ticks / 1000))
}
With every beggining comes an end...
Cnupo
Newbie
Newbie
 
Posts: 16
Joined: Fri Apr 28, 2006 5:06 pm
Location: Varna, Bulgaria

Postby topolab on Tue Jul 04, 2006 5:20 pm

i have made this nice "double click respond"
for easy talk in channels:

Code: Select all
jo /msg $chan  4.oO 7 $+ $$snicks $+  4Oo.  $$?="Enter Message"


its in aliases,ini (ALT+R, aliases tab)

and also YOU HAVE TO change mouse options in MIRC
1. ALT+O
2. go to MOUSE
3. change nick list field to: /jo
Image -= irc.EFNET.nl : #AIVAnet , #salonica =-
Image -= 0day symbian+pda -> http://aivanet.info =-
topolab
Regular
Regular
 
Posts: 134
Joined: Sun Sep 11, 2005 7:31 am
Location: macedonia-north greece

Postby Jordyboy on Sat Jul 08, 2006 7:48 pm

I made one, it needs to be added to Remotes nothing needs to be changed.

Code: Select all
on *:KICK:#: if ( $nick == $me ) inc %kicks 1
}
on *:INPUT:#: { if ( $1 == .k ) kick $chan $2 $3- ‹ $+ %kicks $+ >
  if ( $1 == .cb ) mode $chan +b ~c: $+ $2
  if ( $1 == .-cb ) mode $chan -b ~c: $+ $2
  { if ( $1 == .kb ) mode $chan +b $address($2,2)
    if ( $1 == .kb ) kick $chan $2 $3-
    if ( $1 = .g ) mode $chan +b ~q: $+ $address($2,2)
    if ( $1 = .-g ) mode $chan -b ~q: $+ $address($2,2)
    if ( $1 = .v ) mode $chan +v $$2
    if ( $1 = .-v ) mode $chan -v $$2
    if ( $1 = .h ) mode $chan +h $$2
    if ( $1 = .-h ) mode $chan -h $$2
    if ( $1 = .o ) mode $chan +o $$2
    if ( $1 = .-o ) mode $chan -o $$2
    if ( $1 = .i ) invite $$2 $chan
    if ( $1 = .j ) join $$2
    if ( $1 = .e ) mode $chan +e $address($2,2)
    if ( $1 = .-e ) mode $chan -e $address($2,2)
  }
}


I bet you can figure it out by reading the script.
Have fun,
Jordy
Jordyboy
Newbie
Newbie
 
Posts: 16
Joined: Sat Jul 08, 2006 5:48 pm
Location: England

Postby devlin on Sun Jul 09, 2006 4:22 am

Cnupo wrote:Your uptime alias is about the uptime of mIRC. If you want to get the uptime of the pc use this alias:

Code: Select all
alias pcuptime {
  echo -a -> PC Uptime: $duration($calc($ticks / 1000))
}



Actually a much simplet method is by using the uptime var with the system flag. Ex: $uptime(system,2). I've edited my post to reflect the change. Thanks for bringing that to my attention. I wrote it to show the uptime for mIRC bots so it was correct for what it was originally made for.
Image
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
-Linus Torvalds, 2003
devlin
Contributer
Contributer
 
Posts: 25
Joined: Wed Jun 21, 2006 10:44 pm

Postby Joliko on Sun Jul 09, 2006 9:23 pm

I have some mircscripts here, too. Smile


** This auto-capitalized your text on the first line.

on *:INPUT:*: if (/* iswm $1) { return } | { msg $active $upper($left($1,1)) $+ $mid($1-,2,$len($1-)) | haltdef }




** This allows you to minimize all windows that are oppened in your mIRC.

alias F2 { minall }
alias minall {
unset %ma.last
while $active && %ma.last != $activecid $active {
set %ma.last $activecid $active
if $left($active,1) isletter { scid $activecid window -n " $+ $active $+ " }
else { scid $activecid window -n $active }
}
unset %ma.last
}



Some more to post. Smile
\m/ rock on \m/
Joliko
Newbie
Newbie
 
Posts: 7
Joined: Thu Jul 06, 2006 8:41 pm
Location: Mandaluyong


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron