This works for me. I had to change the item it summoned because I do not have item 1661 in my database. You should also check the IDs for the hand in, since at least the shaman one is not the right id for their epic based on a peq database.
Code:
sub EVENT_SAY #Start of the talking dialogue
{
my $Epic = quest::saylink("Epic"); #Creates a clickable say link for $Epic
if($text=~/hail/i) #If the text equals "hail"
{
$client->Message(15, "Hello $name, you have caught me at a bad time, I am currently in the process of completing an item that will indeed be [$Epic]."); #Message
}
if($text=~/epic/i) #If the text equals "epic"
{
$client->Message(15, "Interested are you? Well, I might have some use of you. If you can give me your Epic 1.5, then I can give you a token."); #Message
}
}
sub EVENT_ITEM #Turning in the Epic 1.5
{
if(plugin::check_handin(\%itemcount, 60332 => 1)) #This is handing in the Warrior Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 52348 => 1)) #Handing in the Rogue Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 67742 => 1)) #Handing in the Monk Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 18609 => 1)) #Handing in the Berserker Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 48136 => 1)) #Handing in the Shadowknight Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 48147 => 1)) #Handing in the Paladin Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 62647 => 1)) #Handing in the Ranger Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 77640 => 1)) #Handing in the Bard Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 57054 => 1)) #Handing in the Beastlord Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 20076 => 1)) #Handing in the Cleric Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 62880 => 1)) #Handing in the Druid Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 57045 => 1)) #Handing in the Shaman Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 16576 => 1)) #Handing in the Wizard Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 19839 => 1)) #Handing in the Magician Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 52962 => 1)) #Handing in the Enchanter Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
elsif(plugin::check_handin(\%itemcount, 64067 => 1)) #Handing in the Necromancer Epic 1.5
{
quest::summonitem(10051); #Token
quest::emote("Checks the quality"); #An emote
$client->Message(15, "Indeed, this is what I'm looking for, here is your token."); #Message
}
else
{
$client->Message(15, "Why on earth would I want this?"); #Message
plugin::return_items(\%itemcount);
}
}