Honestly I have 0 reason to code it for you...
I don't use lotf and infact really dislike working with it. I'm more than willing to give some basic examples and steps you could follow but you really need to learn to code things yourself. Maybe some others here can give you some more specific advice but in the end (with this... or maybe the next npc but eventually) you will need to learn to code things yourself.
Read some coding tutorials on the forum. Try doing things on your own and put some time into it... trust me it's worth it in the end.
That being said, try searching the forum a bit more (I could have sworn it's been released before...) if not it IS working in a few different sources so you could use that as an example.
Or maybe you'll get lucky and someone will feel like posting some actual code here but imo that really doesn't help anyone... partial/pseudo code can help people figure out how to do things but just pasting full stuff just causes people to never really learn.
Excuse the bluntness... just stating an opinion.
Here are some links to get you started on stuff you should be learning.
To a lesser extent