I'm new to modding, so I'm hoping someone can point me in the right direction.

Essentially I'm trying to figure out how this happens: In the Thieves guild, you can sell certain treasures to Delvin, and they show up on display in the main room. How/where do I find that script? I'd like to modify it so that you give an item to an npc (say a certain book) and it gets removed from your inventory then the appropriate book goes on display. Any help would be greatly appreciated.
~b
