9
3

freeport_citizens_guide_to_opportunity.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : Quests/Hallmark/freeport_citizens_guide_to_opportunity.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.01 12:07:16
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Renny Parvat will tell me about collecting objects in Norrath.", 1, "I'd better read the booklet from the Overlord.", 11, 1280039)
  13. AddQuestStepZoneLoc(Quest, 2, "I must see The Execution Plaza.",10, "I'd better read the booklet from the Overlord.", 11,103.81, -22.44, 44.12,168)
  14. AddQuestStepChat(Quest, 3, "I must see Sage Navarius Orvalis in North Freeport.", 1, "I'd better read the booklet from the Overlord.", 11, 1440031)
  15. AddQuestStepZoneLoc(Quest, 4, "I should look among the scattered bones of the Siege Lands in the Commonlands.",10, "I'd better read the booklet from the Overlord.", 11,-1327.83, -79.81, -274.91,33)
  16. AddQuestStepChat(Quest, 5, "I should speak with Taskmaster's Assistant Koz'ma at the Crossroads in the Commonlands.", 1, "I'd better read the booklet from the Overlord.", 11, 330260)
  17. AddQuestStepChat(Quest, 6, "I must speak with Cannix Silverflame in the Commonlands.", 1, "I'd better read the booklet from the Overlord.", 11, 330175)
  18. AddQuestStepChat(Quest, 7, "I should speak with Lieutenant Darrius near the castle in West Freeport.", 1, "I'd better read the booklet from the Overlord.", 11, 1680056)
  19. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  22. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  23. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  24. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  25. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I've learned about collections from Mervos Stadrin.")
  29. CheckProgress(Quest, QuestGiver, Player)
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have seen the Execution Plaza.")
  33. CheckProgress(Quest, QuestGiver, Player)
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I have visited the Sage who sells books in Freeport.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I am sure to find something interesting in the Siege Lands.")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function Step5Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 5, "I've spoken with the Taskmaster.")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function Step6Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 6, "I have spoken with Cannix Silverflame.")
  49. CheckProgress(Quest, QuestGiver, Player)
  50. end
  51. function Step7Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 7, "I've spoken with Lieutenant Darrius.")
  53. CheckProgress(Quest, QuestGiver, Player)
  54. end
  55. function CheckProgress(Quest, QuestGiver, Player)
  56. if QuestStepIsComplete(Player, 5865, 1) and QuestStepIsComplete(Player, 5865, 2) and QuestStepIsComplete(Player, 5865, 3) and
  57. QuestStepIsComplete(Player, 5865, 4) and QuestStepIsComplete(Player, 5865, 5) and QuestStepIsComplete(Player, 5865, 6) and QuestStepIsComplete(Player, 5865, 7)then
  58. UpdateQuestTaskGroupDescription(Quest, 1, "I should read the Conclusion of the booklet.")
  59. AddQuestStep(Quest, 8, "I've one last page to read in my citizenship book.", 1,100, "I am better equipped to prove ways I may be useful to Freeport.",2500)
  60. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  61. end
  62. end
  63. function Accepted(Quest, QuestGiver, Player)
  64. -- Add dialog here for when the quest is accepted
  65. end
  66. function Declined(Quest, QuestGiver, Player)
  67. -- Add dialog here for when the quest is declined
  68. end
  69. function Deleted(Quest, QuestGiver, Player)
  70. -- Remove any quest specific items here when the quest is deleted
  71. end
  72. function QuestComplete(Quest, QuestGiver, Player)
  73. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  74. UpdateQuestStepDescription(Quest, 8, "Long live The Overlord!")
  75. UpdateQuestTaskGroupDescription(Quest, 2, "Being a citizen has many responsibilities for me.")
  76. UpdateQuestDescription(Quest, "This book is one more example of the Overlord's concern with the welfare of all Freeport citizens. All praise the Overlord!")
  77. GiveQuestReward(Quest, Player)
  78. end
  79. function Reload(Quest, QuestGiver, Player, Step)
  80. if Step == 1 then
  81. Step1Complete(Quest, QuestGiver, Player)
  82. elseif Step == 2 then
  83. Step2Complete(Quest, QuestGiver, Player)
  84. elseif Step == 3 then
  85. Step3Complete(Quest, QuestGiver, Player)
  86. elseif Step == 4 then
  87. Step4Complete(Quest, QuestGiver, Player)
  88. elseif Step == 5 then
  89. Step5Complete(Quest, QuestGiver, Player)
  90. elseif Step == 6 then
  91. Step6Complete(Quest, QuestGiver, Player)
  92. elseif Step == 7 then
  93. Step7Complete(Quest, QuestGiver, Player)
  94. elseif Step == 8 then
  95. QuestComplete(Quest, QuestGiver, Player)
  96. end
  97. end