recovery_of_the_bloodsaber_plans.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : recovery_of_the_bloodsaber_plans.lua
  3. Script Purpose : Handles the quest, "Recovery of the Bloodsaber Plans"
  4. Script Author : premierio015
  5. Script Date : 24.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Qeynos (The Elddar Grove), Vermin's Snye
  8. Quest Giver : Wesaelan Brookshadow
  9. Preceded by : Journal of Elkare
  10. Followed by : Unraveling the Bloodsaber Plots
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to recover illicit plans from a Bloodsaber fanatic in the Vermin's Snye.", 1, 100, "I need to recover a set of the Bloodsaber plans from the Vermin's Snye.", 185, 2000023)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Vermin's Snye")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_17.mp3", "", "", 414415751, 4251476403, Spawn)
  21. AddConversationOption(conversation, "Very well.")
  22. StartConversation(conversation, QuestGiver, Player, "Then go to the Snye and return to me with any information you can find on the Bloodsabers. We must put an end to this menace. We're counting on you, friend.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I recovered a set of the Bloodsaber plans.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I recovered a set of the Bloodsaber plans.")
  33. UpdateQuestZone(Quest,"The Eldarr Grove")
  34. AddQuestStepChat(Quest, 2, "I must speak with Wesaelan Brookshadow in the Elddar Grove.", 1, "I need to speak with Wesaelan Brookshadow about the plans I found.", 11, 2070043, 6600365) -- ID's both for old and new areas.
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I spoke with Wesaelan Brookshadow.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Wesaelan about the plans.")
  41. UpdateQuestDescription(Quest, "I managed to recover a set of the plans from the Bloodsabers in the Vermin's Snye. When I returned to Wesaelan with the letter I'd found, he told me to seek out Captain Eitoa, and give her the information that I have so far.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end