ProofisinthePudding.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : Quests/Commonlands/ProofisinthePudding.lua
  3. Script Purpose : Handles the quest, "Proof is in the Pudding"
  4. Script Author : premierio015
  5. Script Date : 06.01.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : J.P. Feterman
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to find The Graveyard entrance north of the Freeport gates", 25, "I am tasked with exploring The Commonlands. I am to find the entrance to The Graveyard, a tower far to the southeast of the crossroads near a river, the killer wasp mound, the Wailing Caves and the entrance to Nektulos Forest.", 11, -1363, -83, -345)
  14. AddQuestStepLocation(Quest, 2, "I need to find an old tower far to the southeast, near a river", 25, "I am tasked with exploring The Commonlands. I am to find the entrance to The Graveyard, a tower far to the southeast of the crossroads near a river, the killer wasp mound, the Wailing Caves and the entrance to Nektulos Forest.", 11, -1330, -52, 577)
  15. AddQuestStepLocation(Quest, 3, "I need to find the killer wasp mound southwest of the Crossroads", 25, "I am tasked with exploring The Commonlands. I am to find the entrance to The Graveyard, a tower far to the southeast of the crossroads near a river, the killer wasp mound, the Wailing Caves and the entrance to Nektulos Forest.", 11, -0, -35, 21)
  16. AddQuestStepLocation(Quest, 4, "I need to find The Wailing Caves north of the Crossroads", 25, "I am tasked with exploring The Commonlands. I am to find the entrance to The Graveyard, a tower far to the southeast of the crossroads near a river, the killer wasp mound, the Wailing Caves and the entrance to Nektulos Forest.", 11, -209, -43, -915)
  17. AddQuestStepLocation(Quest, 5, "I need to find the entrance to Nektulos Forest far to the west", 25, "I am tasked with exploring The Commonlands. I am to find the entrance to The Graveyard, a tower far to the southeast of the crossroads near a river, the killer wasp mound, the Wailing Caves and the entrance to Nektulos Forest.", 11, 1116, -42, -636)
  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. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "Alright.")
  28. StartConversation(conversation, QuestGiver, Player, "Some day a long, long time from now, when you're as experienced as I, you'll know these places like the back of your hand. Run along now!")
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. -- Add dialog here for when the quest is declined
  32. end
  33. function Deleted(Quest, QuestGiver, Player)
  34. -- Remove any quest specific items here when the quest is deleted
  35. end
  36. function Step1Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 1, "I found The Graveyard.")
  38. CheckProgress(Quest, QuestGiver, Player)
  39. end
  40. function Step2Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I found the old tower near the river.")
  42. CheckProgress(Quest, QuestGiver, Player)
  43. end
  44. function Step3Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 3, "I found the killer wasp mound southwest of the Crossroads.")
  46. CheckProgress(Quest, QuestGiver, Player)
  47. end
  48. function Step4Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 4, "I found The Wailing Caves.")
  50. CheckProgress(Quest, QuestGiver, Player)
  51. end
  52. function Step5Complete(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 5, "I have found the entrance to Nektulos.")
  54. CheckProgress(Quest, QuestGiver, Player)
  55. end
  56. function CheckProgress(Quest, QuestGiver, Player)
  57. if QuestStepIsComplete(Player, 417, 1) and QuestStepIsComplete(Player, 417, 2) and QuestStepIsComplete(Player, 417, 3) and QuestStepIsComplete(Player, 417, 4) and QuestStepIsComplete(Player, 417, 5) then
  58. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to locate all of the areas Feterman spoke of.")
  59. AddQuestStepChat(Quest, 6, "I should speak with J.P. Feterman", 1, "I have explored The Commonlands. I should return to J.P. Feterman.", 11, 330261)
  60. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  61. end
  62. end
  63. function QuestComplete(Quest, QuestGiver, Player)
  64. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  65. UpdateQuestStepDescription(Quest, 6, "I spoke with J.P. Feterman.")
  66. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to J.P. Feterman at the Crossroads.")
  67. UpdateQuestDescription(Quest, "I have explored the commonlands. I should return to J.P. Feterman at the Crossroads.")
  68. GiveQuestReward(Quest, Player)
  69. end
  70. function Reload(Quest, QuestGiver, Player, Step)
  71. if Step == 1 then
  72. Step1Complete(Quest, QuestGiver, Player)
  73. elseif Step == 2 then
  74. Step2Complete(Quest, QuestGiver, Player)
  75. elseif Step == 3 then
  76. Step3Complete(Quest, QuestGiver, Player)
  77. elseif Step == 4 then
  78. Step4Complete(Quest, QuestGiver, Player)
  79. elseif Step == 5 then
  80. Step5Complete(Quest, QuestGiver, Player)
  81. elseif Step == 6 then
  82. QuestComplete(Quest, QuestGiver, Player)
  83. end
  84. end