You could do so via a NPC fairly easily. Simply place him where ever you would like or have him spawn under certain conditions. I creatated zone flags for every zone on my server and below is the simple script for the NPC "Knuckles" in Crushbone. The bold is what you would want to flag someone and what goes in the (#) is the zone number.
sub EVENT_SAY {
if($text =~ /Hail/i) {
quest::say("Greetings $name. Have you come to [rid] us of the vile Emperor?");
}
if($text =~ /rid/i) {
quest::say("Outstanding! All you have to do is kill Emperor Crushbone then bring me the proof in the form of his head.");
}
}
sub EVENT_ITEM{
#Head of Emporer Crushbone
if($item1== 99001){
quest::say("You have done it $name! May you be graced with the strength of Brell!");
quest::exp(25000);
quest::ding();
quest::set_zone_flag(58 );
$client->Message(15, "You received a character flag!");
}
}
|