http://en.wikichip.org/wiki/mirchttp://script.quakenet.org/wiki/Main_PageAs far as the $1 $2 Guess this page will help.
http://en.wikichip.org/wiki/mirc/aliases#CommandsmIRC Scripting IDE.
http://www.msldev.com/ - Non installer versions can be found here:
http://www.msldev.com/download/win/ - you will want the latest_build.zip - Useful in finding syntax issues.