history_of_the_ayrdal_part_iii.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : Quests/TheFeerrott/history_of_the_ayrdal_part_iii.lua
  3. Script Author : Ememjr
  4. Script Date : 2019.03.25 06:03:41
  5. Script Purpose :
  6. Zone : TheFeerrott
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to visit The Drowning Causeway.", 10, "I must see The Drowning Causeway in the Feerrott.", 11, 105, 0, -131)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have visited The Drowning Causeway.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have seen The Drowning Causeway.")
  27. AddQuestStep(Quest, 2, "I should read the book.", 1, 100, "I should read the book now that I have a new page.", 2180)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have read the book.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have read the book.")
  33. AddQuestStepLocation(Quest, 3, "I need to visit The Jungle of Alliz Evol.", 10, "I need to visit The Jungle of Alliz Evol in the Feerrott.", 11, 10, 2, -23)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I have seen The Jungle of Alliz Evol.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I have seen The Jungle of Alliz Evol.")
  39. AddQuestStep(Quest, 4, "I should read the book.", 1, 100, "I should read the book now that I have a new page.", 2180)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "I have read the book.")
  44. UpdateQuestTaskGroupDescription(Quest, 4, "I have read the book.")
  45. AddQuestStepLocation(Quest, 5, "I need to visit Altar of the Four Canons.", 10, "I need to see the Altar of the Four Canons in the Feerrott.", 11, -730, 8, 220)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I have seen Altar of the Four Canons.")
  50. UpdateQuestTaskGroupDescription(Quest, 5, "I have seen Altar of the Four Canons.")
  51. AddQuestStep(Quest, 6, "I should read the book.", 1, 100, "I should read the book now that I have a new page.", 2180)
  52. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  56. UpdateQuestStepDescription(Quest, 6, "I have read the book.")
  57. UpdateQuestTaskGroupDescription(Quest, 6, "I have read the book.")
  58. UpdateQuestDescription(Quest, "I have finished reading this history tome. Perhaps I understand more than I did before.")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1Complete(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2Complete(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3Complete(Quest, QuestGiver, Player)
  68. elseif Step == 4 then
  69. Step4Complete(Quest, QuestGiver, Player)
  70. elseif Step == 5 then
  71. Step5Complete(Quest, QuestGiver, Player)
  72. elseif Step == 6 then
  73. QuestComplete(Quest, QuestGiver, Player)
  74. end
  75. end