Man, I really need to do my code work during normal daytime hours instead of after the wife goes to bed....the code how I wrote it before works fine after making Lord's typo fix and then me catching another typo I inserted while tinkering with the item # for the handin. Any way, below is the working code that DOES flag you for the zone, gives you exp, says the response line, and stores the flag for later referancing. The referance I used for the zone flagging is
http://www.eqemulator.net/wiki/wikka...erverZoneFlags
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{
#Taskmaster earring
if($item1== 1001){
quest::say("You have done it $name! May you be graced with the strength of Brell Seliris!");Brell!");
quest::exp(25000);
quest::ding();
quest::set_zone_flag(58 );
$client->Message(15, "You received a character flag!");
}
}
Optionally you could implement the changes Trevius suggested and get:
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 {
if (plugin::check_handin(\%itemcount, 1001=>1))
quest::say("You have done it $name! May you be graced with the strength of Brell Seliris!");
quest::exp(25000);
quest::ding();
quest::set_zone_flag(58 );
$client->Message(15, "You received a character flag!"); }
else {
plugin::return_items(\%itemcount);
}
}
Thanks for all the assistance and late night debugging help all
