There are several scripting sites that offer scripts that can be copy & pasted (also called snippets) as well as scripts that can be downloaded from the site (these are usually more complicated and require multiple files to work properly).

You can try Hawkee, mIRC Scripts, or any of the other scripting sites that they have links to.