ozma - 2015-06-22

A very interesting idea, but the coding of this would be (beyond my capacity surely) but very difficult indeed!
The only advice I would have is look at all the NPC's (nonplayer characters like shopkeepers, oracle, gypsy, magic memory vault guards, demon guardians that you can bribe, and maybe the convict bribe guard code) to determine how you could get a (hobbit asks question instead of guard asks name) or something, but the trigger and spawn of a specific item (after acceptance of the quest) might be a bit more difficult, maybe even impossible.
Maybe you could ask the Creator of A.D.O.M. how he got quest possibilities and quests and item/monster/cave spawns to work.