unraveling_the_bloodsaber_plots.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : Quests/Antonica/unraveling_the_bloodsaber_plots.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.07 11:05:10
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver : Captain Eitoa
  8. Preceded by : Recovery of the Bloodsaber Plans
  9. Followed by : Into the Crypt of Betrayal
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Raid the Bloodsaber meeting and kill Riason Hanagom.", 1, 100, "I must raid the meeting of Riason Hanagom and the Bloodsabers out at the old mill of Windstalker Pond in Antonica.", 75, 120150)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "Raided the Bloodsaber meeting.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I raided the meeting of Bloodsabers at Windstalker pond and found a letter.")
  27. AddQuestStepChat(Quest, 2, "Speak to Captain Eitoa.", 1, "I must return to Captain Eitoa at the Qeynos Gates with the letter I found.", 75, 120069)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "Spoke to Captain Eitoa.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to speak with Captain Eitoa.")
  33. AddQuestStepChat(Quest, 3, "Find a scholar.", 1, "I must take the encoded message to the mages at Three Towers in Qeynos to find someone to read it.", 75, 2310081)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "Spoke to Shimmerstar.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I took the encoded message to Rune Shimmerstar to decode.")
  39. AddQuestStepChat(Quest, 4, "Speak to Captain Eitoa.", 1, "I must return to Captain Eitoa at the Qeynos Gates in Antonica with the text that Rune Shimmerstar deciphered.", 75, 120069)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "Spoke to Captain Eitoa.")
  44. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Captain Eitoa with the decoded message.")
  45. AddQuestStepKill(Quest, 5, "Slay a Bloodsaber courier.", 1, 100, "I must stop the courier from meeting with the Dark Coven along the southern road in Antonica.", 611, 1) -- NEED CORRECT ID
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "Slain a Bloodsaber courier.")
  50. UpdateQuestTaskGroupDescription(Quest, 5, "I fought and killed the Bloodsaber courier, but was too late.")
  51. AddQuestStepChat(Quest, 6, "Speak to Captain Eitoa.", 1, "I must return to Captain Eitoa at the Qeynos Gates and tell her of the messenger's success.", 11, 120069)
  52. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  56. UpdateQuestStepDescription(Quest, 6, "Spoke Captain Eitoa.")
  57. UpdateQuestTaskGroupDescription(Quest, 6, "I returned to Captain Eitoa and told her of the events that have transpired.")
  58. UpdateQuestDescription(Quest, "Now sure of the Bloodsaber's return, I am compelled to stop them from becoming a threat to our fair city of Qeynos once again. The War of Plagues will not return. There will be no future for this evil cult.")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1Complete(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2Complete(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3Complete(Quest, QuestGiver, Player)
  68. elseif Step == 4 then
  69. Step4Complete(Quest, QuestGiver, Player)
  70. elseif Step == 5 then
  71. Step5Complete(Quest, QuestGiver, Player)
  72. elseif Step == 6 then
  73. QuestComplete(Quest, QuestGiver, Player)
  74. end
  75. end