Site hosted by Angelfire.com: Build your free website today!
mIRC

Interested in Scripting


Here you will find information on mIRC scripts and scripting

mIRC is a shareware IRC client for Windows. It is developed and copyrighted by Khaled Mardam-Bey. mIRC is a highly configurable IRC client with all the goodies other clients on UNIX, Macintosh and even on windows offer, combined with a *nice* and clean user interface. mIRC offers full color text lines, DCC File Send and Get capabilities, programmable aliases, a remote commands and events handler, place sensitive popup menu's, a great Switchbar, World Wide Web and sound support, and... a lot more. mIRC is shareware but not crippled in any way...

mIRC can be changed to suit your likings, and can be customized with pop-ups that say what you usually say all the time to save on your typing. You can even change the displays and make a complete remake of mIRC. These changes can be done with scripts through scripting.

A script is mIRC that someone has customized. scripts are the .ini files that come with mIRC, just they have been edited to perform specific commands. There are thousands of scripts out there. scripts can do commands automatically or by right clicking. They are very complicated, but anyone can learn how to write one. scripts simply take advantage of the alias, popup, and remote sections of mIRC.

Uses of scripts

scripts have many uses. They prevent people from flooding you off of the net and they also help protect channels you are on. They protect other ops, and friends. Good scripts keep you from getting flooded or disconnected through other flooding or war techniques. You can get a script from mIRC-X

How to install a script

Now that you have downloaded a script, what do you do? If it is zipped up, use Winzip or another unzip program to unzip it. After it unzips, it may run an installation program. Just follow the directions and install it wherever you want it. Now, double click on the mIRC file located in the script directory. Look up at the menu bar. There should be an extra item there. Try connecting and then right click in a channel, the status window, a query box, and the nicknames list in the channel window. A list of options comes up. Cool huh? Most scripts come with a readme file that tells you of most of their options, but some do not.

Writing your own script

Before you even think of writing a script, make sure that it's not already written...it would be a waste of time to rewrite a script. Also, make sure you have some new features in your script...I'd say about 80% of scripts have NO new features. Are you going to use this script? Do you actually need a script? Are you on the internet a lot? The easiest way to learn how to write a script is by studying others. Print out the .ini files (aliasis, popups, remotes) and put them in the bathroom to read every now. Also read the mIRC Commands they should also help you along your way. mIRC-X has also created a scripting section which is exactly the same information that is found in the mIRC FAQ on their page.

After you are done with your script, you need to send it to a few people to test it. After it has been beta tested, by someone else (or you) and you've fixed the "bugs", then zip it up (without the program mirc32.exe...mirc16.exe...etc...because anyone getting the script will more than likely already have downloaded the program) and fill out mIRC-X's online add form to add to my website for other people to download and try.

What is an fserve?

An fserve is short for 'File Server' It is also a script, but can be more complicated. An fserve lets you choose what files you want to get from another user. Fserves may contain pics (pictures), sounds, movies...any kind of files, even scripts.

How to use an fserve

It is very similar to an ftp site. When a person has a file server, you usually type a command to access it (like !Xcalibre). When this is typed in the main channel window, a DCC chat window comes up from the person running that fserve. You now have access to the directory that person wants you to have access to. For example, if the files on my fserve were located in c:\files,I could specify that in my fserve and no one could go into any other directories than that. They can; however, go into the subdirectories of that folder, so they could go into c:\files\sounds but not into c:\ or c:\windows ...etc... The person running the fserve can limit how many bytes of download credit per upload credit. That's right...to use most fserves, you have to send them the same kind of files they want to give you. So, in order to get a file, you have to DCC send them a file. Let's say I sent the person running the fserve a file that was 120 kb. He will then give me the credits to get a 120 kb file, or he may double or even triple the byte ratio, so if I sent a 120 kb file, he would give me 360 kb of download credit (I can now download a file or files that add up to 360 kb). An fserve automatically sends the files that the user specifies. Ok...back to the fserve. When you type the command to access it, a DCC chat window comes up. This is done automatically by the person running the fserve. You should see a directory come up in the window after you accept the DCC chat. It may look like this: c:\ files\blah\blah or similar to that. When you see this, you know that you have received an fserve. Now what? Ok, the first command is 'dir' This will bring up a list of the directories you have to choose from, or it may have some files listed. It could look like this:

Xcalibre> [C:\files\blah\blah]

You!> dir

Xcalibre> [C:\files\blah\blah\*.*]

Xcalibre> Programs

Xcalibre> Pictures

Xcalibre> Sounds

Xcalibre> End of list.

Or like this:

Xcalibre> [C:\files\blah\blah]

You!> dir

Xcalibre> [C:\files\blah\blah\*.*]

Xcalibre> filename.zip

Xcalibre> anotherfile.zip

Xcalibre> file.jpg

Xcalibre> End of list.

Ok, the words that don't have an extension are the directories (Programs, Pictures, Sounds) and the ones that have extensions are the files (filename.zip, anotherfile.zip, file.jpg) To change directories in the first example, you type 'cd ' Example, if I wanted to go into the sounds directory, I would type 'cd sounds' In the second example however, there are no directories and only files. To get files, you use the 'get ' command. For example, I would type 'get filename.zip' if I wanted that file. Back to the first example...after you type 'cd sounds' it looks like this:

Xcalibre> [C:\files\blah\blah\sounds]

You need to type 'dir' again to see what's in this directory. A list similar to this will appear:

You!> dir

Xcalibre> [C:\files\blah\blah\sounds\*.*]

Xcalibre> filename.wav

Xcalibre> anotherfile.wav

Xcalibre> file.wav

Xcalibre> End of list.

Again, to get one of these files, just type 'get ' BUT DON'T FORGET TO UPLOAD! When you upload, your credits are automatically saved, so the fserve keeps track of how many files you can get. The file sizes are usually listed beside the files in kilobytes.

Addons

A addon is mIRC that someone has customized. addons are the .ini files that come with mIRC, just they have been edited to perform specific commands. There are thousands of addons out there. addons can do commands automatically or by right clicking. They are very complicated, but anyone can learn how to write one. addons simply take advantage of the alias, popup, and remote sections of mIRC.

What is a bot?

A bot is a script written to respond to commands given by the owner and users, and also events that happen, such as a person joining the channel or leaving, etc. Bots can be fun and/or annoying, depending on what they do, etc. There are also different types of bots, which perform different commands.

What kind of bots are there?

First, there are war bots. War bots are written to cause chaos and havoc in channels and to users. They do things like flooding users, kick and banning them, k-lines, etc. There is really no good reason to use these unless there is someone who is being really annoying, won't stop bothering you, and is someone who you really dislike.

Then there are channel bots. Channel bots are boring, but can be useful. They will perform simple tasks like OP, DEOP, KICK and BAN. Channel bots should only be used with your good friends, as they can tell it to OP them and KICK and BAN you.

Last, there are bar bots. Bar bots can be fun, but they can become annoying real fast. They will serve you a drink and food, play games, and other things. What's good is if you have a bar bot with channel bot powers. It's fun to use with your friends for a while.

How do I use a bot?

You start your copy of mIRC, connect to a server, then you would start the bot: In Windows 3.1x, you would goto File/Run, then type this command line: C:\Bot_Directory\mIRC16.exe C:\Bot_Directory\bot_name.ini, where "Bot_Directory" is where you keep your bots, and "bot_name" is the bot's filename. In Windows 95, you would click Start/Run and in the space type the following command line: C:\Bot_Directory\mIRC32.exe C:\Bot_Directory\bot_name.ini, where "Bot_Directory" is where you keep your bots, and "bot_name" is the bot's filename.

How do I write a bot?

Before you decide to try and write your own bot, consider the following:

Is the bot I'm going to write already written? If so, you could save a lot of time using the one written already. Is my bot going to have features that any other bot won't? I've seen a lot of bots these days that have the same features as others. Would I use a bot? If you're going to use it once or twice a year, forget it. Then if you really want to write your own bot, I think the easiest way to learn how to write a bot, is to download some and read the INI files to see how they work. It's pretty straight forward once you look at them and test their abilities.