on $*:text:/^!(un)loadall$/:#:{
if (xyz) {
; in the line above you should do some kind of check to make sure that the user is authorised to use the command.
if ($regml(1) == un) {
var %i = 1
while ($script(%i) != $null) {
if ($script(%i) == $script) {
inc %i
continue
}
.unload -rs $qt($script(%i))
}
}
else { noop $findfile(<script directory here>,*.mrc,0,.load -rs $qt($1-)) }
}
}