123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- --[[
- Script Name : xalieas_request.lua
- Script Purpose : Handles the quest, "Xaliea's Request"
- Script Author : vo1d
- Script Date : 10/25/2019
- Script Notes :
- Zone : Outpost of the Overlord
- Quest Giver : Priestess Xaliea
- Preceded by : None
- Followed by : None
- --]]
- local priestess_xaliea = 2780019
- local shipwrecked_explorer = 2780004
- local shipwrecked_swashbuckler = 2780005
- function Init(Quest)
- AddQuestStepKill(Quest, 1, "I need to find three bonechips for Xaliea. Perhaps I can obtain some from the undead pirates on the northeastern shore of the bay.", 3, 100, "I need to acquire three bone chips for Xaliea.", 322, shipwrecked_explorer, shipwrecked_swashbuckler)
- AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
- end
- function Accepted(Quest, QuestGiver, Player)
- FaceTarget(QuestGiver, Player)
- Conversation = CreateConversation()
-
- PlayFlavor(QuestGiver, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_secondtalk_01.mp3", "", "", 125454777, 4152864248, Player)
- AddConversationOption(Conversation, "I will do so.")
- StartConversation(Conversation, QuestGiver, Player, "I can hear them, out there in the distance. Their bones are rattling and crackling. Oh! How I want to feel them crumble beneath my grasp. Hurry up, bring me those bone chips!")
- end
- function Declined(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is declined
- end
- function Deleted(Quest, QuestGiver, Player)
- -- Remove any quest specific items here when the quest is deleted
- end
- function Step1Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I have collected the three bonechips for Xaliea.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I have the bone chips for Xaliea.")
- AddQuestStepChat(Quest, 2, "I still need to take the bone chips to Xaliea.", 1, "I should take the bone chips back to Xaliea.", 418, priestess_xaliea)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- end
- function QuestComplete(Quest, QuestGiver, Player)
- -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
- UpdateQuestStepDescription(Quest, 2, "I have given the bone chips to Xaliea.")
- UpdateQuestTaskGroupDescription(Quest, 2, "I have taken the bonechips back to Xaliea.")
- UpdateQuestDescription(Quest, "I defeated some of the local skeletons and gave Priestess Xaliea the three bone chips. This seemed to satisfy her lust for adventure.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Step1Complete(Quest, QuestGiver, Player)
- elseif Step == 2 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|