Fixed some chest/inventory bugs and...

started a more generic npc script that can be adjusted in the editor