MaareonaLudimintium.lua 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/MaareonaLudimintium.lua
  3. Script Purpose : Maareona Ludimintium <Erudite Mentor>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Race ID's
  9. local Erudite = 3
  10. -- Quest ID's
  11. local MEETING_WITH_CAYAN = 316 -- was 32
  12. local INFORMATION_MERCHANTS = 318 -- was 33
  13. local HIDDEN_TREASURES = 320 -- was 34
  14. local CONFRONTATION = 321 -- was 35
  15. local DELIVERING_NEWS = 322
  16. -- Item ID's
  17. local NULLIFICATION_STONE = 10087
  18. local SOUL_SPIKE = 13134
  19. -- players name was
  20. -- Jinoira
  21. function spawn(NPC)
  22. ProvidesQuest(NPC, MEETING_WITH_CAYAN)
  23. ProvidesQuest(NPC, HIDDEN_TREASURES)
  24. ProvidesQuest(NPC, CONFRONTATION)
  25. ProvidesQuest(NPC, DELIVERING_NEWS)
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end
  30. function hailed(NPC, Spawn)
  31. if GetRace(Spawn) == Erudite then
  32. Begin(NPC, Spawn)
  33. else
  34. NotErudite(NPC, Spawn)
  35. end
  36. end
  37. function Begin(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. if HasCompletedQuest(Spawn, MEETING_WITH_CAYAN) then
  41. if HasCompletedQuest(Spawn, INFORMATION_MERCHANTS) then
  42. if HasCompletedQuest(Spawn, HIDDEN_TREASURES) then
  43. if HasCompletedQuest(Spawn, CONFRONTATION) then
  44. if not HasQuest(Spawn, DELIVERING_NEWS) and not HasCompletedQuest(Spawn, DELIVERING_NEWS) then
  45. dlg_56_3(NPC, Spawn)
  46. else
  47. Ending(NPC,Spawn)
  48. end
  49. elseif HasQuest(Spawn, CONFRONTATION) then
  50. IsItDestroyedYet(NPC, Spawn, conversation)
  51. else
  52. FoundPackageYet(NPC, Spawn)
  53. end
  54. elseif HasQuest(Spawn, HIDDEN_TREASURES) then
  55. FoundPackageYet(NPC, Spawn)
  56. else
  57. GottenTheInformationYet(NPC, Spawn, conversation)
  58. end
  59. elseif HasQuest(Spawn, INFORMATION_MERCHANTS) then
  60. GottenTheInformationYet(NPC, Spawn, conversation)
  61. else
  62. GottenTheInformationYet(NPC, Spawn, conversation)
  63. end
  64. elseif HasQuest(Spawn, MEETING_WITH_CAYAN) then
  65. GottenTheInformationYet(NPC, Spawn, conversation)
  66. else
  67. NoGreaterQuest(NPC, Spawn, conversation)
  68. end
  69. end
  70. function NotErudite(NPC, Spawn)
  71. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/qst_maareona_noterudite_ca68359d.mp3", "I suppose I appreciate your interest in speaking with me, but I am here as a service to those of my own kind.", "nod", 1063893561, 411365816, Spawn, 0)
  72. end
  73. -------------------------------------------------------------------------------------------------------------------
  74. -- ERUDITE MENTOR QUEST 1
  75. -------------------------------------------------------------------------------------------------------------------
  76. function NoGreaterQuest(NPC, Spawn, conversation)
  77. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona001.mp3", "", "bow", 1982809476, 3400870964, Spawn)
  78. AddConversationOption(conversation, "Hello, I am " .. GetName(Spawn) .. ".", "dlg_20_1")
  79. StartConversation(conversation, NPC, Spawn, "There is no greater quest than the truth. Welcome to Starcrest Commune, Erudite. I am Maareona.")
  80. end
  81. function dlg_20_1(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona002.mp3", "", "", 284309716, 754775848, Spawn)
  85. AddConversationOption(conversation, "Truth.", "dlg_21_2")
  86. AddConversationOption(conversation, "Power.", "dlg_21_2")
  87. AddConversationOption(conversation, "Enlightenment.", "dlg_21_2")
  88. AddConversationOption(conversation, "I don't know.", "dlg_20_2")
  89. StartConversation(conversation, NPC, Spawn, "That you are. Tell me, " .. GetName(Spawn) .. ", what do you seek?")
  90. end
  91. function dlg_20_2(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona003a.mp3", "", "", 337061547, 3048757721, Spawn)
  95. AddConversationOption(conversation, "What do you seek?", "dlg_20_3")
  96. StartConversation(conversation, NPC, Spawn, "Good, it takes a long time to build the resolve to know what you seek. I would be concerned if you thought you already knew.")
  97. end
  98. function dlg_20_3(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona006.mp3", "", "", 1647970244, 231936640, Spawn)
  102. AddConversationOption(conversation, "Why is that?", "dlg_20_4")
  103. StartConversation(conversation, NPC, Spawn, "Truth. Truth and Enlightenment. I seek individual enlightenment, and racial enlightenment, and eventually sentient enlightenment. I do not expect to succeed anytime soon, but I will succeed. Racial enlightenment is proving to be most difficult at this time, unfortunately.")
  104. end
  105. function dlg_20_4(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona007.mp3", "", "", 933673315, 142645817, Spawn)
  109. AddConversationOption(conversation, "That sounds like a reasonable goal.", "dlg_20_6")
  110. AddConversationOption(conversation, "That sounds a little intolerant.", "dlg_20_5")
  111. StartConversation(conversation, NPC, Spawn, "Well... I am not sure if you've been to Freeport recently, but there is a great ideological schism between the Erudites of our city and those of Freeport. Part of what I do here is work with Erudites who share those views and attempt to bring them around to a more, well, compassionate view of things.")
  112. end
  113. function dlg_20_5(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona008.mp3", "", "", 1279054800, 1194830102, Spawn)
  117. AddConversationOption(conversation, "I suppose that sounds reasonable.", "dlg_20_6")
  118. StartConversation(conversation, NPC, Spawn, "Views of all kinds I can tolerate. It is actions that I have trouble accepting. Those who subscribe to the views of Freeport commonly turn inappropriate views into inappropriate--and illegal--actions. And, yes, it is true, I cannot tolerate actions such as those. If I work with these people prior to actions of this type then Qeynos is stronger.")
  119. end
  120. function dlg_20_6(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona009.mp3", "", "agree", 2014412725, 134790625, Spawn)
  124. AddConversationOption(conversation, "Is there anything I can do to help?", "dlg_20_7")
  125. StartConversation(conversation, NPC, Spawn, "It is. We've given this much thought and this is the only acceptable solution, we cannot remain idle when Freeport gains influence among the citizens of Qeynos.")
  126. end
  127. function dlg_20_7(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona010.mp3", "", "", 731226683, 4123988397, Spawn)
  131. AddConversationOption(conversation, "What would you like me to do?", "dlg_21_8")
  132. AddConversationOption(conversation, "Do you have anything a little more exciting and adventurous?", "dlg_20_8")
  133. StartConversation(conversation, NPC, Spawn, "There is always some way an Erudite such as yourself can help the cause. I am investigating a package that was recently delivered to Qeynos that was thought to contain a heretical relic of past ages. Whether or not the relic itself contains some curse that would promote its ideals, or would just serve to attract those who would do the same, we must rid Qeynos of such an object.")
  134. end
  135. function dlg_20_8(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. conversation = CreateConversation()
  138. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona011.mp3", "", "", 296165667, 3976111075, Spawn)
  139. AddConversationOption(conversation, "All right, thank you.")
  140. StartConversation(conversation, NPC, Spawn, "Certainly. Well, I personally don't but I have friends who may. Go speak with Rujiarmo Oolamein in the Peat Bog. I am sure he could use any help you can offer.")
  141. end
  142. function dlg_21_2(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona003.mp3", "", "", 612001961, 3121169439, Spawn)
  146. AddConversationOption(conversation, "Yes.", "PerhapsYouWill")
  147. AddConversationOption(conversation, "No.", "dlg_21_3")
  148. AddConversationOption(conversation, "I don't know.", "dlg_21_3")
  149. StartConversation(conversation, NPC, Spawn, "Will you achieve it?")
  150. end
  151. function PerhapsYouWill(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. conversation = CreateConversation()
  154. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona005.mp3", "", "", 2168647992, 2514092353, Spawn)
  155. AddConversationOption(conversation, "What do you seek?", "dlg_20_3")
  156. StartConversation(conversation, NPC, Spawn, "Perhaps you will.")
  157. end
  158. function dlg_21_3(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona004.mp3", "", "", 738787463, 3083155196, Spawn)
  162. AddConversationOption(conversation, "What do you seek?", "dlg_20_3")
  163. StartConversation(conversation, NPC, Spawn, "It would seem not. Perhaps you should seek something else then.")
  164. end
  165. function dlg_21_4(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. conversation = CreateConversation()
  168. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona006.mp3", "", "", 1647970244, 231936640, Spawn)
  169. AddConversationOption(conversation, "Why is that?", "dlg_21_5")
  170. StartConversation(conversation, NPC, Spawn, "Truth. Truth and Enlightenment. I seek individual enlightenment, and racial enlightenment, and eventually sentient enlightenment. I do not expect to succeed anytime soon, but I will succeed. Racial enlightenment is proving to be most difficult at this time, unfortunately.")
  171. end
  172. function dlg_21_8(NPC, Spawn)
  173. FaceTarget(NPC, Spawn)
  174. conversation = CreateConversation()
  175. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona012.mp3", "", "", 1465004350, 3954796796, Spawn)
  176. AddConversationOption(conversation, "Why is this important?", "dlg_21_9")
  177. StartConversation(conversation, NPC, Spawn, "As part of my job I routinely come in contact with various people of, uhm, ideologies not concurrent with my own. Although I eventually strive for enlightenment of all sentient beings, for I employ such people to help me with my first two goals: my own enlightenment and that of my race.")
  178. end
  179. function dlg_21_9(NPC, Spawn)
  180. FaceTarget(NPC, Spawn)
  181. conversation = CreateConversation()
  182. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona013.mp3", "", "", 3182974274, 1240192562, Spawn)
  183. AddConversationOption(conversation, "And once I've found him?", "dlg_21_10")
  184. StartConversation(conversation, NPC, Spawn, "Sorry, I just wanted to prepare you before you meet who I am sending you to. I would like you to speak with a human named Cayan Sable. Behind the armor shop, near its north western corner, there is a bench leaning against the wall. You can climb up it to find Cayan.")
  185. end
  186. function dlg_21_10(NPC, Spawn)
  187. FaceTarget(NPC, Spawn)
  188. conversation = CreateConversation()
  189. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona014.mp3", "", "", 3260022583, 3167071006, Spawn)
  190. AddConversationOption(conversation, "I will speak to him.", "OfferQuest1")
  191. StartConversation(conversation, NPC, Spawn, "Tell him we need to find the whereabouts of a package. It was delivered recently to someone by the name of Oolium Artanaes. We were watching him until he fled into South Qeynos. Because of the path he took, our agent could not follow him without revealing himself. Cayan will have friends who can help us find him, and learn the whereabouts of the package.")
  192. end
  193. function OfferQuest1(NPC, Spawn)
  194. FaceTarget(NPC, Spawn)
  195. OfferQuest(NPC, Spawn, MEETING_WITH_CAYAN)
  196. end
  197. function GottenTheInformationYet(NPC, Spawn, conversation)
  198. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona016.mp3", "", "", 1380727633, 48771667, Spawn)
  199. if (HasCompletedQuest(Spawn, INFORMATION_MERCHANTS) and not HasCompletedQuest(Spawn, HIDDEN_TREASURES)) or (HasQuest(Spawn, INFORMATION_MERCHANTS) and GetQuestStep(Spawn, INFORMATION_MERCHANTS) == 3) then
  200. AddConversationOption(conversation, "Yes, I have.", "GotInformation")
  201. else
  202. AddConversationOption(conversation, "No, I haven't.")
  203. end
  204. StartConversation(conversation, NPC, Spawn, "Have you gotten the information yet?")
  205. end
  206. --------------------------------------------------------------------------------------------------------------------
  207. -- ERUDITE MENTOR QUEST 2
  208. --------------------------------------------------------------------------------------------------------------------
  209. function GotInformation(NPC, Spawn)
  210. if HasQuest(Spawn, INFORMATION_MERCHANTS) then
  211. SetStepComplete(Spawn, INFORMATION_MERCHANTS, 3)
  212. end
  213. FaceTarget(NPC, Spawn)
  214. conversation = CreateConversation()
  215. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona017.mp3", "", "", 4022802579, 2271189733, Spawn)
  216. AddConversationOption(conversation, "Here you go.", "dlg_45_2")
  217. StartConversation(conversation, NPC, Spawn, "Wonderful. Let me see it.")
  218. end
  219. ---------------------------------------------------------------------------------------------------------------------
  220. -- ERUDITE MENTOR QUEST 3
  221. ---------------------------------------------------------------------------------------------------------------------
  222. function dlg_45_2(NPC, Spawn)
  223. FaceTarget(NPC, Spawn)
  224. conversation = CreateConversation()
  225. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona018.mp3", "", "", 4212736399, 3852768396, Spawn)
  226. AddConversationOption(conversation, "Couldn't the package still be recovered?", "dlg_45_3")
  227. StartConversation(conversation, NPC, Spawn, "Hmmm... this may be bad news. If he gave up the shipment that means we may never know to whom it was meant to finally be delivered. Worse still, who knows who may stumble upon the relic now. We were so close!")
  228. end
  229. function dlg_45_3(NPC, Spawn)
  230. FaceTarget(NPC, Spawn)
  231. conversation = CreateConversation()
  232. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona019.mp3", "", "", 2700828927, 1097914142, Spawn)
  233. AddConversationOption(conversation, "I can do that.", "dlg_45_4")
  234. AddConversationOption(conversation, "Not right now.")
  235. StartConversation(conversation, NPC, Spawn, "I don't know... not likely- actually... there are a pair of grates in the water ways that may have stopped the package. I don't know how big the package was, but these grates may have stopped it. I'll get one of my contacts to check the grates in Nettleville, I'd like you to check the grates in here in Starcrest. What do you say?")
  236. end
  237. function dlg_45_4(NPC, Spawn)
  238. FaceTarget(NPC, Spawn)
  239. conversation = CreateConversation()
  240. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona020.mp3", "", "", 3437539307, 3210013494, Spawn)
  241. AddConversationOption(conversation, "All right.", "OfferQuest3")
  242. StartConversation(conversation, NPC, Spawn, "Good. I know it is a lot to ask, but at a time like this I think it is best to put aside any fears. You'll have to go to the ferryway near the mariner's bells in the eastern side of Starcrest Commune. Once there swim to the grates and see if any packages were held up on them. It isn't very likely, but it is definitely worth taking a look.")
  243. end
  244. function OfferQuest3(NPC, Spawn)
  245. FaceTarget(NPC, Spawn)
  246. OfferQuest(NPC, Spawn, HIDDEN_TREASURES)
  247. end
  248. function FoundPackageYet(NPC, Spawn)
  249. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona021.mp3", "", "", 2659241094, 1582601118, Spawn)
  250. if (HasCompletedQuest(Spawn, HIDDEN_TREASURES) and not HasCompletedQuest(Spawn, 35)) or (HasQuest(Spawn, HIDDEN_TREASURES) and GetQuestStep(Spawn, HIDDEN_TREASURES) == 2) then
  251. AddConversationOption(conversation, "Yes, I have its contents here. And an unsigned delivery receipt.", "FoundPackage")
  252. else
  253. AddConversationOption(conversation, "Not yet, no.")
  254. end
  255. StartConversation(conversation, NPC, Spawn, "Have you found the package?")
  256. end
  257. function FoundPackage(NPC, Spawn)
  258. FaceTarget(NPC, Spawn)
  259. conversation = CreateConversation()
  260. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona022.mp3", "", "agree", 560393626, 4096174929, Spawn)
  261. AddConversationOption(conversation, "It's hard to read and soggy, but here.", "dlg_49_2")
  262. StartConversation(conversation, NPC, Spawn, "The receipt was with it? Wonderful!")
  263. end
  264. function dlg_49_2(NPC, Spawn)
  265. FaceTarget(NPC, Spawn)
  266. conversation = CreateConversation()
  267. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona023.mp3", "", "", 1854168160, 123679709, Spawn)
  268. AddConversationOption(conversation, "And...?", "dlg_49_3")
  269. StartConversation(conversation, NPC, Spawn, "Hmm, that is fine. It was not the ink that was important. I can sense who the intended recipient was. It will only take a moment...")
  270. end
  271. function dlg_49_3(NPC, Spawn)
  272. FaceTarget(NPC, Spawn)
  273. conversation = CreateConversation()
  274. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona024.mp3", "", "", 2925464109, 438548200, Spawn)
  275. AddConversationOption(conversation, "Here you go.", "dlg_49_4")
  276. StartConversation(conversation, NPC, Spawn, "Velderoth Malraen. He resides here in Starcrest. Now, let's see the package.")
  277. end
  278. function dlg_49_4(NPC, Spawn)
  279. if HasQuest(Spawn, HIDDEN_TREASURES) then
  280. SetStepComplete(Spawn, HIDDEN_TREASURES, 2)
  281. end
  282. FaceTarget(NPC, Spawn)
  283. conversation = CreateConversation()
  284. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona025.mp3", "", "boggle", 4023924866, 963404506, Spawn)
  285. AddConversationOption(conversation, "A Soul Spike?", "dlg_49_5")
  286. StartConversation(conversation, NPC, Spawn, "Oh my! Boxes like this were made to hold objects of great metaphysical potential. Oh dear... these symbols... this box contains a Soul Spike.")
  287. end
  288. -------------------------------------------------------------------------------------------------------------
  289. -- QUEST 4
  290. -------------------------------------------------------------------------------------------------------------
  291. function dlg_49_5(NPC, Spawn)
  292. FaceTarget(NPC, Spawn)
  293. conversation = CreateConversation()
  294. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona026.mp3", "", "", 290912951, 2000708937, Spawn)
  295. AddConversationOption(conversation, "What do you need me to do?", "dlg_49_6")
  296. StartConversation(conversation, NPC, Spawn, "An ancient weapon of the heretic. Some say it has enormous power, others say it is for ritual only, others say it comes from a different plane of existence... all we know is it is a sure sign of a heretic. Velderoth Malraen is that heretic. He must not be allowed to stay a moment longer in Qeynos.")
  297. end
  298. function dlg_49_6(NPC, Spawn)
  299. FaceTarget(NPC, Spawn)
  300. conversation = CreateConversation()
  301. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona027.mp3", "", "", 3129182900, 3935897138, Spawn)
  302. AddConversationOption(conversation, "What do I need to do?", "dlg_49_7")
  303. StartConversation(conversation, NPC, Spawn, "We must make this Soul Spike public. To most it will mean very little, but to any heretic its destruction will be known.")
  304. end
  305. function dlg_49_7(NPC, Spawn)
  306. FaceTarget(NPC, Spawn)
  307. conversation = CreateConversation()
  308. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona028.mp3", "", "", 2750149120, 800404761, Spawn)
  309. AddConversationOption(conversation, "What if Velderoth confronts me?", "OfferQuest4")
  310. StartConversation(conversation, NPC, Spawn, "Speak with Cayan. There is a stand, he will know of what I speak. You will retrieve the stand from him. Take the stand into central Starcrest, near the fountain, and place it there. When it is destroyed Velderoth will feel it, he will flee.")
  311. end
  312. function OfferQuest4(NPC, Spawn)
  313. FaceTarget(NPC, Spawn)
  314. OfferQuest(NPC, Spawn, CONFRONTATION)
  315. end
  316. function TapIt(NPC, Spawn)
  317. FaceTarget(NPC, Spawn)
  318. conversation = CreateConversation()
  319. -- Nullification Stone
  320. -- Soul Spike
  321. SummonItem(Spawn, NULLIFICATION_STONE)
  322. SummonItem(Spawn, SOUL_SPIKE)
  323. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona030.mp3", "", "", 720107384, 4004540442, Spawn)
  324. AddConversationOption(conversation, "I will return.")
  325. StartConversation(conversation, NPC, Spawn, "Tap it with this stone. The rest will attend to itself. Again, do not be wary of Velderoth.")
  326. end
  327. function IsItDestroyedYet(NPC, Spawn, conversation)
  328. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona031.mp3", "", "", 2023690647, 3266928269, Spawn)
  329. if HasQuest(Spawn, CONFRONTATION) then
  330. if GetQuestStep(Spawn, CONFRONTATION) == 3 then
  331. AddConversationOption(conversation, "Yes. Velderoth came.", "dlg_56_1")
  332. else
  333. if not HasItem(Spawn, SOUL_SPIKE) then
  334. AddConversationOption(conversation, "I need the Soul Spike", "NeedSoulSpike")
  335. end
  336. if not HasItem(Spawn, NULLIFICATION_STONE) then
  337. AddConversationOption(conversation, "I need the Nullification Stone.", "NeedNullificationStone")
  338. end
  339. end
  340. end
  341. AddConversationOption(conversation, "Not yet.")
  342. StartConversation(conversation, NPC, Spawn, "Is it destroyed?")
  343. end
  344. function NeedSoulSpike(NPC, Spawn)
  345. SummonItem(Spawn, SOUL_SPIKE)
  346. if not HasItem(Spawn, NULLIFICATION_STONE) then
  347. SummonItem(Spawn, NULLIFICATION_STONE)
  348. end
  349. end
  350. function NeedNullificationStone(NPC, Spawn)
  351. SummonItem(Spawn, NULLIFICATION_STONE)
  352. if not HasItem(Spawn, SOUL_SPIKE) then
  353. SummonItem(Spawn, SOUL_SPIKE)
  354. end
  355. end
  356. function dlg_56_1(NPC, Spawn)
  357. FaceTarget(NPC, Spawn)
  358. conversation = CreateConversation()
  359. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona032.mp3", "", "agree", 632600853, 3687579453, Spawn)
  360. AddConversationOption(conversation, "Yes, that much seems obvious.", "dlg_56_2")
  361. StartConversation(conversation, NPC, Spawn, "That is not surprising. He knows he has been found out and will not return. Another heretic fleeing to the lands of Freeport. What an ironic name... Jinoira, this news is rather big for all citizens of Qeynos, but, to Erudites, it is even bigger. We struggle to maintain our image among the other races here in Qeynos.")
  362. end
  363. function dlg_56_2(NPC, Spawn)
  364. SetStepComplete(Spawn, CONFRONTATION, 3)
  365. FaceTarget(NPC, Spawn)
  366. conversation = CreateConversation()
  367. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona033.mp3", "", "", 3274371824, 4166492978, Spawn)
  368. AddConversationOption(conversation, "I understand. Where do we go from here?", "dlg_56_3")
  369. AddConversationOption(conversation, "I thought you were a seeker of the truth?")
  370. StartConversation(conversation, NPC, Spawn, "It is in our best interest as a race, and as citizens of this city, to keep this information to ourselves. Velderoth may indirectly cause more damage to our city if news of this gets out. The high men of Qeynos cannot have their names soiled by the actions of this individual, if anyone asks of your public encounter with Velderoth you are to claim that he was an illusion of your own creation, that the Soul Spike and he were merely meant as entertainment. Say no more of this to anyone.")
  371. end
  372. function dlg_56_3(NPC, Spawn)
  373. FaceTarget(NPC, Spawn)
  374. conversation = CreateConversation()
  375. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona035.mp3", "", "", 1033522094, 3989983909, Spawn)
  376. AddConversationOption(conversation, "I understand.", "dlg_56_4")
  377. StartConversation(conversation, NPC, Spawn, "I have a friend in the Peat Bog. He is the one person you will tell about this incident. He will do with this information what he must. After you have told him do not speak to him of it again.")
  378. end
  379. function dlg_56_4(NPC, Spawn)
  380. FaceTarget(NPC, Spawn)
  381. conversation = CreateConversation()
  382. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona036.mp3", "", "", 301046375, 3178279586, Spawn)
  383. AddConversationOption(conversation, "I will find him.", "OfferDeliveringNews")
  384. StartConversation(conversation, NPC, Spawn, "Good. His name is Rujiarmo Oolamein. He will have work to give you, I am certain.")
  385. end
  386. function OfferDeliveringNews(NPC, Spawn)
  387. OfferQuest(NPC, Spawn, DELIVERING_NEWS)
  388. end
  389. function Ending(NPC,Spawn)
  390. FaceTarget(NPC,Spawn)
  391. conversation = CreateConversation()
  392. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona036a.mp3", "", "", 625407969, 2282669599, Spawn)
  393. AddConversationOption(conversation, "Thank you.")
  394. StartConversation(conversation, NPC,Spawn, "One more thing, " .. GetName(Spawn) .. ". It was nice working with you.")
  395. end