Code: Select all
--[[
Script Name: Spirit of the Maiar
Script Purpose: Give player the Ascension Quest
Script Author: Astal
Script Date: 2009.09.27
Quest ID: 1
Zone: Queens Colony
Preceded By:
Followed By:
--]]
function respawn(NPC)
spawn(NPC)
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "What is Ascension?", "WhatIsAscension")
AddConversationOption(conversation, "Yes", "Yes")
AddConversationOption(conversation, "No", "No")
StartConversation(conversation, NPC, Spawn, "Welcome " .. GetName(Spawn) .. ", do you come seeking Ascension?")
end
-----------------------------------------------------------------------------
-- functions to handle the extended conversations from hailed
-----------------------------------------------------------------------------
function WhatIsAscension(NPC, Spawn)
FaceTarget(NPC, Spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "Thank You!")
StartConversation(conversation, NPC, Spawn, "Ascension is being transformed in to a more powerful being such as myself, it is not an easy task, but in the end it is well worth it.")
end
function No(NPC, Spawn)
FaceTarget(NPC, Spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "Thank you!")
StartConversation(conversation, NPC, Spawn, "Under Construction! 3")
end
-----------------------------------------------------------------------------
-- Ascension Quest
-----------------------------------------------------------------------------
function Yes(NPC, Spawn)
FaceTarget(NPC, Spawn)
Init(Quest)
end

