I have some A6 code that I wrote for adventure stuff with swords and stuff and it could easily have NPCs added in.

I made a small dungeon with 1 key, 1 item (a lantern), some enemies and a boss. I stopped working on it after that because my humanoid modeling skills are terrible and I could no longer bear to look at my character.

With some additions though, this might be just what you need.