Various small/unfinished/incomplete mIRC scripts.
Download ScriptCleaner.exe (198 KB)
mIRC stores all loaded scripts in memory . Therefore, it is useful to make at least sscripts intended for releasing as small as possible to minimize their memory fingerprint.
Manually this is a nightmare. Removing all starting spaces, comments (good programmer has one comment for approximately every five line of code), blank lines... That is why I made ScriptCleaner, a small program for cleaning up scripts.
As you can see, the interface is very simple and intuitive. Original file will be backed up by adding .bak to its name, if that file exists then additional number will be added - ie .01.bak, .02.bak etc. The reason for backing up the file is that while comments and indentation/formatting are useless for end-user, they are still useful for the script author, ie you.
Note that backup file name works like a hyperlink - clicking on it opens the file.
Download LocalTime.zip (397 B)
Local Time is a small script to show someone's current time in mIRC. Basically it is a fancy wrapper for CTCP TIME. Bookworm asked me to do it and the result was interesting enough to share.
Load script with /load -rs LocalTime.mrc
Use nicklist right-click menu item " Local time " . Result will be shown in same channel where you requested. If user is badly lagged (more then 1 min), then you will see just normal CTCP TIME reply in status window.
Celsius <--> Fahrenheit conversion script
Download cf.zip (961 B)
This script is very useful in multi-cultural environment as IRC has become. It automatically converts between Celsius and Fahrenheit temperatures in your lines, showing both (see below).
Load script with /load -rs cf.mrc
Using this script
In channels or chats type just number followed by C or F (case doesn't matter).
If you don't want number to be converted, send the line using ctrl+enter (useful in cases such as "Just my 2c" or "Wow... she is 36C")
Known issue: temperature ending with comma ("Inside 22C, outside 18C") won't be converted.
Original line: It is 26.1C inside and 32C outside
Line enchanced by script: It is 26.1°C/79°F inside and 32°C/89.6°F outside
If you want to see the result just yourself, use (in any mIRC window):
- Celsius to Fahrenheit: /c2f <number>
- Fahrenheit to Celsius: /f2c <number>
For example: /c2f 36.8
will give you 36.8°C/98.2°F
By default, mIRC has less then half of Undernet servers in its internal server list. This script will connect to the Undernet website and get the complete server list, adding them automatically to servers.ini.
Load script with /load -rs UnderServer.mrc
Script will update the serverlist after loading. Afterwards you can update serverlist from Commands -- "Update Undernet servers." There is no need to do this more then perhaps once a month or so.
- v1.1 Oslo1 is now always correct. Old Undernet servers are removed from serverlist.
- v1.2 Since Undernet website has been down for a week, now UnderServer will try to get servers from UnderNet.ro if connecting to UnderNet.org fails. All Undernet servers are now correctly removed from serverlist before update. Fixed minor $sockerr related bug (error message when there was no error).
Download VarCleaner.rar (1.04 KB)
There can be quite a lot of "abandoned" variables in mIRC, thanks to the bad scripts that do not remove their variables when they are unloaded; or if user " unloads" script by deleting script file.
This script searches & (optionally) removes those variables.
DO NOT USE THIS SCRIPT IF YOU HAVE DYNAMIC VARIABLES CREATED USING EVALUATION BRACKETS [ ]
To use script: /load -rs varcleaner.mrc
Script starts working right after loading, displaying info to the status window. After variable checking is done, script automatically unloads - there is no need to keep it loaded. If you want to run VarCleaner again, just load it again.
If script finds abandoned variables, it will ask you if they should be removed. Removed variables be backed up into file variables.backup.txt
Download AutoVoicer.zip (1.18 KB)
Small and simple autovoicer. Voicing is channel-specific, based on address mask. You add or remove nicks from mIRC nicklist, script is capable of quering address if it is not found in IAL. Menu is disabled if you are not operator on that channel. Voice is given on join or on channel text (useful if user joined while you were away), also, of course when you add user to voices list. Data is stored in <mircdir>\AutoVoicer\ folder, each channel in separate .txt file.
DLX (or X-control)
Download DLX.rar (2.77 KB)
Yet another of those "one-day-I-will-update-it" scripts.
DLX is script for controlling Undernet channel bot, X. DLX is capable of getting automatically your access level information from X and disabling or enabling commands according to that information. DLX can request username information if it needs it etc etc. I still use it and plan to rewrite it some day. Current version, however, was written when I was fairly new to the scripting.
Image is from DLX channel menu. Note the disabled items - I have access level 450 on that channel, these are level 500 commands.