InquisitorThorson.lua 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/InquisitorThorson.lua
  3. Script Purpose : Inquisitor Thorson <Dismal Rage>
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Script Notes :
  7. --]]
  8. local MeettheInquisitor = 5671
  9. local HALFELF_MENTOR_QUEST_5 = 189
  10. local QUEST_1 = 376
  11. local QUEST_2 = 377
  12. local QUEST_3 = 378
  13. local QUEST_4 = 379
  14. local QUEST_3_FROM_CURFIELD = 382
  15. local QUEST_5 = 383
  16. local QUEST_6 = 384
  17. function spawn(NPC)
  18. SetPlayerProximityFunction(NPC, 10, "InRange")
  19. ProvidesQuest(NPC, QUEST_1)
  20. ProvidesQuest(NPC, QUEST_2)
  21. ProvidesQuest(NPC, QUEST_3)
  22. ProvidesQuest(NPC, QUEST_4)
  23. ProvidesQuest(NPC, QUEST_5)
  24. ProvidesQuest(NPC, QUEST_6)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function InRange(NPC, Spawn)
  30. local chance = math.random(1, 2)
  31. if chance <= 25 then
  32. local choice = math.random(1,2)
  33. if choice == 1 then
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/quest_character/qst_inquisitor_thorson_callout_2a6613bd.mp3", "We must all act to defend Freeport.", "nod", 1841304758, 774355519, Spawn)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/quest_character/qst_inquisitor_thorson_callout_f96a8b27.mp3", "This cursed place holds many secrets that must be uncovered.", "", 2921290119, 2384027850, Spawn)
  37. end
  38. end
  39. end
  40. function hailed(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. RandomVoiceOver(NPC, Spawn)
  44. if HasQuest(Spawn, HALFELF_MENTOR_QUEST_5) then
  45. AddConversationOption(conversation, "My name is " .. GetName(Spawn) .. ". Delcairn Sebastian sent in Beggar's Court sent me here to speak with you.", "Delcairn")
  46. end
  47. if GetQuestStep(Spawn, MeettheInquisitor) == 1 then
  48. SetStepComplete(Spawn, MeettheInquisitor, 1)
  49. Delcairn(NPC, Spawn)
  50. end
  51. if HasCompletedQuest(Spawn, QUEST_1) then
  52. if HasCompletedQuest(Spawn, QUEST_2) then
  53. if HasCompletedQuest(Spawn, QUEST_3) then
  54. if HasCompletedQuest(Spawn, QUEST_4) then
  55. if HasCompletedQuest(Spawn, QUEST_3_FROM_CURFIELD) then
  56. if HasCompletedQuest(Spawn, QUEST_5) then
  57. if HasCompletedQuest(Spawn, QUEST_6) then
  58. PlayFlavor(NPC, "", "Thank you for all your help, my friend. I will speak favorably of you to my superiors.", "thank", 0, 0, Spawn)
  59. elseif HasQuest(Spawn, QUEST_6) then
  60. MustRemainHere(NPC, Spawn, conversation)
  61. else
  62. HelloAgainBraveOne(NPC, Spawn, conversation)
  63. end
  64. elseif HasQuest(Spawn, QUEST_5) then
  65. OnQuest5(NPC, Spawn, conversation)
  66. else
  67. HelloOnceAgain(NPC, Spawn, conversation)
  68. end
  69. elseif HasQuest(Spawn, QUEST_3_FROM_CURFIELD) then
  70. OnQuest4(NPC, Spawn, conversation)
  71. else
  72. SpeakWithInvestigator(NPC, Spawn, conversation)
  73. end
  74. elseif HasQuest(Spawn, QUEST_4) then
  75. OnQuest4(NPC, Spawn, conversation)
  76. else
  77. Greetings4(NPC, Spawn, conversation)
  78. end
  79. elseif HasQuest(Spawn, QUEST_3) then
  80. OnQuest3(NPC, Spawn, conversation)
  81. else
  82. GreetingsAdventurer(NPC, Spawn, conversation)
  83. end
  84. elseif HasQuest(Spawn, QUEST_2) then
  85. OnQuest2(NPC, Spawn, conversation)
  86. else
  87. HelloAdventurer(NPC, Spawn, conversation)
  88. end
  89. elseif HasQuest(Spawn, QUEST_1) then
  90. OnQuest1(NPC, Spawn, conversation)
  91. else
  92. Greetings(NPC, Spawn, conversation)
  93. end
  94. end
  95. function RandomVoiceOver(NPC, Spawn)
  96. local choice = math.random(1, 3)
  97. if choice == 1 then
  98. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  99. elseif choice == 2 then
  100. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  101. elseif choice == 3 then
  102. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  103. end
  104. end
  105. --------------------------------------------------------------------------------------------------------------------
  106. -- HALFELF_MENTOR_QUEST_5
  107. --------------------------------------------------------------------------------------------------------------------
  108. function Delcairn(NPC, Spawn)
  109. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_5, 1)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. if not HasQuest(Spawn, QUEST_1) and not HasCompleted(Spawn, QUEST_1) then
  113. AddConversationOption(conversation, "I would be an honor to serve Freeport.", "dlg_0_1")
  114. end
  115. AddConversationOption(conversation, "I am pleased to have met you.")
  116. StartConversation(conversation, NPC, Spawn, "Ah yes, I was told to expect your arrival. I've heard that you show great promise and may well prove to be an asset to the Overlord.")
  117. end
  118. --------------------------------------------------------------------------------------------------------------------
  119. -- QUEST_1
  120. --------------------------------------------------------------------------------------------------------------------
  121. function Greetings(NPC, Spawn, conversation)
  122. AddConversationOption(conversation, "My name is " .. GetName(Spawn) .. ". Who are you?", "dlg_0_1")
  123. AddConversationOption(conversation, "My business is none of your concern.")
  124. StartConversation(conversation, NPC, Spawn, "Greetings, adventurer. What business do you have here?")
  125. end
  126. function dlg_0_1(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson003.mp3", "", "", 463981298, 3396454386, Spawn)
  130. AddConversationOption(conversation, "What is the Dismal Rage?", "dlg_0_2")
  131. AddConversationOption(conversation, "Undead? No thank you.")
  132. StartConversation(conversation, NPC, Spawn, "I suppose formal introductions are in order. I am Inquisitor Thorson, sent by my masters in the Dismal Rage to investigate a recent increase in undead activity here.")
  133. end
  134. function dlg_0_2(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. conversation = CreateConversation()
  137. AddConversationOption(conversation, "What gods do you serve?", "dlg_0_3")
  138. AddConversationOption(conversation, "I have heard enough about the Dismal Rage. What is this place?", "dlg_0_6")
  139. AddConversationOption(conversation, "I must be going.")
  140. StartConversation(conversation, NPC, Spawn, "The Dismal Rage looks after the spiritual needs of Freeport's people. We congregate in the Temple of War in North Freeport. We are made up largely of priests, though we do employ other professions from time to time.")
  141. end
  142. function dlg_0_3(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. AddConversationOption(conversation, "If there are no gods around anymore, from where do you draw your power?", "dlg_0_4")
  146. AddConversationOption(conversation, "I think I've heard enough.")
  147. StartConversation(conversation, NPC, Spawn, "Though in ancient times our priests served the old gods, we no longer bow to such archaic symbols of authority. Today the Dismal Rage serves the Overlord and our high priestess, .. GetName(Spawn) .. . Nevagon.")
  148. end
  149. function dlg_0_4(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. AddConversationOption(conversation, "What principles do you mean?", "dlg_0_5")
  153. AddConversationOption(conversation, "I think I should be leaving.")
  154. StartConversation(conversation, NPC, Spawn, "Some of us believe it was not the gods themselves that were the true power, but rather the planar forces they represented. The ancient gods were symbols, the embodiment of the principles we now serve.")
  155. end
  156. function dlg_0_5(NPC, Spawn)
  157. FaceTarget(NPC, Spawn)
  158. conversation = CreateConversation()
  159. AddConversationOption(conversation, "What is this place?", "dlg_0_6")
  160. AddConversationOption(conversation, "I think I should be leaving.")
  161. StartConversation(conversation, NPC, Spawn, "We draw our power from many sources, including the principles of Hate, Fear, War, and Decay. There are sects within the Dismal Rage dedicated to all these ideals and more, though we are united in our service to the Overlord and High Priestess Nevagon.")
  162. end
  163. function dlg_0_6(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. conversation = CreateConversation()
  166. AddConversationOption(conversation, "What do you mean?", "dlg_0_7")
  167. AddConversationOption(conversation, "I don't need to hear anything else.")
  168. StartConversation(conversation, NPC, Spawn, "You have arrived in the Sunken City, once a thriving district of Freeport. Now it stands as a monument to the madness of those who would have sacrificed our beloved city to the waves.")
  169. end
  170. function dlg_0_7(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. AddConversationOption(conversation, "I will do it.", "OfferQuest1")
  174. StartConversation(conversation, NPC, Spawn, "I will tell you more if you want to hear it, but first I must review the notes I have been taking on what I have observed since my arrival here. To learn a bit more about this place, go through the archway just ahead and speak to an iksar named Saydith Yarr.")
  175. end
  176. function OfferQuest1(NPC, Spawn)
  177. FaceTarget(NPC, Spawn)
  178. OfferQuest(NPC, Spawn, QUEST_1)
  179. end
  180. function OnQuest1(NPC, Spawn, conversation)
  181. if GetQuestStep(Spawn, QUEST_1) == 2 then
  182. AddConversationOption(conversation, "Yes, though he seemed to babble a lot.", "dlg_2_1")
  183. end
  184. AddConversationOption(conversation, "Not yet.")
  185. StartConversation(conversation, NPC, Spawn, "Did you speak to Saydith Yarr?")
  186. end
  187. function dlg_2_1(NPC, Spawn)
  188. if HasQuest(Spawn, QUEST_1) then
  189. SetStepComplete(Spawn, QUEST_1, 2)
  190. end
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. AddConversationOption(conversation, "I'd like to hear more about the Sunken City.", "dlg_2_2")
  194. AddConversationOption(conversation, "Enough chatter. Do you have anything for me to do?", "dlg_2_10")
  195. AddConversationOption(conversation, "I'd rather leave, thanks.")
  196. StartConversation(conversation, NPC, Spawn, "Saydith has been here a long time, and I think he has gone a bit mad. I can tell you more about this place if you like, or we can skip all that and you can do some work for me.")
  197. end
  198. --------------------------------------------------------------------------------------------------------------------
  199. -- QUEST_2
  200. --------------------------------------------------------------------------------------------------------------------
  201. function HelloAdventurer(NPC, Spawn, conversation)
  202. AddConversationOption(conversation, "I spoke to a rather disturbed iksar.", "dlg_2_1")
  203. AddConversationOption(conversation, "Goodbye, Inquisitor Thorson.")
  204. StartConversation(conversation, NPC, Spawn, "Hello, adventurer. I hope you travel safely here in the Sunken City.")
  205. end
  206. function dlg_2_2(NPC, Spawn)
  207. FaceTarget(NPC, Spawn)
  208. conversation = CreateConversation()
  209. AddConversationOption(conversation, "Go on.", "dlg_2_3")
  210. AddConversationOption(conversation, "I've heard enough.")
  211. StartConversation(conversation, NPC, Spawn, "What we now call the Sunken City was once a residential district in the northern section of Freeport known affectionately by its residents as Plank's Edge. It was home to many of the sailors and merchants that worked on the docks of East Freeport's bustling shipping trade.")
  212. end
  213. function dlg_2_3(NPC, Spawn)
  214. FaceTarget(NPC, Spawn)
  215. conversation = CreateConversation()
  216. AddConversationOption(conversation, "Please continue.", "dlg_2_4")
  217. AddConversationOption(conversation, "I've heard enough.")
  218. StartConversation(conversation, NPC, Spawn, "As was typical of a seafaring community, many of the residents worshiped Prexus, the Ocean Lord. Though a boisterous and sometimes rowdy bunch, they lived peaceably enough with the other citizens of Freeport.")
  219. end
  220. function dlg_2_4(NPC, Spawn)
  221. FaceTarget(NPC, Spawn)
  222. conversation = CreateConversation()
  223. AddConversationOption(conversation, "I see.", "dlg_2_5")
  224. AddConversationOption(conversation, "I've heard enough.")
  225. StartConversation(conversation, NPC, Spawn, "When the Rending began and the seas became impassible, Freeport's harbor fell on hard times. Shipping and trade ground to a halt and the fishing industry collapsed. East Freeport became a ghost town, known more for its crime than for its commerce.")
  226. end
  227. function dlg_2_5(NPC, Spawn)
  228. FaceTarget(NPC, Spawn)
  229. conversation = CreateConversation()
  230. AddConversationOption(conversation, "Who followed Aquel?", "dlg_2_6")
  231. AddConversationOption(conversation, "I'm losing interest in this story. Do you have any work for me?", "dlg_2_10")
  232. AddConversationOption(conversation, "I've heard enough.")
  233. StartConversation(conversation, NPC, Spawn, "In this climate of fear and uncertainty, a half elven extremist named Elwyn Aquel gained a following. He preached that Prexus was angry with Freeport, and only through the hard work and sacrifice of his followers would the seas calm and prosperity return.")
  234. end
  235. function dlg_2_6(NPC, Spawn)
  236. FaceTarget(NPC, Spawn)
  237. conversation = CreateConversation()
  238. AddConversationOption(conversation, "Did Aquel really want to help them?", "dlg_2_7")
  239. AddConversationOption(conversation, "I've heard enough.")
  240. StartConversation(conversation, NPC, Spawn, "Aquel's followers, called the Circle of Darkfathom, quickly rose in prominence among the disgruntled citizens of Plank's Edge. Aquel promised brighter days to these desperate people on the brink of losing everything they had.")
  241. end
  242. function dlg_2_7(NPC, Spawn)
  243. FaceTarget(NPC, Spawn)
  244. conversation = CreateConversation()
  245. AddConversationOption(conversation, "Did anyone try to stop him?", "dlg_2_8")
  246. AddConversationOption(conversation, "Enough of this babbling.")
  247. StartConversation(conversation, NPC, Spawn, "Little did the people of Plank's Edge know that they had fallen victim to a madman's scheme. The sacrifice Aquel spoke of was a literal one: he intended to sink Freeport to the bottom of the ocean in a twisted scheme to gain favor with Prexus. He believed that the flood waters would wash away the city and grant him immortality in the process.")
  248. end
  249. function dlg_2_8(NPC, Spawn)
  250. FaceTarget(NPC, Spawn)
  251. conversation = CreateConversation()
  252. AddConversationOption(conversation, "Was all of Freeport flooded?", "dlg_2_9")
  253. AddConversationOption(conversation, "I've heard enough.")
  254. StartConversation(conversation, NPC, Spawn, "It was only as Aquel began his ritual of sacrifice that some of his followers saw through his deception. As the ground beneath Plank's Edge began to sink and the flood waters came pouring in, some of the Darkfathom members interrupted Aquel's incantation and broke the spell. Though Freeport was saved, it was too late for the people of Plank's Edge, who drowned beneath the unholy tide. Aquel's body was never recovered.")
  255. end
  256. function dlg_2_9(NPC, Spawn)
  257. FaceTarget(NPC, Spawn)
  258. conversation = CreateConversation()
  259. AddConversationOption(conversation, "This area is haunted?", "dlg_2_10")
  260. AddConversationOption(conversation, "I don't like ghosts. Time to go.")
  261. StartConversation(conversation, NPC, Spawn, "Thankfully the high walls around the outside of the district held strong, so damage to neighboring parts of Freeport was minimal. Gradually the waters receded but never fully went away, leaving the area all but unlivable. Abandoned by the city's residents, Plank's Edge is now called the Sunken City, a dangerous place haunted by the souls of those who met their doom within.")
  262. end
  263. function dlg_2_10(NPC, Spawn)
  264. FaceTarget(NPC, Spawn)
  265. conversation = CreateConversation()
  266. AddConversationOption(conversation, "What do you want me to do?", "dlg_2_11")
  267. AddConversationOption(conversation, "I have no interest in this.")
  268. StartConversation(conversation, NPC, Spawn, "The Sunken City is haunted, by both the spirits of those innocents who died here and by the fallen Prexians who caused this catastrophe. It is said that there are even more spirits who walk these flooded streets after night falls.")
  269. end
  270. function dlg_2_11(NPC, Spawn)
  271. FaceTarget(NPC, Spawn)
  272. conversation = CreateConversation()
  273. AddConversationOption(conversation, "I'll do it. Where can I find these creatures?", "OfferQuest2")
  274. StartConversation(conversation, NPC, Spawn, "When the undead are defeated and their spirits are freed, they often leave behind a spectral essence that, if properly analyzed, reveals much about their past. I must find out what is causing the increase in activity among the undead. I need you to obtain four spectral essences from the undead creatures.")
  275. end
  276. function OfferQuest2(NPC, Spawn)
  277. FaceTarget(NPC, Spawn)
  278. OfferQuest(NPC, Spawn, QUEST_2)
  279. end
  280. function OnQuest2(NPC, Spawn, conversation)
  281. if GetQuestStep(Spawn, QUEST_2) == 2 then
  282. AddConversationOption(conversation, "Yes, I obtained all four essences.", "dlg_7_1")
  283. end
  284. AddConversationOption(conversation, "Not yet.")
  285. StartConversation(conversation, NPC, Spawn, "Hello again. Do you have the spectral essences I asked you to obtain?")
  286. end
  287. function dlg_7_1(NPC, Spawn)
  288. SetStepComplete(Spawn, QUEST_2, 2)
  289. FaceTarget(NPC, Spawn)
  290. conversation = CreateConversation()
  291. AddConversationOption(conversation, "What other inhabitants?", "dlg_7_2")
  292. AddConversationOption(conversation, "No thanks, I will be going.")
  293. StartConversation(conversation, NPC, Spawn, "Well done! These essences will aid in my research. It will take me some time to study them. While I do that, it may be a good idea for you to have a look around and discover some of the other inhabitants of the Sunken City.")
  294. end
  295. --------------------------------------------------------------------------------------------------------------------
  296. -- QUEST_3
  297. --------------------------------------------------------------------------------------------------------------------
  298. function GreetingsAdventurer(NPC, Spawn, conversation)
  299. AddConversationOption(conversation, "Hello, Inquisitor. I am ready to explore more of the Sunken City.", "dlg_7_2")
  300. AddConversationOption(conversation, "Nothing. Goodbye, Inquisitor Thorson.")
  301. StartConversation(conversation, NPC, Spawn, "Greetings, adventurer! What brings you back to me?")
  302. end
  303. function dlg_7_2(NPC, Spawn)
  304. FaceTarget(NPC, Spawn)
  305. conversation = CreateConversation()
  306. AddConversationOption(conversation, "What kind of vermin?", "dlg_7_3")
  307. AddConversationOption(conversation, "Just tell me how to collect the information you need.")
  308. StartConversation(conversation, NPC, Spawn, "This place is home to more than just the spirits of those who died here. I've been told there are a few types of vermin scattered around the Sunken City, and I'd like you to confirm their presence for me.")
  309. end
  310. function dlg_7_3(NPC, Spawn)
  311. FaceTarget(NPC, Spawn)
  312. conversation = CreateConversation()
  313. AddConversationOption(conversation, "What other creatures?", "dlg_7_4")
  314. StartConversation(conversation, NPC, Spawn, "Crabs like to roam in shallow water, so I need a rough estimate of their density here. You should find plenty of brine sifters just through the archway, as well as farther on to the east.")
  315. end
  316. function dlg_7_4(NPC, Spawn)
  317. FaceTarget(NPC, Spawn)
  318. conversation = CreateConversation()
  319. AddConversationOption(conversation, "Anything else?", "dlg_7_5")
  320. StartConversation(conversation, NPC, Spawn, "Though a coastal city, Freeport has a very arid climate. Scorpions may be found here on some of the dry portions of ground. You might try going west, then south a bit.")
  321. end
  322. function dlg_7_5(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. conversation = CreateConversation()
  325. AddConversationOption(conversation, "How do I collect information on these creatures?", "OfferQuest3")
  326. StartConversation(conversation, NPC, Spawn, "Of particular interest to me are the strange rust monsters that scurry around here. There is little information on where they come from, but they showed up in this area after the destruction caused by the Rending. They get their name not only for their brownish color, but for their odd taste for consuming rusty metal. If any of your gear becomes rusty due to the moisture here, be on your guard.")
  327. end
  328. function OfferQuest3(NPC, Spawn)
  329. FaceTarget(NPC, Spawn)
  330. OfferQuest(NPC, Spawn, QUEST_3)
  331. end
  332. function OnQuest3(NPC, Spawn, conversation)
  333. if GetQuestStep(Spawn, QUEST_3) == 5 then
  334. AddConversationOption(conversation, "Yes, I've studied the nearby creatures.", "dlg_10_1")
  335. end
  336. AddConversationOption(conversation, "Not yet.")
  337. StartConversation(conversation, NPC, Spawn, "Greetings once again. Have you studied the local wild creatures?")
  338. end
  339. function dlg_10_1(NPC, Spawn)
  340. SetStepComplete(Spawn, QUEST_3, 5)
  341. FaceTarget(NPC, Spawn)
  342. conversation = CreateConversation()
  343. AddConversationOption(conversation, "Are you working alone here?", "dlg_10_2")
  344. AddConversationOption(conversation, "I think I will go now.")
  345. StartConversation(conversation, NPC, Spawn, "Well done! Your reputation as a hard worker is well earned. It seems there is no shortage of life here in the Sunken City, even if most of it scuttles about in the shadows.")
  346. end
  347. --------------------------------------------------------------------------------------------------------------------
  348. -- QUEST_4
  349. --------------------------------------------------------------------------------------------------------------------
  350. function Greetings4(NPC, Spawn, conversation)
  351. AddConversationOption(conversation, "Are you working alone here?", "dlg_10_2")
  352. AddConversationOption(conversation, "Speaking of traveling, I must be off.")
  353. StartConversation(conversation, NPC, Spawn, "Greetings. I hope you travel safely, adventurer.")
  354. end
  355. function dlg_10_2(NPC, Spawn)
  356. FaceTarget(NPC, Spawn)
  357. conversation = CreateConversation()
  358. AddConversationOption(conversation, "Who am I looking for?", "dlg_10_3")
  359. AddConversationOption(conversation, "Run your own errands.")
  360. StartConversation(conversation, NPC, Spawn, "I am not the only one sent here by the Dismal Rage. Some of my allies have ventured deeper into the Sunken City. In fact, since I have completed my examination of the spectral essences you obtained, I need you to take the information to one of them.")
  361. end
  362. function dlg_10_3(NPC, Spawn)
  363. FaceTarget(NPC, Spawn)
  364. conversation = CreateConversation()
  365. AddConversationOption(conversation, "I'll do it. Where can I find him?", "OfferQuest4")
  366. StartConversation(conversation, NPC, Spawn, "Seek out Investigator Curfeld, a highly respected member of our order. He has spent a lot of time researching the events that transpired here, and no doubt has some insight into the recent rise in undead activity. Take my findings on the spectral essences and give them to him.")
  367. end
  368. function OfferQuest4(NPC, Spawn)
  369. FaceTarget(NPC, Spawn)
  370. OfferQuest(NPC, Spawn, QUEST_4)
  371. end
  372. function OnQuest4(NPC, Spawn, conversation)
  373. if HasQuest(Spawn, QUEST_3_FROM_CURFIELD) then
  374. AddConversationOption(conversation, "Yes, he asked me to bring this journal to you.", "dlg_22_1")
  375. end
  376. AddConversationOption(conversation, "I looked, but I didn't find him.", "DidntFindHim")
  377. AddConversationOption(conversation, "Not yet. I'm still doing some tasks for him.")
  378. StartConversation(conversation, NPC, Spawn, "Thank you for assisting the Dismal Rage in investigating the Sunken City. Has Investigator Curfield made any discoveries?")
  379. end
  380. function DidntFindHim(NPC, Spawn)
  381. FaceTarget(NPC, Spawn)
  382. conversation = CreateConversation()
  383. AddConversationOption(conversation, "I'll have another look.")
  384. StartConversation(conversation, NPC, Spawn, "He is near the gateway to the Graveyard. Look to the south and the west of here, near some other inquisitors from the Dismal Rage. Investigator Curfield often makes expeditions deeper into the Sunken City, so if you don't see him right now just wait a while and he should present himself.")
  385. end
  386. function SpeakWithInvestigator(NPC, Spawn, conversation)
  387. AddConversationOption(conversation, "I will go speak to Investigator Curfield.")
  388. StartConversation(conversation, NPC, Spawn, "Greetings, adventurer. Please see if Investigator Curfield has any work for you. He can be found near the gate to the Graveyard. He'll send you back to me when he sees fit.")
  389. end
  390. --------------------------------------------------------------------------------------------------------------------
  391. -- QUEST_3_FROM_CURFIELD
  392. --------------------------------------------------------------------------------------------------------------------
  393. function dlg_22_1(NPC, Spawn)
  394. if HasQuest(Spawn, QUEST_3_FROM_CURFIELD) then
  395. SetStepComplete(Spawn, QUEST_3_FROM_CURFIELD, 1)
  396. end
  397. FaceTarget(NPC, Spawn)
  398. conversation = CreateConversation()
  399. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson037.mp3", "", "", 1891000932, 649787837, Spawn)
  400. AddConversationOption(conversation, "First he had me uncover what some unsavory pirates are doing in the area.", "dlg_22_2")
  401. AddConversationOption(conversation, "That is none of your business.")
  402. StartConversation(conversation, NPC, Spawn, "Ah, thank you. I'm glad to have someone of his expertise in charge of these matters. I will look through his journal as I prepare to return to North Freeport to present my report. If I may ask, what did the investigator have you do?")
  403. end
  404. --------------------------------------------------------------------------------------------------------------------
  405. -- QUEST_3_FROM_CURFIELD
  406. --------------------------------------------------------------------------------------------------------------------
  407. function HelloOnceAgain(NPC, Spawn, conversation)
  408. AddConversationOption(conversation, "I returned with information from Investigator Curfield.", "dlg_22_1")
  409. AddConversationOption(conversation, "My pleasure. Goodbye, Inquisitor Thorson.")
  410. StartConversation(conversation, NPC, Spawn, "Hello once again friend. As a loyal servant of the Dismal Rage, I continue to investigate the strange happenings here in the Sunken City.")
  411. end
  412. function dlg_22_2(NPC, Spawn)
  413. FaceTarget(NPC, Spawn)
  414. conversation = CreateConversation()
  415. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson038.mp3", "", "", 4129824747, 1521555979, Spawn)
  416. AddConversationOption(conversation, "No, he just had me retrieve some documents that were in their possession.", "dlg_22_3")
  417. AddConversationOption(conversation, "That doesn't concern you.")
  418. StartConversation(conversation, NPC, Spawn, "Pirates, eh? I'd heard rumors of their kind stashing their goods around here. I guess they figured no one would go looking for stolen goods in a place that is haunted by the spirits of the past. I assume he asked you to report their activity to the Freeport Militia.")
  419. end
  420. function dlg_22_3(NPC, Spawn)
  421. FaceTarget(NPC, Spawn)
  422. conversation = CreateConversation()
  423. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson039.mp3", "", "", 4059080083, 3742743573, Spawn)
  424. AddConversationOption(conversation, "He had me investigate a ruined shrine to Prexus that was guarded by zombies.", "dlg_22_4")
  425. AddConversationOption(conversation, "Mind your own business.")
  426. StartConversation(conversation, NPC, Spawn, "Documents? Well, surely Investigator Curfeld knows what's best. What else did he ask you to do?")
  427. end
  428. function dlg_22_4(NPC, Spawn)
  429. FaceTarget(NPC, Spawn)
  430. conversation = CreateConversation()
  431. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson040.mp3", "", "", 3404715072, 1791529373, Spawn)
  432. AddConversationOption(conversation, "Uh, actually not. He just asked me to find out whether it still emanated mystical energy.", "dlg_22_5")
  433. AddConversationOption(conversation, "Stop asking so many questions.")
  434. StartConversation(conversation, NPC, Spawn, "The ruins of that ancient shrine are certainly cursed. No doubt he asked you to destroy the shrine and sanctify the ground.")
  435. end
  436. function dlg_22_5(NPC, Spawn)
  437. FaceTarget(NPC, Spawn)
  438. conversation = CreateConversation()
  439. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson041.mp3", "", "", 3942402517, 3906834551, Spawn)
  440. AddConversationOption(conversation, "I'm sure there must be a good explanation.", "dlg_22_6")
  441. AddConversationOption(conversation, "Let's just forget about this.")
  442. StartConversation(conversation, NPC, Spawn, "What? I don't understand it. Why would he not want the shrine destroyed, especially if it still has arcane power? Let me see if he explains it in this journal.")
  443. end
  444. function dlg_22_6(NPC, Spawn)
  445. FaceTarget(NPC, Spawn)
  446. conversation = CreateConversation()
  447. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson042.mp3", "", "", 3952859177, 2366255979, Spawn)
  448. AddConversationOption(conversation, "Why would he have such notes?", "dlg_22_7")
  449. AddConversationOption(conversation, "You sound like a fool.")
  450. StartConversation(conversation, NPC, Spawn, "Wait... what is going on? This journal isn't about ending the threat of the undead and keeping Freeport safe. It contains notes on how to recreate the spell used by Elwyn Aquel and the Circle of Darkfathom to destroy our city!")
  451. end
  452. function dlg_22_7(NPC, Spawn)
  453. FaceTarget(NPC, Spawn)
  454. conversation = CreateConversation()
  455. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson043.mp3", "", "", 3919422201, 2706704450, Spawn)
  456. AddConversationOption(conversation, "What should we do?", "dlg_22_8")
  457. AddConversationOption(conversation, "I really don't care.")
  458. StartConversation(conversation, NPC, Spawn, "I'd heard it said that members of the investigator's family were worshipers of Prexus. They must have been members of the Circle of Darkfathom. Our city is in grave danger! We have to stop him!")
  459. end
  460. function dlg_22_8(NPC, Spawn)
  461. FaceTarget(NPC, Spawn)
  462. conversation = CreateConversation()
  463. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson044.mp3", "", "", 4213844077, 3519190459, Spawn)
  464. AddConversationOption(conversation, "I will. But what if he refuses to surrender?", "OfferQuest5")
  465. StartConversation(conversation, NPC, Spawn, "There's no time to waste! Curfeld must not be allowed to complete this unholy ritual. The safety of Freeport itself is at stake! Go back and face him. You must put an end to his foul scheme before all is lost.")
  466. end
  467. function OfferQuest5(NPC, Spawn)
  468. FaceTarget(NPC, Spawn)
  469. OfferQuest(NPC, Spawn, QUEST_5)
  470. end
  471. --------------------------------------------------------------------------------------------------------------------
  472. -- QUEST 5
  473. --------------------------------------------------------------------------------------------------------------------
  474. function OnQuest5(NPC, Spawn, conversation)
  475. if GetQuestStep(Spawn, QUEST_5) == 2 then
  476. AddConversationOption(conversation, "His plans are foiled. Freeport is safe.", "dlg_24_1")
  477. end
  478. AddConversationOption(conversation, "Not yet.")
  479. StartConversation(conversation, NPC, Spawn, "You're back! Did you stop Investigator Curfeld?")
  480. end
  481. function dlg_24_1(NPC, Spawn)
  482. SetStepComplete(Spawn, QUEST_5, 2)
  483. FaceTarget(NPC, Spawn)
  484. conversation = CreateConversation()
  485. AddConversationOption(conversation, "It was my pleasure to serve. Do you have any other tasks for me?", "OfferQuest6")
  486. AddConversationOption(conversation, "I'm tired of being around you.")
  487. StartConversation(conversation, NPC, Spawn, "Splendid work! I cannot express how pleased I am with all you have done for us. Your name shall be known within the Dismal Rage as a true hero. I would not be surprised if the Overlord himself hears of your actions this day. Please, take this reward as a token of thanks.")
  488. end
  489. --------------------------------------------------------------------------------------------------------------------
  490. -- QUEST 6
  491. --------------------------------------------------------------------------------------------------------------------
  492. function HelloAgainBraveOne(NPC, Spawn, conversation)
  493. AddConversationOption(conversation, "Are there any other tasks we can undertake together?", "OfferQuest6")
  494. AddConversationOption(conversation, "I'm leaving.")
  495. StartConversation(conversation, NPC, Spawn, "Hello again, brave one. I want to thank you again for defeating Curfield.")
  496. end
  497. function OfferQuest6(NPC, Spawn)
  498. FaceTarget(NPC, Spawn)
  499. OfferQuest(NPC, Spawn, QUEST_6)
  500. end
  501. function MustRemainHere(NPC, Spawn, conversation)
  502. AddConversationOption(conversation, "How do I get there?", "dlg_24_3")
  503. AddConversationOption(conversation, "I'm leaving.")
  504. StartConversation(conversation, NPC, Spawn, "I must remain here to finish my report for the Dismal Rage. However, I would like you to journey to the Freeport Ruins and seek out an acquaintance of mine named Captain Arellius. I have heard that your help is much needed there. I will send word that you are coming, hero of Freeport.")
  505. end
  506. function dlg_24_3(NPC, Spawn)
  507. FaceTarget(NPC, Spawn)
  508. conversation = CreateConversation()
  509. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson049.mp3", "", "", 3163252250, 288796806, Spawn)
  510. AddConversationOption(conversation, "Are there any other places you could recommend where I can find adventures?", "dlg_24_4")
  511. AddConversationOption(conversation, "Thank you, Inquisitor Thorson. Farewell.")
  512. StartConversation(conversation, NPC, Spawn, "The fastest route to the Ruins is to use the mariner's bell at the end of the dock for traveling outside the city proper. This will summon transportation to take you to the Ruins, where Captain Arellius of the Freeport Militia will be awaiting your assistance.")
  513. end
  514. function dlg_24_4(NPC, Spawn)
  515. FaceTarget(NPC, Spawn)
  516. conversation = CreateConversation()
  517. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson061.mp3", "", "", 2845086086, 1715171802, Spawn)
  518. AddConversationOption(conversation, "Tell me more about Custodian Zaddar.", "dlg_24_5")
  519. AddConversationOption(conversation, "Tell me more about Enforcer Kurdek.", "dlg_24_6")
  520. AddConversationOption(conversation, "I may seek them out. Thank you.")
  521. StartConversation(conversation, NPC, Spawn, "You can speak to Custodian Zaddar in the Graveyard and Enforcer Kurdek in the Sprawl. They could both use assistance from an able adventurer.")
  522. end
  523. function dlg_24_5(NPC, Spawn)
  524. FaceTarget(NPC, Spawn)
  525. conversation = CreateConversation()
  526. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson062.mp3", "", "", 4025975768, 1084751097, Spawn)
  527. AddConversationOption(conversation, "Tell me more about Enforcer Kurdek.", "dlg_24_6")
  528. AddConversationOption(conversation, "Thank you for the advice.")
  529. StartConversation(conversation, NPC, Spawn, "Custodian Zaddar in the Graveyard is trying to determine what's behind a recent increase in undead attacks. Use the mariner's bell on the docks of your home district to travel to Stonestair Byway. Head west until you see a passage to the south. The gate at the end leads to the Graveyard.")
  530. end
  531. function dlg_24_6(NPC, Spawn)
  532. FaceTarget(NPC, Spawn)
  533. conversation = CreateConversation()
  534. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson063.mp3", "", "", 3377387482, 1184471101, Spawn)
  535. AddConversationOption(conversation, "Tell me more about Custodian Zaddar.", "dlg_24_5")
  536. AddConversationOption(conversation, "Thank you for the advice.")
  537. StartConversation(conversation, NPC, Spawn, "Enforcer Kurdek in the Sprawl could use a hand keeping the local gangs in line. To journey to the Sprawl, use the mariner's bell on the docks of your home district to travel to Big Bend. Follow the halls north, then take the west passageway to the west gate.")
  538. end