welcome_to_qeynos_citizen.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. --[[
  2. Script Name : Quests/Hallmark/welcome_to_qeynos_citizen.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.31 12:10:43
  5. Script Purpose : Post Qeynos Citizenship Book Quest
  6. Zone : Hallmark
  7. Quest Giver: Welcome to Qeynos, Citizen!
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Mervos Stadrin in North Qeynos will tell me about collecting objects in Norrath.", 1, "I should read through my Qeynos' citizenship booklet.", 11, 2220015)
  13. AddQuestStepZoneLoc(Quest, 2, "I should pay my respects at the Claymore Plaza in North Qeynos.",10, "I should read through my Qeynos' citizenship booklet.", 11,292.73, -18.10, -20.88,222)
  14. AddQuestStepChat(Quest, 3, "I must see Sage Indis Surion in South Qeynos.", 1, "I should read through my Qeynos' citizenship booklet.", 11, 2310067)
  15. AddQuestStepZoneLoc(Quest, 4, "I should look inside the Tower of Vhalen in Antonica.",10, "I should read through my Qeynos' citizenship booklet.", 11,-1300, 38, 45,12)
  16. AddQuestStepChat(Quest, 5, "I should speak with Taskmaster Lynette in the lighthouse at Coldwind Point in Antonica.", 1, "I should read through my Qeynos' citizenship booklet.", 11, 121256)
  17. AddQuestStepChat(Quest, 6, "I must speak with Hwal Rucksif, a dwarf in Antonica.", 1, "I should read through my Qeynos' citizenship booklet.", 11, 120197)
  18. AddQuestStepChat(Quest, 7, "I should speak with Knight-Lieutenant Alesso near the castle in North Qeynos.", 1, "I should read through my Qeynos' citizenship booklet.", 11, 120083)
  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 Claymore 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 Qeynos.")
  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 Tower.")
  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 Hwal Rucksif.")
  49. CheckProgress(Quest, QuestGiver, Player)
  50. end
  51. function Step7Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 7, "I've spoken with Knight-Lieutenant Alesso.")
  53. CheckProgress(Quest, QuestGiver, Player)
  54. end
  55. function CheckProgress(Quest, QuestGiver, Player)
  56. if QuestStepIsComplete(Player, 5766, 1) and QuestStepIsComplete(Player, 5766, 2) and QuestStepIsComplete(Player, 5766, 3) and QuestStepIsComplete(Player, 5766, 4) and QuestStepIsComplete(Player, 5766, 5) and QuestStepIsComplete(Player, 5766, 6) and QuestStepIsComplete(Player, 5766, 7) then
  57. UpdateQuestTaskGroupDescription(Quest, 1, "I should read the Conclusion of the booklet.")
  58. AddQuestStep(Quest, 8, "I've one last page to read in my citizenship book.", 1,100, "I've enjoyed reading about different ways I may be useful to Qeynos.",2500)
  59. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  60. end
  61. end
  62. function Accepted(Quest, QuestGiver, Player)
  63. -- Add dialog here for when the quest is accepted
  64. end
  65. function Declined(Quest, QuestGiver, Player)
  66. -- Add dialog here for when the quest is declined
  67. end
  68. function Deleted(Quest, QuestGiver, Player)
  69. -- Remove any quest specific items here when the quest is deleted
  70. end
  71. function QuestComplete(Quest, QuestGiver, Player)
  72. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  73. UpdateQuestStepDescription(Quest, 8, "Long live Antonia Bayle!")
  74. UpdateQuestTaskGroupDescription(Quest, 2, "Being a citizen has many responsibilities for me.")
  75. UpdateQuestDescription(Quest, "While I might have learned these things on my own, it's thoughtful of the Queen to provide this information to the citizens of Qeynos. Long live Antonia Bayle!")
  76. GiveQuestReward(Quest, Player)
  77. end
  78. function Reload(Quest, QuestGiver, Player, Step)
  79. if Step == 1 then
  80. Step1Complete(Quest, QuestGiver, Player)
  81. elseif Step == 2 then
  82. Step2Complete(Quest, QuestGiver, Player)
  83. elseif Step == 3 then
  84. Step3Complete(Quest, QuestGiver, Player)
  85. elseif Step == 4 then
  86. Step4Complete(Quest, QuestGiver, Player)
  87. elseif Step == 5 then
  88. Step5Complete(Quest, QuestGiver, Player)
  89. elseif Step == 6 then
  90. Step6Complete(Quest, QuestGiver, Player)
  91. elseif Step == 7 then
  92. Step7Complete(Quest, QuestGiver, Player)
  93. elseif Step == 8 then
  94. QuestComplete(Quest, QuestGiver, Player)
  95. end
  96. end