added inventory helper (since npc and containers share same way of
handling items)