fixed logic trigger and order bug, improved npcs again, fixed spawn