It looks right, only ting I can think of is the Maglvl Code could be wrong, Look in my Item scripts for level 5 spells.
In my kings release I had a script for level 5 skills in the Items Scripts, so that you could only learn the skill when another skill was level 5 but that should help you in...