Code:
--[[ The QuestGiver ]]--
function QuestGiver_OnSpawn(pUnit, Event)
QuestGiver = pUnit
end
RegisterUnitEvent(QUESTGIVERID, 18, "QuestGiver_OnSpawn")
--[[ Quest ]]--
function Quest_OnAccept(pUnit, Event)
QuestGiver:SpawnCreature(SPAWNEDCREATURE, x, y, z, o, faction, duration)
end
RegisterQuestEvent(QUESTID, 1, "Quest_OnAccept")
You can use it like me to Spawn a creature if you accept a q, but if you want, you can spawn a gameobject too.
(if you want to spawn a npc change the the red to your wishes.)
(change QUESTGIVERID to your MobID who has the quest, change QUESTID for the ID of your quest)