I have had this problem before. Your quest format is way different from what I normally use though.
Try it the way I wrote it below. Note, there were many small changes I made to how you had it. One of the major ones being all of the single quotes you were using. I think this should work:
Code:
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 812 => 1, 813 => 1,814 => 1,815 => 1))
{ #Fire Trash
quest::summonitem(816);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Fire.");
}
if (plugin::check_handin(\%itemcount, 816 => 1) && $mageepicuse == undef)
{ #Fire Master
quest::setglobal("FireMaster", 1, 7, "H1");
quest::say("OK. Here we go. The Master of Fire will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}