I've tried adding an NPC you can hail with a quest script like this:
__________________________________________________ __________
sub EVENT_SAY {
if($text=~/hail/i) {
quest::say("Hail $class. I can teach you your spells and tomes, up to the 35th level. Do you seek to learn " . quest::saylink("spells", 1) . " or " . quest::saylink("tomes", 1) . "?");
} elsif($text=~/spells/i) {
quest::scribespells(35);
} elsif($text=~/tomes/i) {
quest::traindiscs(35);
}
}
__________________________________________________ __________
It worked until someone reported they received the MAG Epic spell in their spell book. How do you make sure players only get the spells they should be getting?
|