If you minimize the code does it still break? I am not sure how the exp/spawnitem commands would affect the other block, but I am curious. Example:
Code:
if ($itemcount{a} == 1 &&
$itemcount{b} == 1)
{
quest::say("items handed in");
}
else
{
quest::say("got different items");
}