9
3

welcome_to_qeynos_WillowWood.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. --[[
  2. Script Name : Quests/Hallmark/welcome_to_qeynos_WillowWood.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.28 03:10:10
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "Use the room door to be given your inn room. Click on the \"Buy\" button to get your room. Once you have purchased your room click on \"Enter\" to enter your room.", 10, "I've been instructed to sign in at the inn's guest registry in order to get the key to my room.", 11,-5.21, 0.00, 0.03,223)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Willow Wood")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("The Willow Wood is the name of the village called home by both wood elves and half elves. Qeynos is a short walk from our village. For now, you must go to your new home. The caretaker awaits you. Farewell now.")
  21. PlayFlavor(QuestGiver,"","","",0,0,Player)
  22. Dialog.AddVoiceover("voiceover/english/steward_kianoa/qey_village05/steward_kianoa004.mp3", 1374315710, 4234689234)
  23. Dialog.AddOption("Then I mustn't leave her waiting, can I? Thank you, Kianoa!")
  24. Dialog.Start()
  25. if HasQuest(Player,5717) and GetQuestStep(Player,5717)==2 then
  26. SetStepComplete(Player,5717,2)
  27. end
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've been given your inn room")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've been given the key to my room and can now come and go as I please.")
  32. AddQuestStepChat(Quest, 2, "I need to introduce myself to the caretaker.", 1, "I need to introduce myself to the caretaker",11,2230785)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've introduced myself to the caretaker of my room")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've introduced myself to the caretaker of my innroom, Ms. Fairlee.")
  38. AddQuestStep(Quest, 3, "I need to place the table in my inn room and speak with the caretaker.", 1, 100, "I've spoken with the caretaker of the inn, Fairlee. She gave me a table to put in my room, claiming that the Ironforge Exchange has offered it to me. I should place this on the floor and then continue speaking with her.",11)
  39. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  40. end
  41. function Step3Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 3, "I've placed the table and spoken with the caretaker.")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I've placed the table and spoken with the caretaker.")
  44. AddQuestStepChat(Quest, 4, "Speak with the Banker Deephathom in The Willow Wood.", 1, "Ms. Fairlee has informed me that I have a bank account waiting for me. I need to speak with the Banker Deephathom to open the account.",11,2370004)
  45. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  46. end
  47. function Step4Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 4, "I've spoken with the Banker in the Willow Wood.")
  49. UpdateQuestTaskGroupDescription(Quest, 4, "I've spoken with the Banker in the Willow Wood.")
  50. AddQuestStepChat(Quest, 5, "Return to your room and speak with Caretaker Fairlee.", 1, "I should return to the caretaker in my inn room.",11,2230785)
  51. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  52. end
  53. function Step5Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 5, "I've returned to my room and spoken with caretaker Fairlee.")
  55. UpdateQuestTaskGroupDescription(Quest, 5, "I've returned to my room and spoken with caretaker Fairlee. She gave me a painting of hers to place on my walls.")
  56. AddQuestStep(Quest, 6, "Open your inventory. \"Place\" your new painting and then speak with the caretaker.", 1,100, "Caretake Fairlee has suggested that I place the painting on my walls to liven up the place. I should place the painting and then ask her about The Baubbleshire.",0)
  57. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  58. end
  59. function Step6Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 6, "I've placed the painting and spoken with the caretaker.")
  61. UpdateQuestTaskGroupDescription(Quest, 6, "I've placed the painting and spoken with the caretaker.")
  62. AddQuestStepZoneLoc(Quest, 7, "I need to visit the gates to the Forest Ruins.",6,"\"Some people choose to adventure in the Forest Ruins. It's a dangerous place, so watch yourself. Here's where you can find the gates to the ruins. I'll show you a few other places after you take a look at the gates.\" - Ms. Fairlee", 11,883.43, -15.20, -584.80,237)
  63. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  64. end
  65. function Step7Complete(Quest, QuestGiver, Player)
  66. UpdateQuestStepDescription(Quest, 7, "I've found the gates to the Forest Ruins.")
  67. UpdateQuestTaskGroupDescription(Quest, 7, "I've visisted one of four locations Ms. Fairlee has told me about.")
  68. AddQuestStepChat(Quest, 8, "I need to introduce myself to the Willow Wood crafting trainer, Oseof Crestryder.",1,"\"Not all coin gained by refugees comes from battling vermin. Crafting is a great opportunity for some refugees to become skilled in a tradeskill. You should meet with the crafting trainer outside the Wayfarer's Stockpilers so you become familiar with where to begin a tradeskill if you so desire.\" - Ms. Fairlee", 11,2380025)
  69. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  70. end
  71. function Step8Complete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 8, "I've met with the village crafting trainer.")
  73. UpdateQuestTaskGroupDescription(Quest, 8, "I've visisted two of four locations Ms. Fairlee has told me about.")
  74. AddQuestStepZoneLoc(Quest, 9, "I need to locate the grate to the Down Below.",6,"\"Some of the more adventurous souls help keep the city clean of vermin by venturing into the catacombs. You can find the grate leading down to them if you take a close look. I'll show you where you can find the entrance to the catacombs. After that, I'll show you one more place.\" - Ms. Fairlee", 0,804.78, -20.97, -636.14,237)
  75. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  76. end
  77. function Step9Complete(Quest, QuestGiver, Player)
  78. UpdateQuestStepDescription(Quest, 9, "I've found the enterence to the Down Below.")
  79. UpdateQuestTaskGroupDescription(Quest, 9, "I've visisted three of four locations Ms. Fairlee has told me about.")
  80. AddQuestStepZoneLoc(Quest, 10, "I need to locate the gates to the Elddar Grove.",6, "\"Even though only citizens can travel into the city proper, it would be rude not to at least show where the gates to Qeynos are. I'll lead you over to where you can find the gates into the city. I should be done with fixing up the place by the time you get back.\" - Ms. Fairlee", 11,810.64, -21.30, -565.55,237)
  81. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  82. end
  83. function Step10Complete(Quest, QuestGiver, Player)
  84. UpdateQuestStepDescription(Quest, 10, "I've visited the inner city gates but was not allowed access.")
  85. UpdateQuestTaskGroupDescription(Quest, 10, "I've visisted all four locations Ms. Fairlee has told me about.")
  86. AddQuestStepChat(Quest, 11, "I need to return to my room and ask Ms. Fairlee why I can't enter the city.", 1, 100, "I should return back to my room and ask Ms. Fairlee why the guard didn't allow me to enter into the city. Hopefully she might know why.",11,2230785)
  87. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  88. end
  89. function Step11Complete(Quest, QuestGiver, Player)
  90. UpdateQuestStepDescription(Quest, 11, "I've spoken with Ms. Fairlee and have been given another piece of furniture, this time a chandelier.")
  91. UpdateQuestTaskGroupDescription(Quest, 11, "I've spoken with Ms. Fairlee and have been given another piece of furniture, this time a chandelier.")
  92. AddQuestStep(Quest, 12, "Open your inventory. \"Place\" your new chandelier and then speak with the caretaker.", 1, 100,"As if two pieces of furniture weren't enough, I now have a chandelier some neighbors brought by. I should place this on my ceiling for better lighting and then ask Ms. Fairlee why the guard said only \"citizens\" were allowed into the city.",11)
  93. AddQuestStepCompleteAction(Quest, 12, "Step12Complete")
  94. end
  95. function Step12Complete(Quest, QuestGiver, Player)
  96. UpdateQuestStepDescription(Quest, 12, "I've placed the chandelier on the ceiling and spoke with Ms. Fairlee.")
  97. UpdateQuestTaskGroupDescription(Quest, 12, "I've placed the chandelier on the ceiling and spoke with Ms. Fairlee.")
  98. AddQuestStep(Quest, 13, "Take an application from the citizenship sign, complete the task, then speak with Marshal Glorfel by using the citizenship sign again.", 1, 100,"\"If you want to deal with all the hub-bub of city life, then you'll want to go to the citizenship sign at the city gates. Pull an application from the wall and fulfill the application task, afterwards return to the sign and use it to speak with Marshal Glorfel about becoming a citizen. If you ask me, I don't know what's wrong with settling down here. It's a nice sleepy village, not troubled with excitement and danger and all that. But then again, you kids like that kind of thing. Well, good luck to you!\" - Ms. Fairlee",11)
  99. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  100. end
  101. function Step13Complete(Quest, QuestGiver, Player)
  102. UpdateQuestStepDescription(Quest, 13, "I've spoken with Marshal Glorfel and have been told how to become a citizen.")
  103. UpdateQuestTaskGroupDescription(Quest, 13, "I've spoken with Marshal Glorfel and have been told how to become a citizen.")
  104. AddQuestStepChat(Quest, 14, "Judge the traitors individually and prove your loyalty to Qeynos.", 1, 100,"Marshal Glorfel has tasked me with rendering judgment upon some treasonous residents in order to gain citizenship. He has pointed out that there are those who would betray our great city to that wretch Lucan. To prove myself, I will have to render final judgment on all of them.",11,22101350)
  105. AddQuestStepCompleteAction(Quest, 14, "QuestComplete")
  106. end
  107. function QuestComplete(Quest, QuestGiver, Player)
  108. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  109. UpdateQuestStepDescription(Quest, 14, "I have completed the Citizenship Trial and am now a citizen of Qeynos.")
  110. UpdateQuestTaskGroupDescription(Quest, 14, "I am now a citizen of Qeynos!")
  111. UpdateQuestDescription(Quest, "Thanks to the help of the inn's caretaker, I've been able to familiarize myself with the Baubbleshire. Not only did she show me the way around, she also let me know who to speak to in order to become a citizen.")
  112. GiveQuestReward(Quest, Player)
  113. end
  114. function Reload(Quest, QuestGiver, Player, Step)
  115. if Step == 1 then
  116. Step1Complete(Quest, QuestGiver, Player)
  117. elseif Step == 2 then
  118. Step2Complete(Quest, QuestGiver, Player)
  119. elseif Step == 3 then
  120. Step3Complete(Quest, QuestGiver, Player)
  121. elseif Step == 4 then
  122. Step4Complete(Quest, QuestGiver, Player)
  123. elseif Step == 5 then
  124. Step5Complete(Quest, QuestGiver, Player)
  125. elseif Step == 6 then
  126. Step6Complete(Quest, QuestGiver, Player)
  127. elseif Step == 7 then
  128. Step7Complete(Quest, QuestGiver, Player)
  129. elseif Step == 8 then
  130. Step8Complete(Quest, QuestGiver, Player)
  131. elseif Step == 9 then
  132. Step9Complete(Quest, QuestGiver, Player)
  133. elseif Step == 10 then
  134. Step10Complete(Quest, QuestGiver, Player)
  135. elseif Step == 11 then
  136. Step11Complete(Quest, QuestGiver, Player)
  137. elseif Step == 12 then
  138. Step12Complete(Quest, QuestGiver, Player)
  139. elseif Step == 13 then
  140. Step13Complete(Quest, QuestGiver, Player)
  141. elseif Step == 14 then
  142. QuestComplete(Quest, QuestGiver, Player)
  143. end
  144. end