recovery_of_the_bloodsaber_plans.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 Vermins' Snye.", 1, 100, "I need to recover a set of the Bloodsaber plans from the Vermins' Snye.", 185, 2000023)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_17.mp3", "", "", 414415751, 4251476403, Spawn)
  20. AddConversationOption(conversation, "Very well.")
  21. 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.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I recovered a set of the Bloodsaber plans.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I recovered a set of the Bloodsaber plans.")
  32. 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.
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I spoke with Wesaelan Brookshadow.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Wesaelan about the plans.")
  39. UpdateQuestDescription(Quest, "I managed to recover a set of the plans from the Bloodsabers in the Vermins' 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. <br>")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end