not sure what this part is about where did the subject lua come from? is that what you would need for the npc?
about the computercraft, you could make some sort of computer, but that would just be an interface computer where you can manualy activate doors, look into cameras, activate logic and...