Just add the -l switch to make those global variables local:
set -l %amnt $calc($len($1)/2)
set -l %low $calc(10-%amnt)The -l switch is undocumented and works the same as the /var command. Not many people know about it because it's uncommon. This way you don't even have to get it unset and occupy the space in mIRC variables.