Yes, you need to save it all in your remotes section.
With mIRC open, press ...Hmmm, let me open mIRC and make sure!...Press: Alt+R
This opens up the mIRC Editor in the "Remotes" section.
Point to File-->New
This adds a new file to the remotes section (As a side note, you can see what files are being used by Pointing to: View)
In the main window, paste all the text I wrote (all the code) including the "green writing"!
I made it green so you can see it is a comment.
From the help file:
(/help comments)
Comments
You can add comments to your scripts by using the ; semi-colon at the start of a line.
;This is a comment
You can place comments anywhere in a script, they are ignored during processing.
Make sure it looks EXACTLY the same as the code I pasted (any comments do not show up as green. they look like ordinary text)
If in doubt, mess around! you can only get better