Thread: Sell Quests
View Single Post
  #2  
Old 09-22-2017, 10:45 AM
phentop
Sarnak
 
Join Date: Jul 2010
Location: Army
Posts: 36
Default

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?
Reply With Quote