The quest works now, thank all of you guys for your hard work and patience helping me get it going. Posting the working code, maybe it will help someone else looking to make a class specific quest.
Code:
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Hello $name , I am one of the finest weaponsmiths this land has ever seen. If you find me a mold I will craft you a weapon. However if it is armor you seek, my brother makes the best around.");}
}
sub EVENT_ITEM {
if ($class eq "Warrior") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(62189);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Paladin") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(62189);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Shadow Knight") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(62189);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Berserker") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(62189);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Monk") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(6611);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Beastlord") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(6611);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Druid") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Necromancer") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Wizard") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Magician") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Enchanter") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Shaman") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29422);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
if ($class eq "Cleric") {
if (plugin::check_handin(\%itemcount, 6164 => 1)) {
quest::summonitem(29442);
quest::exp(750);
quest::emote("smiles warmly as he hands you your weapon.");
quest::ding();
}
}
plugin::return_items(\%itemcount);
quest::say("These are not the pieces I need.");
}
}