12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- --[[
- Script Name : the_search_for_ariana.lua
- Script Purpose : Handles the quest, "The Search for Ariana"
- Script Author : QuestParser (Replace this)
- Script Date : 23.02.2021
- Script Notes : Auto generated with QuestParser.
- Zone : Commonlands
- Quest Giver :
- Preceded by : None
- Followed by : None
- --]]
- function Init(Quest)
- AddQuestStepChat(Quest, 1, "I need to find Ariana Neovra", 1, "I need to find Ariana Neovra in the Wailing Caves.", 11, 2580021)
- AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
- end
- function Accepted(Quest, QuestGiver, Player)
- conversation = CreateConversation()
- AddConversationOption(conversation, "I'll do that.")
- StartConversation(conversation, QuestGiver, Player, "The orcs terrify most people around here. I appreciate your courage. Go now and search for my wife and return with any information you find.")
- 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 found Ariana Neovra.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I found Ariana Neovra in a cell in the Wailing Caves.")
- AddQuestStepChat(Quest, 2, "I need to return to Orwen", 1, "I need to return Ariana's necklace to Orwen.", 576, 330137)
- 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 returned to Orwen.")
- UpdateQuestTaskGroupDescription(Quest, 2, "I returned Ariana's necklace to Orwen.")
- UpdateQuestDescription(Quest, "I found Ariana in a cell in the Wailing Caves. She sacrificed her life for the rest of her people, and agreed to stay with the orcs, halting an attack on their camp. She wanted Orwen to move on so as not to hurt himself and rekindle the orcs' threat. She gave me a necklace to give to Orwen to convince him that she wasn't alive. Orwen accepted the news and gave me the stiletto he made.")
- 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
|