sub EVENT_ITEM { if (plugin::check_handin(\%itemcount,xxxxx=>1))<-------- needs to be added if ( !$npc || $npc->GetOwnerID() || $npc->GetSwarmOwner() ) { plugin::GivePetItems(); return; } plugin::return_items(\%itemcount); }