fishing_hole_hunt.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --[[
  2. Script Name : Quests/Antonica/fishing_hole_hunt.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.13 06:08:18
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I must check the nearby Windstalker Village pond.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2540, -1900, 0, -660, 12)
  13. AddQuestStepZoneLoc(Quest, 2, "I should check Crater Pond near the gate to South Qeynos.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2541, 150, 0, 490, 12)
  14. AddQuestStepZoneLoc(Quest, 3, "Check the pond in Archer Woods, which is located in the southern area of Antonica.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2542, -750, 0, 450, 12)
  15. AddQuestStepZoneLoc(Quest, 4, "Visit the waterfall east of Blackburrow.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2544, -1800, 0, 800, 12)
  16. AddQuestStepZoneLoc(Quest, 5, "Check the moat at the Keep of the Gnollslayers to the south.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2547, -2100, 0, 430, 12)
  17. AddQuestStepZoneLoc(Quest, 6, "Check the moat at the Keep of the Ardent Needle, southwest of the Oracle Tower Station.", 1, "Blarton wants me to check on all of his favorite fishing spots in Antonica.", 2548, -550, 0, -330, 12)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  21. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  22. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  23. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  24. end
  25. function Accepted(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is accepted
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function Step1Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "There were plenty of fish at Windstalker Village.")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function Step2Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "There was a surprising number of fish at Crater Pond.")
  40. CheckProgress(Quest, QuestGiver, Player)
  41. end
  42. function Step3Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I didn't see any fish in the pond in Archer Woods.")
  44. CheckProgress(Quest, QuestGiver, Player)
  45. end
  46. function Step4Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 4, "There were a few fish at the waterfall near Blackburrow.")
  48. CheckProgress(Quest, QuestGiver, Player)
  49. end
  50. function Step5Complete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 5, "There are fish at the Keep of the Gnollslayers.")
  52. CheckProgress(Quest, QuestGiver, Player)
  53. end
  54. function CheckProgress(Quest, QuestGiver, Player)
  55. if QuestStepIsComplete(Player, 5337, 1) and QuestStepIsComplete(Player, 5337, 2) and QuestStepIsComplete(Player, 5337, 3) and QuestStepIsComplete(Player, 5337, 4) and QuestStepIsComplete(Player, 5337, 5) and QuestStepIsComplete(Player, 5337, 6) then
  56. UpdateQuestTaskGroupDescription(Quest, 1, "I have checked all of the fishing spots and should return to Blarton in Windstalker Village.")
  57. AddQuestStepChat(Quest, 7, "Return to Blarton in Windstalker Village.", 1, "I checked all of the fishing spots. Now I must return to Blarton in Windstalker Village.", 11, 120163)
  58. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  59. end
  60. end
  61. function Step6Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 6, "There were plenty of fish in the moat at the Keep of the Ardent Needle.")
  63. CheckProgress(Quest, QuestGiver, Player)
  64. end
  65. function QuestComplete(Quest, QuestGiver, Player)
  66. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  67. UpdateQuestStepDescription(Quest, 7, "I told Blarton what I saw at his fishing spots.")
  68. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Blarton about what I saw at his fishing spots.")
  69. UpdateQuestDescription(Quest, "I have helped Blarton Blumble and checked on all of his favorite fishing spots. Does he need me to do anything else for him?")
  70. GiveQuestReward(Quest, Player)
  71. end
  72. function Reload(Quest, QuestGiver, Player, Step)
  73. if Step == 1 then
  74. Step1Complete(Quest, QuestGiver, Player)
  75. elseif Step == 2 then
  76. Step2Complete(Quest, QuestGiver, Player)
  77. elseif Step == 3 then
  78. Step3Complete(Quest, QuestGiver, Player)
  79. elseif Step == 4 then
  80. Step4Complete(Quest, QuestGiver, Player)
  81. elseif Step == 5 then
  82. Step5Complete(Quest, QuestGiver, Player)
  83. elseif Step == 6 then
  84. Step6Complete(Quest, QuestGiver, Player)
  85. elseif Step == 7 then
  86. QuestComplete(Quest, QuestGiver, Player)
  87. end
  88. end