Well you would make an npc under "cq_npc" easiest/fastest thing to do is copy and NPC u like from the table and change the id name and task0 (task0 will be the action id you created) In the cq_action area you would add your actions depending on how you want ur npc set up you are also going to need to add the action ids in the cq_task table.
So back to the cq_action in the cq_action you have 6 columns id, id_next, id_nextfail, type, data, param. The tricky columns for newbies are type and data.
for type you would use these:101,102,501,502,508
101 puts the text you have in param in the top of the dialog box (basically what the npc is saying to you)
102 put the text you have in param in the dialog box area for players to click.
with 102 param you add the action id after the text so when a player clicks what they want it goes to that action.
501 is to give the item to the player
502 would be to take an item from a player
508 is used to check a players bag to see is they have room for the item
next is data for data you would put the item id you want to give(501) or take(502)
If you need farther help let me know.