9
3

double_cross__revenge.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/WailingCaves/double_cross__revenge.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.24 16:39
  5. Script Purpose :
  6. Zone : WailingCaves
  7. Quest Giver: Ariana Neovra
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Kill advisor Kre'lak.", 1, 10, "The first thing I need to do is buy some time by killing advisor Kre'lak. Then I will have enough time to warn Ariana's husband and the nomad camp.", 0, 2580019 )
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra007.mp3", "", "", 1560182233, 3773503109, Player)
  19. AddConversationOption(conversation, "I'll do what I can.")
  20. StartConversation(conversation, QuestGiver, Player, "Kill the orc advisor Kre'lak. I'm sure that will slow the orcs down long enough for my people to prepare for the attack.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have killed Kre'lak.")
  30. AddQuestStepChat(Quest, 2, "Warn Orwen Neovra.", 1, 100, "I need to warn Ariana's husband Orwen in the Commonlands of the impending attack by the orcs.", 0, 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, 3, "I have warned Orwen.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I've warned Ariana's husband Orwen, though somehow he seemed to have already known.")
  37. UpdateQuestDescription(Quest, "I was successful in each of my tasks. I took care of the orc advisor and warned her husband. Owren was in the midst of fashioning another blade and gave it to me for my continued service.")
  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