One way would be to insert an else-condition after the second if-condition:
for
other users, or
elseif ($nick(#,$nick,r)) { var %color 12 }
for
regular users only (as further/other nick prefixes might be in used, depending on the network).
But why trouble to color with a script at all?
mIRC has an in-build "nick colors" feature in the Address Book (Alt-B; /help nick colors). You even can add/change the nick color settings of this feature with editbox commands. In your case, the commands to set the three color rules would be:
/cnick -m0 * 4 @
/cnick -m0 * 3 +
/cnick -nm0 * 12Edit:
Ah, don't forget to use
/cnick on
once so you enable the in-build nick coloring feature.
[nit-pick]
If you're familiar with the mIRC command syntax, you take /cnick <on|off> for granted. It's switching that switchbox, but afaik is not documented in the helpfile, and it does not print any message like similar "switch"-commands do, e.g /notify <on|off>
[/nit-pick]