VindainGreenfaith.lua 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  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. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function hailed(NPC, Spawn)
  26. if GetRace(Spawn) == HIGHELF then
  27. Begin(NPC, Spawn)
  28. else
  29. NotHighElf(NPC, Spawn)
  30. end
  31. end
  32. function InRange(NPC, Spawn)
  33. if not HasCompletedQuest (Spawn, ComponentsOfGrowth) and not HasQuest (Spawn, ComponentsOfGrowth) and GetRace(Spawn)== 8 then
  34. FaceTarget(NPC, Spawn)
  35. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  36. else
  37. if math.random(1, 100) <= 75 then
  38. choice = math.random(1,3)
  39. if choice ==1 then
  40. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  41. elseif choice ==2 then
  42. PlayFlavor(NPC, "", "", "smell", 0, 0, Spawn)
  43. else
  44. FaceTarget(NPC, Spawn)
  45. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  46. end
  47. end
  48. end
  49. end
  50. function NotHighElf(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. 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)
  53. end
  54. function Begin(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. if HasCompletedQuest(Spawn, ComponentsOfGrowth) then
  58. if HasCompletedQuest(Spawn, SowingBeauty) then
  59. if HasCompletedQuest(Spawn, TargetingCorruption) then
  60. if HasCompletedQuest(Spawn, TheCommune) then
  61. if HasCompletedQuest(Spawn, SendingWord) then
  62. SpokenWithAdalinYet(NPC, Spawn, conversation)
  63. elseif HasQuest(Spawn, SendingWord) then
  64. SpokenWithAdalinYet(NPC, Spawn, conversation)
  65. else
  66. SpokenWithSpiritYet(NPC, Spawn, conversation)
  67. end
  68. elseif HasQuest(Spawn, TheCommune) then
  69. SpokenWithSpiritYet(NPC, Spawn, conversation)
  70. else
  71. GreenMistCleared(NPC, Spawn, conversation)
  72. end
  73. elseif HasQuest(Spawn, TargetingCorruption) then
  74. GreenMistCleared(NPC, Spawn, conversation)
  75. else
  76. PlantedBushesYet(NPC, Spawn, conversation)
  77. end
  78. elseif HasQuest(Spawn, SowingBeauty) then
  79. PlantedBushesYet(NPC, Spawn, conversation)
  80. else
  81. GatheredComponentsYet(NPC, Spawn, conversation)
  82. end
  83. elseif HasQuest(Spawn, ComponentsOfGrowth) then
  84. GatheredComponentsYet(NPC, Spawn, conversation)
  85. else
  86. KoadaDalNeedYou(NPC, Spawn, conversation)
  87. end
  88. end
  89. ----------------------------------------------------------------------------------------------------------------
  90. -- QUEST 1
  91. ----------------------------------------------------------------------------------------------------------------
  92. function KoadaDalNeedYou(NPC, Spawn, conversation)
  93. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain001.mp3", "", "", 3275063525, 1876910304, Spawn)
  94. AddConversationOption(conversation, "I do not deny my help.", "DoNotDeny")
  95. AddConversationOption(conversation, "Koada'Dal?", "KoadaDal")
  96. AddConversationOption(conversation, "I will choose when and where to offer my help.")
  97. StartConversation(conversation, NPC, Spawn, "The Koada'Dal need you, do you deny them your help?")
  98. end
  99. function DoNotDeny(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain005.mp3", "", "", 2071218193, 1536623710, Spawn)
  103. AddConversationOption(conversation, "Did you fight?", "DidYouFight")
  104. 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.")
  105. end
  106. function DidYouFight(NPC, Spawn)
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain006.mp3", "", "", 558239952, 3089092887, Spawn)
  110. AddConversationOption(conversation, "How will we bring about a rebirth for our people?", "RebirthForOurPeople")
  111. AddConversationOption(conversation, "Did you need help or not?", "DidYouNeedHelp")
  112. 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) .. ".")
  113. end
  114. function RebirthForOurPeople(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain007.mp3", "", "", 2133745057, 422152869, Spawn)
  118. AddConversationOption(conversation, "How do you cope?", "HowDoYouCope")
  119. 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.")
  120. end
  121. function HowDoYouCope(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain008.mp3", "", "", 2132206040, 1773497371, Spawn)
  125. AddConversationOption(conversation, "The reasons alone mean that those who see it will be helped.", "TheReasonsAlone")
  126. 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.")
  127. end
  128. function TheReasonsAlone(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain009.mp3", "", "", 3987444274, 3750842326, Spawn)
  132. AddConversationOption(conversation, "I would like to help out around here.", "IWouldLikeToHelp")
  133. AddConversationOption(conversation, "Who are your contacts?", "WhoAreYourContacts")
  134. AddConversationOption(conversation, "Not now, thanks.")
  135. 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?")
  136. end
  137. function IWouldLikeToHelp(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain011.mp3", "", "", 2903193382, 1971757298, Spawn)
  141. AddConversationOption(conversation, "Sure, I am willing to do that.", "SureIAmWilling")
  142. AddConversationOption(conversation, "What are Green Wisps?", "DidYouNeedHelp")
  143. 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?")
  144. end
  145. function SureIAmWilling(NPC, Spawn)
  146. FaceTarget(NPC, Spawn)
  147. conversation = CreateConversation()
  148. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain013.mp3", "", "", 344140216, 1983346323, Spawn)
  149. AddConversationOption(conversation, "And the blessed water?", "AndTheBlessedWater")
  150. 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.")
  151. end
  152. function AndTheBlessedWater(NPC, Spawn)
  153. FaceTarget(NPC, Spawn)
  154. conversation = CreateConversation()
  155. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain014.mp3", "", "", 1499994650, 3739794099, Spawn)
  156. AddConversationOption(conversation, "All right.", "OfferQuest1")
  157. StartConversation(conversation, NPC, Spawn, "Collect some blessed water from the Fountain of Valor. Examine the flask while near it to do so.")
  158. end
  159. function KoadaDal(NPC, Spawn)
  160. FaceTarget(NPC, Spawn)
  161. conversation = CreateConversation()
  162. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain002.mp3", "", "", 1275465348, 3317665592, Spawn)
  163. AddConversationOption(conversation, "I have not, what does it mean?", "WhatDoesItMean")
  164. AddConversationOption(conversation, "Oh, I've heard it. I was just joking. Sorry.", "JustJoking")
  165. StartConversation(conversation, NPC, Spawn, "You cannot be serious. From where were you raised? Have you, in seriousness, not heard that term before?")
  166. end
  167. function WhatDoesItMean(NPC, Spawn)
  168. FaceTarget(NPC, Spawn)
  169. conversation = CreateConversation()
  170. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain004.mp3", "", "", 3729119270, 3986173886, Spawn)
  171. AddConversationOption(conversation, "I am Koada'Dal. What can I do?", "DoNotDeny")
  172. AddConversationOption(conversation, "I will leave for now then.")
  173. 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.")
  174. end
  175. function JustJoking(NPC, Spawn)
  176. FaceTarget(NPC, Spawn)
  177. conversation = CreateConversation()
  178. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain003.mp3", "", "", 934395148, 2380624550, Spawn)
  179. AddConversationOption(conversation, "I apologize, I wish to help.", "DoNotDeny")
  180. 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.")
  181. end
  182. function DidYouNeedHelp(NPC, Spawn)
  183. FaceTarget(NPC, Spawn)
  184. conversation = CreateConversation()
  185. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain012.mp3", "", "", 4192139867, 2744580245, Spawn)
  186. AddConversationOption(conversation, "Yes.", "SureIAmWilling")
  187. AddConversationOption(conversation, "No, not right now.")
  188. 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?")
  189. end
  190. function WhoAreYourContacts(NPC, Spawn)
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain010.mp3", "", "", 3834761356, 938291768, Spawn)
  194. AddConversationOption(conversation, "I will find him, thank you.")
  195. 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.")
  196. end
  197. function OfferQuest1(NPC, Spawn)
  198. FaceTarget(NPC, Spawn)
  199. OfferQuest(NPC, Spawn, ComponentsOfGrowth)
  200. end
  201. function GatheredComponentsYet(NPC, Spawn, conversation)
  202. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain015.mp3", "", "", 3988898427, 1857718440, Spawn)
  203. 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
  204. AddConversationOption(conversation, "Yes, I have.", "GotComponents")
  205. end
  206. AddConversationOption(conversation, "I need the water flask.", "NeedWaterFlask")
  207. AddConversationOption(conversation, "No, not yet.")
  208. StartConversation(conversation, NPC, Spawn, "Have you gathered the components yet?")
  209. end
  210. function NeedWaterFlask(NPC, Spawn)
  211. FaceTarget(NPC, Spawn)
  212. conversation = CreateConversation()
  213. -- Water Flask
  214. if HasItem(Spawn, 15337, 1) then
  215. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain017.mp3", "", "", 1348687410, 1688928730, Spawn)
  216. AddConversationOption(conversation, "All right.")
  217. 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.")
  218. else
  219. AddConversationOption(conversation, "Thanks you.")
  220. StartConversation(conversation, NPC, Spawn, "Certainly, here you are.")
  221. SummonItem(Spawn, 15337, 1)
  222. end
  223. end
  224. function GotComponents(NPC, Spawn)
  225. if HasQuest(Spawn, ComponentsOfGrowth) then
  226. SetStepComplete(Spawn, ComponentsOfGrowth, 4)
  227. end
  228. ReadyForNextStep(NPC, Spawn)
  229. end
  230. ----------------------------------------------------------------------------------------------------------------
  231. -- QUEST 2
  232. ----------------------------------------------------------------------------------------------------------------
  233. function ReadyForNextStep(NPC, Spawn)
  234. FaceTarget(NPC, Spawn)
  235. conversation = CreateConversation()
  236. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain018.mp3", "", "", 3208917088, 31436847, Spawn)
  237. AddConversationOption(conversation, "Sure.", "SureQuest2")
  238. AddConversationOption(conversation, "Not right now.")
  239. 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?")
  240. end
  241. function SureQuest2(NPC, Spawn)
  242. FaceTarget(NPC, Spawn)
  243. conversation = CreateConversation()
  244. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain019.mp3", "", "", 2622235887, 2432498099, Spawn)
  245. AddConversationOption(conversation, "I can go plant them now.", "OfferQuest2")
  246. 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.")
  247. end
  248. function OfferQuest2(NPC, Spawn)
  249. FaceTarget(NPC, Spawn)
  250. OfferQuest(NPC, Spawn, SowingBeauty)
  251. end
  252. function PlantedBushesYet(NPC, Spawn, conversation)
  253. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain020.mp3", "", "", 1860236238, 2496988444, Spawn)
  254. if (HasCompletedQuest(Spawn, SowingBeauty) and not HasCompletedQuest(Spawn, TargetingCorruption)) or (HasQuest(Spawn, SowingBeauty) and GetQuestStep(Spawn, SowingBeauty) == 9) then
  255. AddConversationOption(conversation, "Yes, I have, there was a problem.", "dlg_19_1")
  256. else
  257. AddConversationOption(conversation, "No, not yet.")
  258. end
  259. StartConversation(conversation, NPC, Spawn, "Have you planted all of the Green Mist bushes?")
  260. end
  261. function dlg_19_1(NPC, Spawn)
  262. if HasQuest(Spawn, SowingBeauty) then
  263. SetStepComplete(Spawn, SowingBeauty, 9)
  264. end
  265. FaceTarget(NPC, Spawn)
  266. conversation = CreateConversation()
  267. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain021.mp3", "", "", 1190805988, 2574516810, Spawn)
  268. 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")
  269. StartConversation(conversation, NPC, Spawn, "Oh? Nothing serious I hope.")
  270. end
  271. --------------------------------------------------------------------------------------------------------------
  272. -- QUEST 3
  273. --------------------------------------------------------------------------------------------------------------
  274. function dlg_19_2(NPC, Spawn)
  275. FaceTarget(NPC, Spawn)
  276. conversation = CreateConversation()
  277. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain022.mp3", "", "", 2234653654, 1673262997, Spawn)
  278. AddConversationOption(conversation, "It looks corrupted.", "dlg_19_3")
  279. StartConversation(conversation, NPC, Spawn, "By Tunare! How could that have happened? You seem all right, how is the plant?")
  280. end
  281. function dlg_19_3(NPC, Spawn)
  282. FaceTarget(NPC, Spawn)
  283. conversation = CreateConversation()
  284. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain023.mp3", "", "", 1015908882, 1417407767, Spawn)
  285. AddConversationOption(conversation, "Yes, I will.", "OfferQuest3")
  286. AddConversationOption(conversation, "No, not right now.")
  287. 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?")
  288. end
  289. function OfferQuest3(NPC, Spawn)
  290. FaceTarget(NPC, Spawn)
  291. OfferQuest(NPC, Spawn, TargetingCorruption)
  292. end
  293. function GreenMistCleared(NPC, Spawn, conversation)
  294. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain025.mp3", "", "", 3990599486, 444977837, Spawn)
  295. if (HasCompletedQuest(Spawn, TargetingCorruption) and not HasCompletedQuest(Spawn, TheCommune)) or (HasQuest(Spawn, TargetingCorruption) and GetQuestStep(Spawn, TargetingCorruption) == 3) then
  296. AddConversationOption(conversation, "Yes, a sprite attacked me as I cleansed it.", "dlg_22_1")
  297. else
  298. AddConversationOption(conversation, "Not, not yet.")
  299. end
  300. StartConversation(conversation, NPC, Spawn, "Has the Green Mist been cleansed?")
  301. end
  302. function dlg_22_1(NPC, Spawn)
  303. SetStepComplete(Spawn, TargetingCorruption, 3)
  304. FaceTarget(NPC, Spawn)
  305. conversation = CreateConversation()
  306. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain026.mp3", "", "", 622027382, 4205976531, Spawn)
  307. AddConversationOption(conversation, "Yes, I did.", "dlg_22_2")
  308. AddConversationOption(conversation, "No, I did not.", "DidNotKillSprite")
  309. 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?")
  310. end
  311. -------------------------------------------------------------------------------------------------------------
  312. -- QUEST 4
  313. --------------------------------------------------------------------------------------------------------------
  314. function DidNotKillSprite(NPC, Spawn)
  315. FaceTarget(NPC, Spawn)
  316. conversation = CreateConversation()
  317. AddConversationOption(conversation, "You could not have known.", "dlg_22_3")
  318. AddConversationOption(conversation, "It was not your fault.", "dlg_22_3")
  319. AddConversationOption(conversation, "It is all right.", "dlg_22_3")
  320. 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.")
  321. end
  322. function dlg_22_2(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. conversation = CreateConversation()
  325. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain028.mp3", "", "", 1775941301, 1525044387, Spawn)
  326. AddConversationOption(conversation, "You could not have known.", "dlg_22_3")
  327. AddConversationOption(conversation, "It was not your fault.", "dlg_22_3")
  328. AddConversationOption(conversation, "It is all right.", "dlg_22_3")
  329. 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) .. ".")
  330. end
  331. function dlg_22_3(NPC, Spawn)
  332. FaceTarget(NPC, Spawn)
  333. conversation = CreateConversation()
  334. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain029.mp3", "", "", 2832440299, 4280395631, Spawn)
  335. AddConversationOption(conversation, "I can.", "OfferQuest4")
  336. AddConversationOption(conversation, "I can not.", "dlg_22_4")
  337. 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?")
  338. end
  339. function OfferQuest4(NPC, Spawn)
  340. FaceTarget(NPC, Spawn)
  341. OfferQuest(NPC, Spawn, TheCommune)
  342. end
  343. function SpokenWithSpiritYet(NPC, Spawn, conversation)
  344. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain031.mp3", "", "", 3214169408, 3875873368, Spawn)
  345. if (HasCompletedQuest(Spawn, TheCommune) and not HasCompletedQuest(Spawn, SendingWord)) or (HasQuest(Spawn, TheCommune) and GetQuestStep(Spawn, TheCommune) == 2) then
  346. AddConversationOption(conversation, "I have.", "dlg_25_1")
  347. else
  348. AddConversationOption(conversation, "I haven't yet.")
  349. end
  350. StartConversation(conversation, NPC, Spawn, "Have you spoken with the spirit?")
  351. end
  352. function dlg_25_1(NPC, Spawn)
  353. FaceTarget(NPC, Spawn)
  354. conversation = CreateConversation()
  355. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain032.mp3", "", "", 2910726024, 1590892637, Spawn)
  356. AddConversationOption(conversation, "She said she was sorry.", "dlg_25_2")
  357. StartConversation(conversation, NPC, Spawn, "And what did she say?")
  358. end
  359. function dlg_25_2(NPC, Spawn)
  360. FaceTarget(NPC, Spawn)
  361. conversation = CreateConversation()
  362. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain033.mp3", "", "", 3033520362, 3912252683, Spawn)
  363. AddConversationOption(conversation, "She mentioned never being able to see Oakmyst Forest again.", "dlg_25_3")
  364. StartConversation(conversation, NPC, Spawn, "I am not surprised. In death, for true creatures of Tunare, all corruption is purged.")
  365. end
  366. function dlg_25_3(NPC, Spawn)
  367. if HasQuest(Spawn, TheCommune) then
  368. SetStepComplete(Spawn, TheCommune, 2)
  369. end
  370. FaceTarget(NPC, Spawn)
  371. conversation = CreateConversation()
  372. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain034.mp3", "", "", 2141460256, 860400107, Spawn)
  373. AddConversationOption(conversation, "She mentioned thin green thread while she was corrupted. What did that mean?", "dlg_25_4")
  374. StartConversation(conversation, NPC, Spawn, "I was afraid of this... a sunshimmer sprite.")
  375. end
  376. ------------------------------------------------------------------------------------------------------------------------------
  377. -- QUEST 5
  378. ------------------------------------------------------------------------------------------------------------------------------
  379. function dlg_25_4(NPC, Spawn)
  380. FaceTarget(NPC, Spawn)
  381. conversation = CreateConversation()
  382. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain035.mp3", "", "", 405362245, 656678829, Spawn)
  383. AddConversationOption(conversation, "Yes.", "dlg_25_5")
  384. AddConversationOption(conversation, "I can not.")
  385. 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?")
  386. end
  387. function dlg_25_5(NPC, Spawn)
  388. FaceTarget(NPC, Spawn)
  389. conversation = CreateConversation()
  390. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain035a.mp3", "", "", 2092202853, 2822343063, Spawn)
  391. AddConversationOption(conversation, "All right.", "OfferQuest5")
  392. 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.")
  393. end
  394. function OfferQuest5(NPC, Spawn)
  395. FaceTarget(NPC, Spawn)
  396. OfferQuest(NPC, Spawn, SendingWord)
  397. end
  398. function SpokenWithAdalinYet(NPC, Spawn, conversation)
  399. if HasCompletedQuest(Spawn, SendingWord) then
  400. AddConversationOption(conversation, "Yes, I have.", "SpokeWithAdalin")
  401. else
  402. AddConversationOption(conversation, "Not yet.")
  403. end
  404. StartConversation(conversation, NPC, Spawn, "Have you spoken with Adalin yet?")
  405. end
  406. function SpokeWithAdalin(NPC, Spawn)
  407. FaceTarget(NPC, Spawn)
  408. conversation = CreateConversation()
  409. AddConversationOption(conversation, "Perhaps.")
  410. StartConversation(conversation, NPC, Spawn, "Good, perhaps more corruption can be avoided.")
  411. end