9
3

OutlandBrigadeReports.lua 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : outland_brigade_reports.lua
  3. Script Purpose : Handles the quest, "Outland Brigade Reports"
  4. Script Author : premierio015
  5. Script Date : 27.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Thundering Steppes
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to get Scout Dinardo's report. He should be watching the undead to the east.", 5, 50, "I need to find the five scouts and get their reports from them.", 185, 2490218, 2490220, 2490229, 2490151, 2490155, 2490083, 2490226, 2560000, 2490298, 2490338, 2490249, 2490137, 2490217, 2490297, 2490084, 2490098, 2490142, 2490078, 2490217, 2490218, 2490136, 2490120, 2490102, 2490123)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I found all the pieces of Scout Dinardo's report off of the skeleton general's remains.")
  27. AddQuestStepChat(Quest, 2, "I need to get Scout Kaylinn's report. She should be to the northwest watching gnolls.", 1, "I need to find the five scouts and get their reports from them.", 75, 2490684)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I received Scout Kaylinn's report.")
  32. AddQuestStepChat(Quest, 3, "I need to get Scout Deeryen's report. He should be watching giants to the south west.", 1, "I need to find the five scouts and get their reports from them.", 75, 2490685)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I received Scout Deeryen's report.")
  37. AddQuestStepChat(Quest, 4, "I need to get Scout Eldyum's report. He should be to the west watching centaurs.", 1, "I need to find the five scouts and get their reports from them.", 75, 2490686)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I received Scout Eldyum's report.")
  42. AddQuestStepChat(Quest, 5, "I need to get Scout Cendalya's report. She should be watching the sea creatures on the west coast.", 1, "I need to find the five scouts and get their reports from them.", 75, 2490687)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "I received Scout Cendalya's report.")
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I found the five scout reports.")
  48. AddQuestStepChat(Quest, 6, "I need to return the reports to Captain Sturman at Bridge Keep.", 1, "I need to return the reports to Captain Sturman at Bridge Keep.", 11, 2490194)
  49. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  50. end
  51. function QuestComplete(Quest, QuestGiver, Player)
  52. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  53. UpdateQuestStepDescription(Quest, 6, "I returned the five reports to Captain Sturman.")
  54. UpdateQuestTaskGroupDescription(Quest, 2, "I returned the five reports to Captain Sturman.")
  55. UpdateQuestDescription(Quest, "I was able to recover the five reports and return them to Sturman. It appears that one of his men, Scout Dinardo, is missing. I fear the worst concerning his safety. <br> <br>")
  56. GiveQuestReward(Quest, Player)
  57. end
  58. function Reload(Quest, QuestGiver, Player, Step)
  59. if Step == 1 then
  60. Step1Complete(Quest, QuestGiver, Player)
  61. elseif Step == 2 then
  62. Step2Complete(Quest, QuestGiver, Player)
  63. elseif Step == 3 then
  64. Step3Complete(Quest, QuestGiver, Player)
  65. elseif Step == 4 then
  66. Step4Complete(Quest, QuestGiver, Player)
  67. elseif Step == 5 then
  68. Step5Complete(Quest, QuestGiver, Player)
  69. elseif Step == 6 then
  70. QuestComplete(Quest, QuestGiver, Player)
  71. end
  72. end