SpiritistLaharnRahai.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/SpiritistLaharnRahai.lua
  3. Script Purpose : Spiritist Laharn Rahai
  4. Script Author : Scatman
  5. Script Date : 2009.08.21
  6. Script Notes :
  7. --]]
  8. local CURIOUS_FINDINGS = 301
  9. local REQUIRED_COMPONENTS = 302 -- was 39
  10. local UNFORTUNATE_MISTAKES = 303 -- was 40
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, REQUIRED_COMPONENTS)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasCompletedQuest(Spawn, CURIOUS_FINDINGS) then
  21. if HasCompletedQuest(Spawn, REQUIRED_COMPONENTS) then
  22. if HasCompletedQuest(Spawn, UNFORTUNATE_MISTAKES) then
  23. Say(NPC, "All is once again well. You are to be commended for your efforts.", Spawn)
  24. else
  25. PlayFlavor(NPC, "", "Quickly now, speak with Lakosha.", "", 1689589577, 4560189, Spawn)
  26. end
  27. elseif HasQuest(Spawn, REQUIRED_COMPONENTS) then
  28. if GetQuestStep(Spawn, REQUIRED_COMPONENTS) >= 1 and GetQuestStep(Spawn, REQUIRED_COMPONENTS) <= 3 then
  29. GetComponentsYetNo(NPC, Spawn)
  30. elseif GetQuestStep(Spawn, REQUIRED_COMPONENTS) == 4 then
  31. GetComponentsYetYes(NPC, Spawn)
  32. end
  33. else
  34. ListOfSubstancesYetYes(NPC, Spawn)
  35. end
  36. elseif HasQuest(Spawn, CURIOUS_FINDINGS) then
  37. if GetQuestStep(Spawn, CURIOUS_FINDINGS) == 1 then
  38. HereToAskAFavor(NPC, Spawn)
  39. elseif GetQuestStep(Spawn, CURIOUS_FINDINGS) == 2 then
  40. ListOfSubstancesYetNo(NPC, Spawn)
  41. elseif GetQuestStep(Spawn, CURIOUS_FINDINGS) == 3 then
  42. ListOfSubstancesYetYes(NPC, Spawn)
  43. else
  44. PlayFlavor(NPC, "", "Quickly now, speak with Lakosha.", "", 1689589577, 4560189, Spawn)
  45. end
  46. else
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai001.mp3", "Sometimes there is little we can do to prevent tragedy. Other times, that which we do need to do is relatively little.", "", 1689589577, 4560189, Spawn)
  48. end
  49. end
  50. --------------------------------------------------------------------------------------------------------------------
  51. -- QUEST 2
  52. --------------------------------------------------------------------------------------------------------------------
  53. function HereToAskAFavor(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai001.mp3", "", "", 1313052279, 289870513, Spawn)
  57. AddConversationOption(conversation, "I am here to ask a favor.", "dlg_20_1")
  58. StartConversation(conversation, NPC, Spawn, "Sometimes there's little we can do to prevent tragedy. Other times, that which we do need to do is relatively little.")
  59. end
  60. function dlg_20_1(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai002.mp3", "", "", 2480103971, 170395438, Spawn)
  64. AddConversationOption(conversation, "Lakosha Maera had me collect some soil. In it she found something that concerned her. She asked that I bring it to you so that you can study it and confirm or dispel her worries.", "dlg_20_2")
  65. StartConversation(conversation, NPC, Spawn, "Of course, what do you need?")
  66. end
  67. function dlg_20_2(NPC, Spawn)
  68. SetStepComplete(Spawn, CURIOUS_FINDINGS, 1)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai003.mp3", "", "", 2388634849, 375902687, Spawn)
  72. AddConversationOption(conversation, "All right.")
  73. StartConversation(conversation, NPC, Spawn, "Yes, I can do that. However, the human alchemists here would be much faster at determining the components. We should attempt to enlist their help first. Go speak with the Alchemist's assistant, Gunta. I am sure she can be found in the Scribe's shop. Bring the list of identified substances back to me and we'll see if we can put Lakosha's worries to rest.")
  74. end
  75. function ListOfSubstancesYetNo(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "No, not yet.")
  79. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai004.mp3", "", "", 910991904, 661476855, Spawn)
  80. StartConversation(conversation, NPC, Spawn, "Do you have a list of the substances?")
  81. end
  82. function ListOfSubstancesYetYes(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "No, she would not help.", "dlg_22_1")
  86. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai004.mp3", "", "", 910991904, 661476855, Spawn)
  87. StartConversation(conversation, NPC, Spawn, "Do you have a list of the substances?")
  88. end
  89. function dlg_22_1(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai005.mp3", "", "", 3616363331, 324641015, Spawn)
  93. AddConversationOption(conversation, "What do we do now?", "dlg_22_2")
  94. StartConversation(conversation, NPC, Spawn, "That is unfortunate, and yet comes without too much surprise. We are often alone in our endeavors. It makes us stronger, however.")
  95. end
  96. function dlg_22_2(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai006.mp3", "", "", 1807481255, 2577515001, Spawn)
  100. AddConversationOption(conversation, "What do I need to collect?", "dlg_22_3")
  101. StartConversation(conversation, NPC, Spawn, "I can still identify the substance, but it will take some extra work. I'll need you to collect a few things while I prepare what I already have.")
  102. end
  103. function dlg_22_3(NPC, Spawn)
  104. if HasQuest(Spawn, CURIOUS_FINDINGS) then
  105. SetStepComplete(Spawn, CURIOUS_FINDINGS, 3)
  106. end
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai007.mp3", "", "", 790033688, 3434236139, Spawn)
  110. AddConversationOption(conversation, "I can do this.", "OfferQuest3")
  111. StartConversation(conversation, NPC, Spawn, "First you will need some Reactive Kesmith. Travel back to the Alchemist in the Scribe's shop, he will sell you some. You will also need a Litsuth Bag. Though this is an object of our people, you can still buy it from a human. On the western end of Nettleville you will find Tailor Ehuraa Rotherham, she will sell you the bag. Finally you will need some Selkie Mushrooms. You can find these in the ferryway with the mariner's bells, also in western Nettleville.")
  112. end
  113. ---------------------------------------------------------------------------------------------------------------------
  114. -- QUEST 3
  115. ---------------------------------------------------------------------------------------------------------------------
  116. function GetComponentsYetNo(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai008.mp3", "", "", 1937447033, 532896484, Spawn)
  120. AddConversationOption(conversation, "No, I do not.", "dlg_25_1")
  121. StartConversation(conversation, NPC, Spawn, "Do you have the necessary components?")
  122. end
  123. function GetComponentsYetYes(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai008.mp3", "", "", 1937447033, 532896484, Spawn)
  127. AddConversationOption(conversation, "Yes, I do.", "dlg_27_1")
  128. StartConversation(conversation, NPC, Spawn, "Do you have the necessary components?")
  129. end
  130. function dlg_27_1(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai009.mp3", "", "", 3568726927, 50566719, Spawn)
  134. AddConversationOption(conversation, "It was gathered from around Nettleville. I was collecting it as part of a ritual Lakosha was teaching me.", "dlg_27_2")
  135. StartConversation(conversation, NPC, Spawn, "Good.I'll perform the test now, this should not take long. Tell me, what was this soil from and why did Lakosha want it tested?")
  136. end
  137. function dlg_27_2(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai010.mp3", "", "", 73665412, 2710981331, Spawn)
  141. AddConversationOption(conversation, "She said the soil suggested someone was in the middle of a Pa'Rok ceremony, but that there were other compounds that should not be present, and was worried that the other compounds may affect the ceremony.", "dlg_27_3")
  142. StartConversation(conversation, NPC, Spawn, "Ah, yes, I am familiar with it. Why did she want it tested?")
  143. end
  144. function dlg_27_3(NPC, Spawn)
  145. FaceTarget(NPC, Spawn)
  146. conversation = CreateConversation()
  147. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai011.mp3", "", "", 3413002401, 2109013864, Spawn)
  148. AddConversationOption(conversation, "Why is that?", "dlg_27_7")
  149. AddConversationOption(conversation, "What is a Pa'Rok ceremony?", "dlg_27_4")
  150. StartConversation(conversation, NPC, Spawn, "She has keen senses, Imolau. A corrupted Pa'Rok ceremony would be a very bad thing.")
  151. end
  152. function dlg_27_4(NPC, Spawn)
  153. FaceTarget(NPC, Spawn)
  154. conversation = CreateConversation()
  155. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai012.mp3", "", "", 329280246, 3861598666, Spawn)
  156. AddConversationOption(conversation, "What do you feel?", "dlg_27_5")
  157. StartConversation(conversation, NPC, Spawn, "It is an old custom, not often practiced anymore. Still, some cling to it--rightly so, I believe--for personal reasons. It is a way that one mourns for the deceased. Many feel it brings a closure that cannot be had otherwise.")
  158. end
  159. function dlg_27_5(NPC, Spawn)
  160. FaceTarget(NPC, Spawn)
  161. conversation = CreateConversation()
  162. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai013.mp3", "", "", 2917173738, 1397380776, Spawn)
  163. AddConversationOption(conversation, "Do you mean that it is all in the mind of the person performing the ceremony?", "dlg_27_6")
  164. StartConversation(conversation, NPC, Spawn, "I support anything--within reason--that heals. Pa'Rok does that, and so I believe it is good. Some feel that the ceremony is too long or archaic to do any good. Those who think as much would not receive any help from Pa'Rok anyway. Everyone copes in their own ways, some can accept the help Pa'Rok offers while others cannot.")
  165. end
  166. function dlg_27_6(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. conversation = CreateConversation()
  169. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai014.mp3", "", "", 4079786531, 4103037420, Spawn)
  170. AddConversationOption(conversation, "Why is that?", "dlg_27_7")
  171. StartConversation(conversation, NPC, Spawn, "No, not by a long shot. I cannot explain it, but the one doing the ceremony knows and feels what they are meant to feel. Some say they commune with the deceased, though most remember very little. This is how one knows if the ceremony is corrupted; if it is all clearly remembered and there is no sense of peace when it is over. Corrupted ceremonies are very bad.")
  172. end
  173. function dlg_27_7(NPC, Spawn)
  174. FaceTarget(NPC, Spawn)
  175. conversation = CreateConversation()
  176. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai015.mp3", "", "", 3229185104, 3474423830, Spawn)
  177. AddConversationOption(conversation, "What did you find?", "dlg_27_8")
  178. StartConversation(conversation, NPC, Spawn, "A corrupted ceremony means time lost, and mourning needlessly repeated. Ah, the test is done.")
  179. end
  180. function dlg_27_8(NPC, Spawn)
  181. FaceTarget(NPC, Spawn)
  182. conversation = CreateConversation()
  183. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai016.mp3", "", "", 681386269, 481662717, Spawn)
  184. AddConversationOption(conversation, "Negative consequences?", "dlg_27_9")
  185. StartConversation(conversation, NPC, Spawn, "This is dire. The soil had components suggesting the Pa'Rok ceremony was on its third day. On the fourth day the final soil, specially prepared by a kerra learned in such things, will be added. The soil from the first day, however, seems very ill prepared and has substances that I don't even recognize in it. This will corrupt the ceremony, that is certain, but it may have negative consequences beyond that.")
  186. end
  187. function dlg_27_9(NPC, Spawn)
  188. SetStepComplete(Spawn, REQUIRED_COMPONENTS, 4)
  189. FaceTarget(NPC, Spawn)
  190. conversation = CreateConversation()
  191. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/spiritist_laharn_rahai/qey_village01/quests/laharn_rahai/laharn_rahai017.mp3", "", "", 3728181169, 856089258, Spawn)
  192. AddConversationOption(conversation, "All right, thank you for your help.")
  193. StartConversation(conversation, NPC, Spawn, "The Pa'Rok summons the spirits of the dead. To alter the prepared soil in any way threatens the integrity of that link to the dead. They may not be summoned at all, the wrong soul may be summoned, only a portion of the soul may be summoned, there is no way to know what will happen. Understand, this is not something we study, it is something that must always be avoided. Please, return to Lakosha. Tell her what I have told you, she will guide you.")
  194. end
  195. function OfferQuest3(NPC, Spawn)
  196. FaceTarget(NPC, Spawn)
  197. OfferQuest(NPC, Spawn, REQUIRED_COMPONENTS)
  198. end