I do not know if I understood the question, but anyway goes a anwser.
You can link the quest o NPC modifying the table creature_questrelation.
This table have 2 fields. They are:
- id
- quest
id:
Creature's id, related to creature_template.entry
quest:
Quest's id to which this creature is related.
Related means, that this creature starts the quest, ie acts as the questgiver.
Example:
9218 - npc
1200 - quest
INSERT INTO creature_template VALUES(9218, 1200)
This will make the NPC (9218) acts as the questgiver.
Now, to finish a quest you need bind the NPC to "questreceiver" modifying the table creature_involvedrelation.
The table creature_involvedrelation have the same structure:
- id
- quest
Also add the same line, but in different table
INSERT INTO creature_involvedrelation VALUES(9218, 1200)
P.S: In this week i will upload my new tool called MQEditor - Mangos Quest Editor.
cya...