aquatic_research_notebook.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : aquatic_research_notebook.lua
  3. Script Purpose : Handles the quest, "Aquatic Research Notebook"
  4. Script Author : Request
  5. Script Date : 11/2/2019
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Outpost of the Overlord
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to hunt a shoal glider.", 1, 100, "I need to hunt and collect the four different types of animals mentioned in the notebook.", 168, 2780012)
  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 have the body of a shoal glider.")
  27. AddQuestStepKill(Quest, 2, "I need to hunt a needlefang.", 1, 100, "I need to hunt and collect the four different types of animals mentioned in the notebook.", 86, 2780024)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have the body of a needlefang.")
  32. AddQuestStepKill(Quest, 3, "I need to hunt a reef turtle.", 1, 100, "I need to hunt and collect the four different types of animals mentioned in the notebook.", 158, 2780016)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I have the body of a reef turtle.")
  37. AddQuestStepKill(Quest, 4, "I need to hunt a sandstalker.", 1, 100, "I need to hunt and collect the four different types of animals mentioned in the notebook.", 172, 2780023, 2780032)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I have the body of a sandstalker.")
  42. UpdateQuestTaskGroupDescription(Quest, 1, "I found the four types of animals listed in the notebook.")
  43. AddQuestStepChat(Quest, 5, "I need to take these specimens to Sythor the All-Seeing.", 1, "I need to take the collected specimens to Sythor the All-Seeing.", 11, 2780041)
  44. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  48. UpdateQuestStepDescription(Quest, 5, "I took the animal bodies to Sythor the All-Seeing.")
  49. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered the four animal specimens to Sythor the All-Seeing.")
  50. UpdateQuestDescription(Quest, "I talked to Sythor the All-Seeing at the top of his tower at outpost. Apparently his apprentice, Ludz, was an irresistible treat for the sandstalkers. He gave me the reward that he had originally planned to give to Ludz.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. Step4Complete(Quest, QuestGiver, Player)
  62. elseif Step == 5 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end