TheSearchForAriana 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : the_search_for_ariana.lua
  3. Script Purpose : Handles the quest, "The Search for Ariana"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 23.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find Ariana Neovra", 1, "I need to find Ariana Neovra in the Wailing Caves.", 11, 2580021)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'll do that.")
  19. 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.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I found Ariana Neovra.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found Ariana Neovra in a cell in the Wailing Caves.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Orwen", 1, "I need to return Ariana's necklace to Orwen.", 576, 330137)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I returned to Orwen.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I returned Ariana's necklace to Orwen.")
  37. 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.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end