the_travelers_three_meanings_of_life_.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. --[[
  2. Script Name : the_travelers_three_meanings_of_life.lua
  3. Script Purpose : Handles the quest, "The Traveler's Three Meanings of Life"
  4. Script Author : premierio015
  5. Script Date : 15.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Nektulos Forest
  8. Quest Giver : The Traveling Augur
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to travel to Gargoyle Gorge in Nektulos Forest", 10, "The Traveling Augur is teaching me three meanings of life.", 11, -926, 79, -1605, 179)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "I just got here...oh, never mind. I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "The first meaning you must learn is the expansion of one's mind. Many times, we channel our energies toward outward manifestations of peril when in reality the greatest peril is internal. Traveling is one way to expand one's mind. Go, then, and return when you've finished your journey.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've traveled to Gargoyle Gorge")
  30. AddQuestStepZoneLoc(Quest, 2, "I need to travel to Behemoth Pond in Nektulos Forest", 10, "The Traveling Augur is teaching me three meanings of life.", 11, -236, 3, -276, 179)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've been to Behemoth Pond")
  35. AddQuestStepZoneLoc(Quest, 3, "I need to travel to N'Mar's Ascent in Nektulos Forest", 10, "The Traveling Augur is teaching me three meanings of life.", 11, -369, 12, -1214, 179)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I've traveled to N'Mar's Ascent")
  40. AddQuestStepChat(Quest, 4, "I must speak with the Traveling Augur", 1, "The Traveling Augur is teaching me three meanings of life.", 11, 1790046)
  41. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  42. end
  43. function Step4Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I've spoken with the Traveling Augur")
  45. AddQuestStep(Quest, 5, "I must separate three individual roots from Nektulos Forest's rancid roots", 3, 100, "The Traveling Augur is teaching me three meanings of life.", 198)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I've separated out individual roots")
  50. AddQuestStep(Quest, 6, "I must separate three individual plants from Nektulos Forest's assortment of fungi", 3, 100, "The Traveling Augur is teaching me three meanings of life.", 822)
  51. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  52. end
  53. function Step6Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 6, "I've separated out three individual plants")
  55. AddQuestStepChat(Quest, 7, "I must speak with the Traveling Augur", 1, "The Traveling Augur is teaching me three meanings of life.", 11, 1790046)
  56. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  57. end
  58. function Step7Complete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 7, "I've spoken with the Traveling Augur")
  60. AddQuestStepKill(Quest, 8, "Learn personal effort by hunting three ashland piranhas in Nektulos Forest", 3, 100, "The Traveling Augur is teaching me three meanings of life.", 86, 1790213)
  61. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  62. end
  63. function Step8Complete(Quest, QuestGiver, Player)
  64. UpdateQuestStepDescription(Quest, 8, "I've slain some ashland piranhas")
  65. AddQuestStepChat(Quest, 9, "I must speak with the Traveling Augur", 1, "The Traveling Augur is teaching me three meanings of life.", 11, 1790046)
  66. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  67. end
  68. function QuestComplete(Quest, QuestGiver, Player)
  69. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  70. UpdateQuestStepDescription(Quest, 9, "I've spoken with the Traveling Augur")
  71. UpdateQuestTaskGroupDescription(Quest, 1, "I've done what the Traveling Augur recommended.")
  72. UpdateQuestDescription(Quest, "Like all mystical ventures, I'm supposed to draw my own conclusions as to what I've learned about the meanings of life. I believe that being alive beats the alternative, but the Traveling Augur probably has something else in mind. At least he paid me for my time.")
  73. GiveQuestReward(Quest, Player)
  74. end
  75. function Reload(Quest, QuestGiver, Player, Step)
  76. if Step == 1 then
  77. Step1Complete(Quest, QuestGiver, Player)
  78. elseif Step == 2 then
  79. Step2Complete(Quest, QuestGiver, Player)
  80. elseif Step == 3 then
  81. Step3Complete(Quest, QuestGiver, Player)
  82. elseif Step == 4 then
  83. Step4Complete(Quest, QuestGiver, Player)
  84. elseif Step == 5 then
  85. Step5Complete(Quest, QuestGiver, Player)
  86. elseif Step == 6 then
  87. Step6Complete(Quest, QuestGiver, Player)
  88. elseif Step == 7 then
  89. Step7Complete(Quest, QuestGiver, Player)
  90. elseif Step == 8 then
  91. Step8Complete(Quest, QuestGiver, Player)
  92. elseif Step == 9 then
  93. QuestComplete(Quest, QuestGiver, Player)
  94. end
  95. end