Scripts

From Afterxwiki

Scripts are relatively simple piece of programming to allow your client to automate certain tasks. mIRC has its own scripting language, whilst the likes of XChat uses Perl. Most Unix bots uses TCL scripts based on Perl.

mIRC scripting language is quite easy to learn.

on 1:join:#afterx:{ msg $chan Hi $nick - welcome to AfterX! 

Every time a person joins #AfterX channel, mIRC will send a message to that channel, saying "Hi <nickname> - welcome to AfterX! }

For more scripting help, some of the staff and channel ops may be able to help you.

Scripts can also be used for malicious purposes, to make your client or even computer vulnerable. For more information, see security.

In mIRC, you can also creat aliases, which can be used to shorten repetitive commands or combine several commands into one custom command.

For example, you can type the following in an mIRC window (ideally status window) so you do not have to type a full command containing the password to NickServ, but just type /identify instead.

/alias /identify /msg nickserv identify my-password


Or you can do the above, and make it automatic by making a remote script. This only work for mIRC and will only work on the AfterX IRC Network and that you put in the above alias example first:

on 1:notice:*registered*protected*:?:{
  if ( $fulladdress == nickserv!services@afterx.net ) {
    identify
  }
}