And for the record /scripthelp is your friend! /scripthelp upgrade returned this
TServerPlayer.upgradestatus - string (read only). And to test that I just did in the top of a script (serverside of course)
NPC Code:
temp.md = findplayer("MysticalDragon").upgradestatus;
echo("Echo Test" SPC temp.md);
and that returns in RC "Echo Test gold".