Thanks for the reply but I got it working yesterday, here is the final working quest. I will be redoing all starting guild leaders quests to work with starting notes.
sub EVENT_SPAWN {
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity($x - 20, $x + 20, $y - 20, $y + 20);
}
sub EVENT_ENTER {
if($hasitem{18729}){
$client->Message(15, "A commanding, yet kind looking Erudite turns towards you. 'Do not be startled. I am Lanken Rjarn, Guild Master for all aspiring Enchanters. Read the note in your inventory and hand it to me when you are ready to begin your training. I look forward to training you.'");
}
}
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("I do not have time to speak with thee. I have a problem on my hands. Feel free to speak with any of my trainers.");
}
if($text=~/problem/i){
quest::say("My problems are of no concern of yours. but if you must know it deals with Nolusia's brother. I can tell you no more. Leave me be.");
}
}
sub EVENT_ITEM {
if($item1=="18729"){
quest::say("Welcome to the Craft Keepers! You have much to learn. and I'm sure you are anxious to get started. Here's your training robe. Go see Nolusia. she'll give you your first lesson.");
quest::ding();
quest::exp("100");
quest::summonitem("13549");
#Craftkeepers
quest::faction("56","1");
#High Council of Erudin
quest::faction("145","1");
#Heretics
quest::faction("143","-1");
#High Guard of Erudin
quest::faction("147","1");
}
}
#END of FILE Zone:erudnint ID:24032 -- Lanken_Rjarn
|