added logic to get items from npcs