yes, this can all go in a new filename.mrc scriptfile
I only went to the amigos channel to briefly test the script. you'll have a better chance to find me in the #mirc or #mircscripting channels on swiftirc, libera, undernet, etc. they're in the default favorites list installed by newer mirc versions