The best solution to testing what the problem is, is to simplify the quest as much as possible and then add in stuff one by one and test it after each time you update it until you have it completed the way you want to. So, try just running this script and see what happens:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1568 => 1)) {
quest::say("I got your turn in. Here is your reward.");
quest::summonitem(1001);
}
}
If that works, then your script itself is just written wrong. If that doesn't work, then you have an issue with plugins or perl.