Just something i noticed with your script you might wanna change
Quote:
if($myclass=~/ShadowKnight/i)
|
to
Code:
if($myclass eq "Shadowknight")
This could be added if you want to scribe the previous levels spells or even further back, it might generate some spam so i dont suggest you go to far back.
Code:
$prelevel = $ulevel -1;
for($count = $prelevel; $count <= $ulevel; $count++) {
quest::scribespells($count);
quest::traindiscs($count);
}