mIRC CoreScript

By Kikseo on May 23, 2008

This script basically does everything I thought was tedious to do myself. It will be updated regularly.

Commands:

/defserver [server] : Sets your server so on startup you connect instantaneously.
/setnick [nickname] : Sets your favorite nick so on connection you identify (assuming you have set a password as well, or used the /randpass
/randpass : Sets a random pass that is uncrackable, and unrememberable, and automatically identifies so long as you are the same nick as you set with /nick. Useful.
/setpass [password] : Sets your password if you do not like the /randpass generator. Also automatically identifies, just like the /randpass.
/varinfo : States your nickname information, in case you forget.

All Features to Note:

  • Automatic connection
  • Automatic identification
  • Random Pass Generator (optional)
  • Pass Setter
  • Error Notifier
  • Information Stater (if you forget your info)
  • Chat Logger(beta version, please tell me all errors)
  • Extremely Simple
  • Extremely Easy to Use

Version v1.4

;CORE V1.4
;Kikseo

;On Startup
;;Random Password Gen

alias randpass { 
  var %x = $rand(8,15)
  while (%x) { 
    var %y = %y $+ $mid(0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,$rand(1,62),1)
    dec %x 
  }
  set %pass %y
  msg nickserv set password %y
  echo -a Your new password is: %y
}

;;Default Server Setter

alias defserver { set %defserver $$1 }

;;Nicksetter

alias setnick { set %nick $$1 }

alias setpass { set %pass $$1 }

;;Connecter

on 1:START:{
  if (%defserver == $null) { echo You do not have a set default server. To set one, type /defserver [server address here]. | halt }
  else { server %defserver }
}  

;On Connection

;;Identifier

on *:CONNECT:{
  if (%nick == $me) { 
    msg nickserv identify %pass 
    /.timer 1 1 close -m nickserv 
    /.timer 1 1 clearall
  }
  else { echo -a You have not set a nick. Type /setnick [your nick] to set one, and then /randpass to generate your password. }
}

;;Core

on *:ERROR:*:{   echo Error Alert:: $1- ::trelA rorrE }

;;Other

alias varinfo {
  echo -a Nickname       : %nick
  echo -a Password       : %pass
  echo -a Default Server : %defserver
}

alias opener {
  window @testcrap
}

;;Chat Logger

on *:START:{ window @LOG }

on *:CONNECT:{ echo @LOG $timestamp $me connected. }

on *:TEXT:#:{ echo @LOG $timestamp $chan $nick : $1- }

on ^*:BAN:#:{ echo @LOG $timestamp $chan $bnick got banned by $nick }

on ^*:DEOP:#:{ echo @LOG $timestamp $chan $opnick was deopped by $nick }

on ^*:DEVOICE:#:{ echo @LOG $timestamp $chan $vnick was devoiced by $nick }

on *:INPUT:#:{ echo @LOG $timestamp $chan $me : $1- }

on *:INVITE:#:{ echo @log $timestamp $nick invited $me to $chan }

on me:*:JOIN:#:{ echo @log who # }

on *:JOIN:#:{ echo @log $timestamp $nick joined $chan }

on *:KICK:#:{ echo @log $timestamp $knick was kicked from $chan by $nick }

on *:UNBAN:#:{ echo @log $timestamp $bnick was unbanned from $chan by $nick }

Comments

Sign in to comment.
|[{K|dSn0t}]|   -  Sep 07, 2009

The logging part didn't work for me.

 Respond  
Kikseo   -  May 23, 2008

Comments please =)

 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.