For making the custom weapon work both for High Wizard and Professor, just do an hexadecimal sum of the Wizard and Sage values on the jobs mask, then on the upper mask select that the weapon is able to be wielded by upper (trans jobs), also doing the corresponding sum.