9
3

VindainGreenfaith.lua 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. --[[
  2. Script Name : SpawnScripts/Castleview/VindainGreenfaith.lua
  3. Script Purpose : Vindain Greenfaith <High Elf Mentor>
  4. Script Author : Scatman
  5. Script Date : 2009.10.02
  6. Script Notes : Updated by Jabantiz (4/24/2017)
  7. --]]
  8. local HIGHELF = 8
  9. local ComponentsOfGrowth = 223
  10. local SowingBeauty = 224
  11. local TargetingCorruption = 225
  12. local TheCommune = 226
  13. local SendingWord = 227
  14. function spawn(NPC)
  15. ProvidesQuest(NPC, ComponentsOfGrowth)
  16. ProvidesQuest(NPC, SowingBeauty)
  17. ProvidesQuest(NPC, TargetingCorruption)
  18. ProvidesQuest(NPC, TheCommune)
  19. ProvidesQuest(NPC, SendingWord)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function hailed(NPC, Spawn)
  25. if GetRace(Spawn) == HIGHELF then
  26. Begin(NPC, Spawn)
  27. else
  28. NotHighElf(NPC, Spawn)
  29. end
  30. end
  31. function NotHighElf(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/qst_vindain_nothighelf_57692d23.mp3", "The Koada'Dal need heroes and leaders like myself, now more than ever. But I am here for them, my friend, and cannot help you now.", "", 2055920001, 877280336, Spawn)
  34. end
  35. function Begin(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. if HasCompletedQuest(Spawn, ComponentsOfGrowth) then
  39. if HasCompletedQuest(Spawn, SowingBeauty) then
  40. if HasCompletedQuest(Spawn, TargetingCorruption) then
  41. if HasCompletedQuest(Spawn, TheCommune) then
  42. if HasCompletedQuest(Spawn, SendingWord) then
  43. SpokenWithAdalinYet(NPC, Spawn, conversation)
  44. elseif HasQuest(Spawn, SendingWord) then
  45. SpokenWithAdalinYet(NPC, Spawn, conversation)
  46. else
  47. SpokenWithSpiritYet(NPC, Spawn, conversation)
  48. end
  49. elseif HasQuest(Spawn, TheCommune) then
  50. SpokenWithSpiritYet(NPC, Spawn, conversation)
  51. else
  52. GreenMistCleared(NPC, Spawn, conversation)
  53. end
  54. elseif HasQuest(Spawn, TargetingCorruption) then
  55. GreenMistCleared(NPC, Spawn, conversation)
  56. else
  57. PlantedBushesYet(NPC, Spawn, conversation)
  58. end
  59. elseif HasQuest(Spawn, SowingBeauty) then
  60. PlantedBushesYet(NPC, Spawn, conversation)
  61. else
  62. GatheredComponentsYet(NPC, Spawn, conversation)
  63. end
  64. elseif HasQuest(Spawn, ComponentsOfGrowth) then
  65. GatheredComponentsYet(NPC, Spawn, conversation)
  66. else
  67. KoadaDalNeedYou(NPC, Spawn, conversation)
  68. end
  69. end
  70. ----------------------------------------------------------------------------------------------------------------
  71. -- QUEST 1
  72. ----------------------------------------------------------------------------------------------------------------
  73. function KoadaDalNeedYou(NPC, Spawn, conversation)
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain001.mp3", "", "", 3275063525, 1876910304, Spawn)
  75. AddConversationOption(conversation, "I do not deny my help.", "DoNotDeny")
  76. AddConversationOption(conversation, "Koada'Dal?", "KoadaDal")
  77. AddConversationOption(conversation, "I will choose when and where to offer my help.")
  78. StartConversation(conversation, NPC, Spawn, "The Koada'Dal need you, do you deny them your help?")
  79. end
  80. function DoNotDeny(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain005.mp3", "", "", 2071218193, 1536623710, Spawn)
  84. AddConversationOption(conversation, "Did you fight?", "DidYouFight")
  85. StartConversation(conversation, NPC, Spawn, "I am glad to hear that. In ages past the Koada'Dal have rallied to Tunare's aid. We have fought--and died--in countless wars against forces both small and great. This was our charge and we accepted it without hesitation or regret.")
  86. end
  87. function DidYouFight(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain006.mp3", "", "", 558239952, 3089092887, Spawn)
  91. AddConversationOption(conversation, "How will we bring about a rebirth for our people?", "RebirthForOurPeople")
  92. AddConversationOption(conversation, "Did you need help or not?", "DidYouNeedHelp")
  93. StartConversation(conversation, NPC, Spawn, "Not in any of the great wars, no. Though I had more than my share of battle. And now, here we are, a displaced people. We rest within the walls of Qeynos as if refugees. And, though it is a bitter taste to even speak it, we are refugees. Our time has gone and not yet come again, " .. GetName(Spawn) .. ".")
  94. end
  95. function RebirthForOurPeople(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain007.mp3", "", "", 2133745057, 422152869, Spawn)
  99. AddConversationOption(conversation, "How do you cope?", "HowDoYouCope")
  100. StartConversation(conversation, NPC, Spawn, "That is not for me to know or plan, I leave that to the scholars. Me, all I can do is wait for our time. It is a heavy burden on one's soul, to wait for a time you may not ever see.")
  101. end
  102. function HowDoYouCope(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain008.mp3", "", "", 2132206040, 1773497371, Spawn)
  106. AddConversationOption(conversation, "The reasons alone mean that those who see it will be helped.", "TheReasonsAlone")
  107. StartConversation(conversation, NPC, Spawn, "Heh... I try to bring my people closer to themselves. It is a thankless duty, and may not even help, but it is all I can do.")
  108. end
  109. function TheReasonsAlone(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain009.mp3", "", "", 3987444274, 3750842326, Spawn)
  113. AddConversationOption(conversation, "I would like to help out around here.", "IWouldLikeToHelp")
  114. AddConversationOption(conversation, "Who are your contacts?", "WhoAreYourContacts")
  115. AddConversationOption(conversation, "Not now, thanks.")
  116. StartConversation(conversation, NPC, Spawn, "I am glad to hear you say that. Would you like to give some effort of your own to help our people? There are tasks around here that must be attended to, or I have contacts if you're interested in something more adventurous. What say you?")
  117. end
  118. function IWouldLikeToHelp(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain011.mp3", "", "", 2903193382, 1971757298, Spawn)
  122. AddConversationOption(conversation, "Sure, I am willing to do that.", "SureIAmWilling")
  123. AddConversationOption(conversation, "What are Green Wisps?", "DidYouNeedHelp")
  124. StartConversation(conversation, NPC, Spawn, "That is good. Our people are not as strong in spirit as we once were. Every little thing we do helps, or so I believe. One plan I have had to help our people is to plant more Green Wisp bushes around Castleview Hamlet. I believe this would be a perfect job for you, what do you say?")
  125. end
  126. function SureIAmWilling(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain013.mp3", "", "", 344140216, 1983346323, Spawn)
  130. AddConversationOption(conversation, "And the blessed water?", "AndTheBlessedWater")
  131. StartConversation(conversation, NPC, Spawn, "Good. You will need Green Wisp seeds, some enriched soil, and blessed water. The seeds you can get from the Green Wisps that surround the Fountain of Valor. The soil you can get from a barrel that holds it, northwest of the armor shop on the level above this one.")
  132. end
  133. function AndTheBlessedWater(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain014.mp3", "", "", 1499994650, 3739794099, Spawn)
  137. AddConversationOption(conversation, "All right.", "OfferQuest1")
  138. StartConversation(conversation, NPC, Spawn, "Collect some blessed water from the Fountain of Valor. Examine the flask while near it to do so.")
  139. end
  140. function KoadaDal(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain002.mp3", "", "", 1275465348, 3317665592, Spawn)
  144. AddConversationOption(conversation, "I have not, what does it mean?", "WhatDoesItMean")
  145. AddConversationOption(conversation, "Oh, I've heard it. I was just joking. Sorry.", "JustJoking")
  146. StartConversation(conversation, NPC, Spawn, "You cannot be serious. From where were you raised? Have you, in seriousness, not heard that term before?")
  147. end
  148. function WhatDoesItMean(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain004.mp3", "", "", 3729119270, 3986173886, Spawn)
  152. AddConversationOption(conversation, "I am Koada'Dal. What can I do?", "DoNotDeny")
  153. AddConversationOption(conversation, "I will leave for now then.")
  154. StartConversation(conversation, NPC, Spawn, "By Tunare, when did it all go so wrong? Koada'Dal... this is you, this is me, this is all of our people. Though, and some would disagree with me on this, there is a difference between a high elf and a Koada'Dal. True Koada'Dal know their lives are forfeit if it is the will of Tunare. High elves... well they're just humans with pointy ears.")
  155. end
  156. function JustJoking(NPC, Spawn)
  157. FaceTarget(NPC, Spawn)
  158. conversation = CreateConversation()
  159. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain003.mp3", "", "", 934395148, 2380624550, Spawn)
  160. AddConversationOption(conversation, "I apologize, I wish to help.", "DoNotDeny")
  161. StartConversation(conversation, NPC, Spawn, "Jokes are for those who lack the bravery to take action when it is needed. You do what you like, I will be busy helping our people.")
  162. end
  163. function DidYouNeedHelp(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. conversation = CreateConversation()
  166. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain012.mp3", "", "", 4192139867, 2744580245, Spawn)
  167. AddConversationOption(conversation, "Yes.", "SureIAmWilling")
  168. AddConversationOption(conversation, "No, not right now.")
  169. StartConversation(conversation, NPC, Spawn, "Green Wisps are the beautiful bushes that once adorned the noble houses of Felwithe. They spend most of the day as any other plant, but as day turns to night and night turns to day they glow with a pulsing green light. It is breathtaking. I wish to spread them around Felw- er, around Castleview Hamlet for all to see. Will you help me?")
  170. end
  171. function WhoAreYourContacts(NPC, Spawn)
  172. FaceTarget(NPC, Spawn)
  173. conversation = CreateConversation()
  174. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain010.mp3", "", "", 3834761356, 938291768, Spawn)
  175. AddConversationOption(conversation, "I will find him, thank you.")
  176. StartConversation(conversation, NPC, Spawn, "They are currently in Oakmyst Forest. They should not be hard to find, speak with Adalin Emerael just within Oakmyst, he will point you in the right direction.")
  177. end
  178. function OfferQuest1(NPC, Spawn)
  179. FaceTarget(NPC, Spawn)
  180. OfferQuest(NPC, Spawn, ComponentsOfGrowth)
  181. end
  182. function GatheredComponentsYet(NPC, Spawn, conversation)
  183. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain015.mp3", "", "", 3988898427, 1857718440, Spawn)
  184. if (HasQuest(Spawn, ComponentsOfGrowth) and QuestStepIsComplete(Spawn, ComponentsOfGrowth, 1) and QuestStepIsComplete(Spawn, ComponentsOfGrowth, 2) and QuestStepIsComplete(Spawn, ComponentsOfGrowth, 3) and GetQuestStep(Spawn, ComponentsOfGrowth) == 4) or HasCompletedQuest(Spawn, ComponentsOfGrowth) then
  185. AddConversationOption(conversation, "Yes, I have.", "GotComponents")
  186. end
  187. AddConversationOption(conversation, "I need the water flask.", "NeedWaterFlask")
  188. AddConversationOption(conversation, "No, not yet.")
  189. StartConversation(conversation, NPC, Spawn, "Have you gathered the components yet?")
  190. end
  191. function NeedWaterFlask(NPC, Spawn)
  192. FaceTarget(NPC, Spawn)
  193. conversation = CreateConversation()
  194. -- Water Flask
  195. if HasItem(Spawn, 15337, 1) then
  196. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain017.mp3", "", "", 1348687410, 1688928730, Spawn)
  197. AddConversationOption(conversation, "All right.")
  198. StartConversation(conversation, NPC, Spawn, "I believe you already have it. Please check all of your bags, it may even be in the bank. Once you find it, get close to the Fountain of Valor and examine it.")
  199. else
  200. AddConversationOption(conversation, "Thanks you.")
  201. StartConversation(conversation, NPC, Spawn, "Certainly, here you are.")
  202. SummonItem(Spawn, 15337, 1)
  203. end
  204. end
  205. function GotComponents(NPC, Spawn)
  206. if HasQuest(Spawn, ComponentsOfGrowth) then
  207. SetStepComplete(Spawn, ComponentsOfGrowth, 4)
  208. end
  209. ReadyForNextStep(NPC, Spawn)
  210. end
  211. ----------------------------------------------------------------------------------------------------------------
  212. -- QUEST 2
  213. ----------------------------------------------------------------------------------------------------------------
  214. function ReadyForNextStep(NPC, Spawn)
  215. FaceTarget(NPC, Spawn)
  216. conversation = CreateConversation()
  217. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain018.mp3", "", "", 3208917088, 31436847, Spawn)
  218. AddConversationOption(conversation, "Sure.", "SureQuest2")
  219. AddConversationOption(conversation, "Not right now.")
  220. StartConversation(conversation, NPC, Spawn, "Excellent. You are ready for the next step. There are eight planters around Castleview Hamlet. Currently, each has a tree in it. I would like you to plant Green Mists in them as well. Between the enriched soil and the blessed water it should not be too difficult. What do you say?")
  221. end
  222. function SureQuest2(NPC, Spawn)
  223. FaceTarget(NPC, Spawn)
  224. conversation = CreateConversation()
  225. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain019.mp3", "", "", 2622235887, 2432498099, Spawn)
  226. AddConversationOption(conversation, "I can go plant them now.", "OfferQuest2")
  227. StartConversation(conversation, NPC, Spawn, "Great. There are eight planters: two on the south western corner of the inn, two north of the bank, one on the north west corner of the scribe's shop, one west of the scribe's shop on the level below it, and two north of the armor shop on the level above our current one.")
  228. end
  229. function OfferQuest2(NPC, Spawn)
  230. FaceTarget(NPC, Spawn)
  231. OfferQuest(NPC, Spawn, SowingBeauty)
  232. end
  233. function PlantedBushesYet(NPC, Spawn, conversation)
  234. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain020.mp3", "", "", 1860236238, 2496988444, Spawn)
  235. if (HasCompletedQuest(Spawn, SowingBeauty) and not HasCompletedQuest(Spawn, TargetingCorruption)) or (HasQuest(Spawn, SowingBeauty) and GetQuestStep(Spawn, SowingBeauty) == 9) then
  236. AddConversationOption(conversation, "Yes, I have, there was a problem.", "dlg_19_1")
  237. else
  238. AddConversationOption(conversation, "No, not yet.")
  239. end
  240. StartConversation(conversation, NPC, Spawn, "Have you planted all of the Green Mist bushes?")
  241. end
  242. function dlg_19_1(NPC, Spawn)
  243. if HasQuest(Spawn, SowingBeauty) then
  244. SetStepComplete(Spawn, SowingBeauty, 9)
  245. end
  246. FaceTarget(NPC, Spawn)
  247. conversation = CreateConversation()
  248. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain021.mp3", "", "", 1190805988, 2574516810, Spawn)
  249. AddConversationOption(conversation, "When I tried to plant the seed at the planter north west of the scribe's shop part of the plant came alive and attacked me.", "dlg_19_2")
  250. StartConversation(conversation, NPC, Spawn, "Oh? Nothing serious I hope.")
  251. end
  252. --------------------------------------------------------------------------------------------------------------
  253. -- QUEST 3
  254. --------------------------------------------------------------------------------------------------------------
  255. function dlg_19_2(NPC, Spawn)
  256. FaceTarget(NPC, Spawn)
  257. conversation = CreateConversation()
  258. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain022.mp3", "", "", 2234653654, 1673262997, Spawn)
  259. AddConversationOption(conversation, "It looks corrupted.", "dlg_19_3")
  260. StartConversation(conversation, NPC, Spawn, "By Tunare! How could that have happened? You seem all right, how is the plant?")
  261. end
  262. function dlg_19_3(NPC, Spawn)
  263. FaceTarget(NPC, Spawn)
  264. conversation = CreateConversation()
  265. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain023.mp3", "", "", 1015908882, 1417407767, Spawn)
  266. AddConversationOption(conversation, "Yes, I will.", "OfferQuest3")
  267. AddConversationOption(conversation, "No, not right now.")
  268. StartConversation(conversation, NPC, Spawn, "We must fix this, " .. GetName(Spawn) .. ". I know someone who can help. Shae'Ahla, you will find her northeast of the entrance to Qeynos Harbor. If anyone can help cleanse the Green Mist she can. Will you seek her out?")
  269. end
  270. function OfferQuest3(NPC, Spawn)
  271. FaceTarget(NPC, Spawn)
  272. OfferQuest(NPC, Spawn, TargetingCorruption)
  273. end
  274. function GreenMistCleared(NPC, Spawn, conversation)
  275. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain025.mp3", "", "", 3990599486, 444977837, Spawn)
  276. if (HasCompletedQuest(Spawn, TargetingCorruption) and not HasCompletedQuest(Spawn, TheCommune)) or (HasQuest(Spawn, TargetingCorruption) and GetQuestStep(Spawn, TargetingCorruption) == 3) then
  277. AddConversationOption(conversation, "Yes, a sprite attacked me as I cleansed it.", "dlg_22_1")
  278. else
  279. AddConversationOption(conversation, "Not, not yet.")
  280. end
  281. StartConversation(conversation, NPC, Spawn, "Has the Green Mist been cleansed?")
  282. end
  283. function dlg_22_1(NPC, Spawn)
  284. SetStepComplete(Spawn, TargetingCorruption, 3)
  285. FaceTarget(NPC, Spawn)
  286. conversation = CreateConversation()
  287. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain026.mp3", "", "", 622027382, 4205976531, Spawn)
  288. AddConversationOption(conversation, "Yes, I did.", "dlg_22_2")
  289. AddConversationOption(conversation, "No, I did not.", "DidNotKillSprite")
  290. StartConversation(conversation, NPC, Spawn, "A sprite? Here? That must be what caused the corruption, then. Originally I had actually suspected the alchemists to have been dumping chemicals in the planter outside their shop, I am relieved to know that this probably isn't the case. But this sprite... that is unfortunate. Did you kill it?")
  291. end
  292. -------------------------------------------------------------------------------------------------------------
  293. -- QUEST 4
  294. --------------------------------------------------------------------------------------------------------------
  295. function DidNotKillSprite(NPC, Spawn)
  296. FaceTarget(NPC, Spawn)
  297. conversation = CreateConversation()
  298. AddConversationOption(conversation, "You could not have known.", "dlg_22_3")
  299. AddConversationOption(conversation, "It was not your fault.", "dlg_22_3")
  300. AddConversationOption(conversation, "It is all right.", "dlg_22_3")
  301. StartConversation(conversation, NPC, Spawn, "I don't suppose that will matter much now. If you cleansed her charge she will have likely died shortly thereafter. I cannot believe this, I sent you out to plant, to encourage growth, and now you have indirectly caused death. I am sorry.")
  302. end
  303. function dlg_22_2(NPC, Spawn)
  304. FaceTarget(NPC, Spawn)
  305. conversation = CreateConversation()
  306. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain028.mp3", "", "", 1775941301, 1525044387, Spawn)
  307. AddConversationOption(conversation, "You could not have known.", "dlg_22_3")
  308. AddConversationOption(conversation, "It was not your fault.", "dlg_22_3")
  309. AddConversationOption(conversation, "It is all right.", "dlg_22_3")
  310. StartConversation(conversation, NPC, Spawn, "By Tunare... I sent you out to plant, to cause growth, and now I have forced you to cause death instead. I am so sorry, " .. GetName(Spawn) .. ".")
  311. end
  312. function dlg_22_3(NPC, Spawn)
  313. FaceTarget(NPC, Spawn)
  314. conversation = CreateConversation()
  315. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain029.mp3", "", "", 2832440299, 4280395631, Spawn)
  316. AddConversationOption(conversation, "I can.", "OfferQuest4")
  317. AddConversationOption(conversation, "I can not.", "dlg_22_4")
  318. StartConversation(conversation, NPC, Spawn, "You must seek out the spirit of this sprite. It will remain near her charge. Speak with it, perhaps you can ease your mind. Maybe we will even learn why she did it. Can you do this?")
  319. end
  320. function OfferQuest4(NPC, Spawn)
  321. FaceTarget(NPC, Spawn)
  322. OfferQuest(NPC, Spawn, TheCommune)
  323. end
  324. function SpokenWithSpiritYet(NPC, Spawn, conversation)
  325. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain031.mp3", "", "", 3214169408, 3875873368, Spawn)
  326. if (HasCompletedQuest(Spawn, TheCommune) and not HasCompletedQuest(Spawn, SendingWord)) or (HasQuest(Spawn, TheCommune) and GetQuestStep(Spawn, TheCommune) == 2) then
  327. AddConversationOption(conversation, "I have.", "dlg_25_1")
  328. else
  329. AddConversationOption(conversation, "I haven't yet.")
  330. end
  331. StartConversation(conversation, NPC, Spawn, "Have you spoken with the spirit?")
  332. end
  333. function dlg_25_1(NPC, Spawn)
  334. FaceTarget(NPC, Spawn)
  335. conversation = CreateConversation()
  336. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain032.mp3", "", "", 2910726024, 1590892637, Spawn)
  337. AddConversationOption(conversation, "She said she was sorry.", "dlg_25_2")
  338. StartConversation(conversation, NPC, Spawn, "And what did she say?")
  339. end
  340. function dlg_25_2(NPC, Spawn)
  341. FaceTarget(NPC, Spawn)
  342. conversation = CreateConversation()
  343. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain033.mp3", "", "", 3033520362, 3912252683, Spawn)
  344. AddConversationOption(conversation, "She mentioned never being able to see Oakmyst Forest again.", "dlg_25_3")
  345. StartConversation(conversation, NPC, Spawn, "I am not surprised. In death, for true creatures of Tunare, all corruption is purged.")
  346. end
  347. function dlg_25_3(NPC, Spawn)
  348. if HasQuest(Spawn, TheCommune) then
  349. SetStepComplete(Spawn, TheCommune, 2)
  350. end
  351. FaceTarget(NPC, Spawn)
  352. conversation = CreateConversation()
  353. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain034.mp3", "", "", 2141460256, 860400107, Spawn)
  354. AddConversationOption(conversation, "She mentioned thin green thread while she was corrupted. What did that mean?", "dlg_25_4")
  355. StartConversation(conversation, NPC, Spawn, "I was afraid of this... a sunshimmer sprite.")
  356. end
  357. ------------------------------------------------------------------------------------------------------------------------------
  358. -- QUEST 5
  359. ------------------------------------------------------------------------------------------------------------------------------
  360. function dlg_25_4(NPC, Spawn)
  361. FaceTarget(NPC, Spawn)
  362. conversation = CreateConversation()
  363. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain035.mp3", "", "", 405362245, 656678829, Spawn)
  364. AddConversationOption(conversation, "Yes.", "dlg_25_5")
  365. AddConversationOption(conversation, "I can not.")
  366. StartConversation(conversation, NPC, Spawn, "The thin green thread... it represents an unwavering connection with Tunare. She was strong, her death is unfortunate." .. GetName(Spawn) .. ". we must not idle. Will you carry the news of this event to Oakmyst Forest?")
  367. end
  368. function dlg_25_5(NPC, Spawn)
  369. FaceTarget(NPC, Spawn)
  370. conversation = CreateConversation()
  371. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain035a.mp3", "", "", 2092202853, 2822343063, Spawn)
  372. AddConversationOption(conversation, "All right.", "OfferQuest5")
  373. StartConversation(conversation, NPC, Spawn, "Thank you. Please, travel to Oakmyst Forest and speak with Adalin Emerael. Tell him what has occurred here, he will know what to do.")
  374. end
  375. function OfferQuest5(NPC, Spawn)
  376. FaceTarget(NPC, Spawn)
  377. OfferQuest(NPC, Spawn, SendingWord)
  378. end
  379. function SpokenWithAdalinYet(NPC, Spawn, conversation)
  380. if HasCompletedQuest(Spawn, SendingWord) then
  381. AddConversationOption(conversation, "Yes, I have.", "SpokeWithAdalin")
  382. else
  383. AddConversationOption(conversation, "Not yet.")
  384. end
  385. StartConversation(conversation, NPC, Spawn, "Have you spoken with Adalin yet?")
  386. end
  387. function SpokeWithAdalin(NPC, Spawn)
  388. FaceTarget(NPC, Spawn)
  389. conversation = CreateConversation()
  390. AddConversationOption(conversation, "Perhaps.")
  391. StartConversation(conversation, NPC, Spawn, "Good, perhaps more corruption can be avoided.")
  392. end