reddogut
10-12-2009, 10:22 PM
I am trying to create a quest that will scribe spells for a level 10 or under Ranger only. I want the NPC to turn away any other class and any Rangers over level 10.
This is what I have so far, but I can't even get the npc to reply.
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say ("Good day to you, $name. For free I will teach all Rangers level 10 and under all of your [spells] up to level 10. After that it will cost you, although not much."); }
if ($text=~/spells/i && $class != "Ranger") {
quest::say ("I am sorry $class, but I cannot help you"); }
elseif ($text=~/spells/i && $class == "Ranger" && $ulevel >=11) {
quest::say ("Yes, you are a Ranger, but your level is too high for me. Go see NAME."); }
elseif ($text=~/spells/i && $class == "Ranger" && $ulevel <= 10) {
quest::say ("Good, stand where you are while I begin your lessons");
quest::scribespells($ulevel); }
}
This is what I have so far, but I can't even get the npc to reply.
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say ("Good day to you, $name. For free I will teach all Rangers level 10 and under all of your [spells] up to level 10. After that it will cost you, although not much."); }
if ($text=~/spells/i && $class != "Ranger") {
quest::say ("I am sorry $class, but I cannot help you"); }
elseif ($text=~/spells/i && $class == "Ranger" && $ulevel >=11) {
quest::say ("Yes, you are a Ranger, but your level is too high for me. Go see NAME."); }
elseif ($text=~/spells/i && $class == "Ranger" && $ulevel <= 10) {
quest::say ("Good, stand where you are while I begin your lessons");
quest::scribespells($ulevel); }
}