final ItemCollection itemsTodo = new ItemCollection();
itemsTodo.addFromQuestStateString(player.getQuest(questSlot));
if (player.drop(itemName, itemCount)) {
if (itemsTodo.removeItem(itemName, itemCount)) {
result = true;
}
} else {
/*
* handle the cases the player has part of the items or all divided