CustodianZaddarSullissia.lua 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/CustodianZaddarSullissia.lua
  3. Script Purpose : Custodian Zaddar Sullissia <Academy of Arcane Science>
  4. Script Author : Scatman
  5. Script Date : 2009.04.11
  6. Script Notes :
  7. --]]
  8. local DARKELF_MENTOR_QUEST_5 = 195
  9. local QUEST_1 = 231
  10. local QUEST_2 = 232
  11. local QUEST_3 = 233
  12. local QUEST_4 = 234
  13. local QUEST_5 = 235
  14. local QUEST_6 = 236
  15. local QUEST_7 = 238
  16. local QUEST_8 = 251
  17. function spawn(NPC)
  18. ProvidesQuest(NPC, QUEST_1)
  19. ProvidesQuest(NPC, QUEST_2)
  20. ProvidesQuest(NPC, QUEST_4)
  21. ProvidesQuest(NPC, QUEST_5)
  22. ProvidesQuest(NPC, QUEST_6)
  23. ProvidesQuest(NPC, QUEST_7)
  24. ProvidesQuest(NPC, QUEST_8)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. if HasQuest(Spawn, DARKELF_MENTOR_QUEST_5) then
  33. AddConversationOption(conversation, "My name is " .. GetName(Spawn) .. ". Aldera V'exxa in Longshadow Alley sent me to speak to you.", "dlg_0_1")
  34. end
  35. if HasCompletedQuest(Spawn, QUEST_1) then
  36. if HasCompletedQuest(Spawn, QUEST_2) then
  37. if HasCompletedQuest(Spawn, QUEST_3) then
  38. if HasCompletedQuest(Spawn, QUEST_4) then
  39. if HasCompletedQuest(Spawn, QUEST_5) then
  40. if HasCompletedQuest(Spawn, QUEST_6) then
  41. if HasCompletedQuest(Spawn, QUEST_7) then
  42. if HasCompletedQuest(Spawn, QUEST_8) then
  43. Say(NPC, "Good to see you! Thank you for your help. The Overlord is quite pleased!", Spawn)
  44. elseif HasQuest(Spawn, QUEST_8) then
  45. OnQuest8(NPC, Spawn, conversation)
  46. else
  47. YourAssistance(NPC, Spawn, conversation)
  48. end
  49. elseif HasQuest(Spawn, QUEST_7) then
  50. OnQuest7(NPC, Spawn, conversation)
  51. else
  52. ExcellentWork(NPC, Spawn, conversation)
  53. end
  54. elseif HasQuest(Spawn, QUEST_6) then
  55. OnQuest6(NPC, Spawn, conversation)
  56. else
  57. OfferQuest6(NPC, Spawn)
  58. end
  59. elseif HasQuest(Spawn, QUEST_5) then
  60. OnQuest5(NPC, Spawn, conversation)
  61. else
  62. FinishTranslation(NPC, Spawn, conversation)
  63. end
  64. elseif HasQuest(Spawn, QUEST_4) then
  65. OnQuest4(NPC, Spawn, conversation)
  66. else
  67. HearingMore(NPC, Spawn, conversation)
  68. end
  69. elseif HasQuest(Spawn, QUEST_3) then
  70. OnQuest3(NPC, Spawn, conversation)
  71. else
  72. OnQuest2(NPC, Spawn, conversation)
  73. end
  74. elseif HasQuest(Spawn, QUEST_2) then
  75. OnQuest2(NPC, Spawn, conversation)
  76. else
  77. PleasedToHear(NPC, Spawn)
  78. end
  79. elseif HasQuest(Spawn, QUEST_1) then
  80. OnQuest1(NPC, Spawn, conversation)
  81. else
  82. HmmWhoMightYouBe(NPC, Spawn, conversation)
  83. end
  84. end
  85. ------------------------------------------------------------------------------------------------------------------------
  86. -- DARKELF_MENTOR_QUEST_5
  87. ------------------------------------------------------------------------------------------------------------------------
  88. function HmmWhoMightYouBe(NPC, Spawn, conversation)
  89. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar001.mp3", "", "", 1088752070, 3560573286, Spawn)
  90. AddConversationOption(conversation, "Who are you?", "dlg_1_1")
  91. AddConversationOption(conversation, "Maybe another time.")
  92. StartConversation(conversation, NPC, Spawn, "Hmmmm, and who might you be? Come forward so I can look upon you, stranger.")
  93. end
  94. function dlg_0_1(NPC, Spawn)
  95. SetStepComplete(Spawn, DARKELF_MENTOR_QUEST_5, 1)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar002.mp3", "", "", 2597518553, 302585905, Spawn)
  99. if not HasCompletedQuest(Spawn, QUEST_1) or not HasQuest(Spawn, QUEST_1) then
  100. AddConversationOption(conversation, "I am honored that you know my name.", "dlg_1_1")
  101. end
  102. AddConversationOption(conversation, "I must be going.")
  103. StartConversation(conversation, NPC, Spawn, "Ah, yes. You look exactly how you were described to me.")
  104. end
  105. ------------------------------------------------------------------------------------------------------------------------
  106. -- QUEST 1
  107. ------------------------------------------------------------------------------------------------------------------------
  108. function dlg_1_1(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar004.mp3", "", "", 1305194429, 389290404, Spawn)
  112. AddConversationOption(conversation, "Well, what is your name?", "dlg_1_2")
  113. AddConversationOption(conversation, "How rude!")
  114. StartConversation(conversation, NPC, Spawn, "You mean to tell me you've never heard of me? Well, I shouldn't expect a common adventurer such as you to associate with people of my social status, so I guess I shouldn't be surprised.")
  115. end
  116. function dlg_1_2(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar005.mp3", "", "", 2116026310, 2780658398, Spawn)
  120. AddConversationOption(conversation, "What would a library custodian be doing out here in a graveyard? You're a long way from the library.", "dlg_1_3")
  121. AddConversationOption(conversation, "See you another time, custodian.")
  122. StartConversation(conversation, NPC, Spawn, "Allow me to introduce myself. I am Zaddar, herald of the arcane, necromancer and custodian to the great library within the Academy of Arcane Science. I can assure you that you will meet none greater, no matter where your various exploits take you on Norrath.")
  123. end
  124. function dlg_1_3(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar006.mp3", "", "", 2975294120, 669717653, Spawn)
  128. AddConversationOption(conversation, "I was not. Please continue.", "dlg_1_4")
  129. AddConversationOption(conversation, "I've heard enough stories. Do you have some work for me?", "dlg_1_25")
  130. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  131. StartConversation(conversation, NPC, Spawn, "This is not just a simple graveyard, mind you. There are more than just Freeport citizens buried here; this is where the enemies of the Overlord are entombed as well. You mean to tell me you were not aware of this?")
  132. end
  133. function dlg_1_4(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar007.mp3", "", "", 2814487874, 1269742926, Spawn)
  137. AddConversationOption(conversation, "I'm ready to listen.", "dlg_1_5")
  138. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  139. StartConversation(conversation, NPC, Spawn, "I do not like to repeat myself, so please lend me an ear as I speak. Judging by your appearance, you haven't been here too long, so this might teach you a thing or two.")
  140. end
  141. function dlg_1_5(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar008.mp3", "", "", 3184818985, 1210293925, Spawn)
  145. AddConversationOption(conversation, "Please continue.", "dlg_1_6")
  146. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  147. StartConversation(conversation, NPC, Spawn, "Many ages ago, the land where this graveyard now stands was once the northern part of Freeport. It was home to a corrupt order of knights that was blindly loyal to an ancient god called Mithaniel Marr.")
  148. end
  149. function dlg_1_6(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar009.mp3", "", "", 3546119779, 2241533519, Spawn)
  153. AddConversationOption(conversation, "I am listening. I find your story intriguing.", "dlg_1_7")
  154. AddConversationOption(conversation, "Enough of this story! Do you have work for me at this time, Zaddar?", "dlg_1_25")
  155. AddConversationOption(conversation, "I don't have time for stories.")
  156. StartConversation(conversation, NPC, Spawn, "This order of heretics was known as the Knights of Truth. They were a group of confused and dangerous men that stood in the way of Freeport's progress. Are you paying attention? ")
  157. end
  158. function dlg_1_7(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar010.mp3", "", "", 2323334828, 1568404929, Spawn)
  162. AddConversationOption(conversation, "Please continue.", "dlg_1_8")
  163. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  164. StartConversation(conversation, NPC, Spawn, "As time passed, the Freeport Militia and others loyal to the Overlord grew in power and number. The Overlord conceived a plan to liberate his great city from the clutches of the fanatical followers of Marr.")
  165. end
  166. function dlg_1_8(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. conversation = CreateConversation()
  169. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar011.mp3", "", "", 1013381983, 2286424622, Spawn)
  170. AddConversationOption(conversation, "So our Overlord is the savior of the people of Freeport!", "dlg_1_9")
  171. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  172. StartConversation(conversation, NPC, Spawn, "The Overlord called forth the brave Freeport Militia and led his great army to drive out the twisted followers of Marr from our city once and for all. The people cheered to see that the hour of their liberation was at hand!")
  173. end
  174. function dlg_1_9(NPC, Spawn)
  175. FaceTarget(NPC, Spawn)
  176. conversation = CreateConversation()
  177. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar012.mp3", "", "", 2459406533, 4282970876, Spawn)
  178. AddConversationOption(conversation, "Go on with the story.", "dlg_1_10")
  179. AddConversationOption(conversation, "I've heard enough. I am ready to undertake a task.", "dlg_1_25")
  180. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  181. StartConversation(conversation, NPC, Spawn, "Indeed he is! As the army of the Overlord approached, many members of the Knights of Truth abandoned their posts in fear and fled deep into an ancient citadel known as Befallen. Are you listening to me? I really don't have time to waste, you know!")
  182. end
  183. function dlg_1_10(NPC, Spawn)
  184. FaceTarget(NPC, Spawn)
  185. conversation = CreateConversation()
  186. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar013.mp3", "", "", 1868138883, 1737796662, Spawn)
  187. AddConversationOption(conversation, "Please go on.", "dlg_1_11")
  188. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  189. StartConversation(conversation, NPC, Spawn, "As I was saying... The Overlord was determined to free his people from the oppression of the Knights of Truth. He marched his forces to the gates of North Freeport, very near where we now stand. ")
  190. end
  191. function dlg_1_11(NPC, Spawn)
  192. FaceTarget(NPC, Spawn)
  193. conversation = CreateConversation()
  194. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar014.mp3", "", "", 2249548652, 1367659685, Spawn)
  195. AddConversationOption(conversation, "Please continue.", "dlg_1_12")
  196. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  197. StartConversation(conversation, NPC, Spawn, "Calling forth his mighty siege machines, the Overlord's armies burst through the gates and confronted the cowardly Knights of Truth.")
  198. end
  199. function dlg_1_12(NPC, Spawn)
  200. FaceTarget(NPC, Spawn)
  201. conversation = CreateConversation()
  202. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar015.mp3", "", "", 2043193912, 3903718637, Spawn)
  203. AddConversationOption(conversation, "A fascinating tale, please continue.", "dlg_1_13")
  204. AddConversationOption(conversation, "I don't have time for stories, Zaddar.")
  205. StartConversation(conversation, NPC, Spawn, "The fighting went on for days as the Knights of Truth tried every desperate measure they could to retain their grip on Freeport's people. But these tyrants were no match for the Overlord's might!")
  206. end
  207. function dlg_1_13(NPC, Spawn)
  208. FaceTarget(NPC, Spawn)
  209. conversation = CreateConversation()
  210. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar016.mp3", "", "", 3050344406, 3484932649, Spawn)
  211. AddConversationOption(conversation, "Go on.", "dlg_1_14")
  212. AddConversationOption(conversation, "I've heard all I can bear. Do you have any work for me?", "dlg_1_25")
  213. AddConversationOption(conversation, "Maybe another time, Zaddar.")
  214. StartConversation(conversation, NPC, Spawn, "One by one the Knights of Truth fell to the liberating blades of the Overlord's .. GetName(Spawn) .. . fighters, the Freeport Militia. It must have been a grand battle to behold!")
  215. end
  216. function dlg_1_14(NPC, Spawn)
  217. FaceTarget(NPC, Spawn)
  218. conversation = CreateConversation()
  219. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar017.mp3", "", "", 820950367, 810980839, Spawn)
  220. AddConversationOption(conversation, "I see, please continue.", "dlg_1_15")
  221. AddConversationOption(conversation, "I must be going.")
  222. StartConversation(conversation, NPC, Spawn, "In the final hour of battle, the Freeport Militia encircled the remaining Knights of Truth. The captain of the wicked followers of Marr, Sir Haligan, looked up to see the mighty figure of the Overlord moving toward him.")
  223. end
  224. function dlg_1_15(NPC, Spawn)
  225. FaceTarget(NPC, Spawn)
  226. conversation = CreateConversation()
  227. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar018.mp3", "", "", 975559135, 1801151698, Spawn)
  228. AddConversationOption(conversation, "Interesting, please go on.", "dlg_1_16")
  229. AddConversationOption(conversation, "Thanks for the history lesson, but I must go.")
  230. StartConversation(conversation, NPC, Spawn, "Realizing his cause was lost, Sir Haligan tried one last desperate attack against the Overlord, but it was to no avail. The minions of the Overlord rushed in with blades ready and struck true, extinguishing the foul Sir Haligan, leader of the oppressors.")
  231. end
  232. function dlg_1_16(NPC, Spawn)
  233. FaceTarget(NPC, Spawn)
  234. conversation = CreateConversation()
  235. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar019.mp3", "", "", 3729026359, 1609932090, Spawn)
  236. AddConversationOption(conversation, "Do go on.", "dlg_1_17")
  237. AddConversationOption(conversation, "It's been fun, but I must part.")
  238. StartConversation(conversation, NPC, Spawn, "This graveyard now houses the bones of the fallen Knights of Truth, buried where they once fought all those long years ago. It is said that the echoes of that ancient battle can still be heard in the deep, dark night.")
  239. end
  240. function dlg_1_17(NPC, Spawn)
  241. FaceTarget(NPC, Spawn)
  242. conversation = CreateConversation()
  243. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar020.mp3", "", "", 3451823684, 639969226, Spawn)
  244. AddConversationOption(conversation, "Please go on with your tale.", "dlg_1_18")
  245. AddConversationOption(conversation, "You are quite long-winded, Zaddar. I seek adventure.", "dlg_1_25")
  246. AddConversationOption(conversation, "I must depart.")
  247. StartConversation(conversation, NPC, Spawn, "By order of the Overlord, the tombs of the knights slain that day were sealed with mortar and chains, trapping their bodies beneath the soil forevermore.")
  248. end
  249. function dlg_1_18(NPC, Spawn)
  250. FaceTarget(NPC, Spawn)
  251. conversation = CreateConversation()
  252. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar021.mp3", "", "", 2453176825, 385758533, Spawn)
  253. AddConversationOption(conversation, "Well, I guess you really ARE more than just a custodian.", "dlg_1_19")
  254. AddConversationOption(conversation, "It's been fun, but I must depart.")
  255. StartConversation(conversation, NPC, Spawn, "Personally, I believe that the Overlord had the tombs sealed for fear that Mithaniel Marr might resurrect his fallen knights to do battle once more. But if you would be so kind, please don't repeat that speculation.")
  256. end
  257. function dlg_1_19(NPC, Spawn)
  258. FaceTarget(NPC, Spawn)
  259. conversation = CreateConversation()
  260. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar022.mp3", "", "", 1193428244, 1371088261, Spawn)
  261. AddConversationOption(conversation, "What sort of research?", "dlg_1_20")
  262. AddConversationOption(conversation, "I must go. Farewell!")
  263. StartConversation(conversation, NPC, Spawn, "Custodian indeed, but I'm sure an adventurer such as you can fathom just what that entails within the walls of the Academy of Arcane Science. I'll have you know that I'm here conducting research of my own as well.")
  264. end
  265. function dlg_1_20(NPC, Spawn)
  266. FaceTarget(NPC, Spawn)
  267. conversation = CreateConversation()
  268. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar023.mp3", "", "", 3549973784, 3687441943, Spawn)
  269. AddConversationOption(conversation, "Is that so?", "dlg_1_21")
  270. AddConversationOption(conversation, "How boring. Goodbye.")
  271. StartConversation(conversation, NPC, Spawn, "Should I take this interest as genuine or some sort of feint? Well regardless, I love listening to myself speak. I sound great, don't I? The library sent me here to check on the tombs of the fallen Knights of Truth.")
  272. end
  273. function dlg_1_21(NPC, Spawn)
  274. FaceTarget(NPC, Spawn)
  275. conversation = CreateConversation()
  276. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar024.mp3", "", "", 2941976537, 386791284, Spawn)
  277. AddConversationOption(conversation, "Tell me more.", "dlg_1_22")
  278. AddConversationOption(conversation, "I'd imagine so. Can I be of assistance?", "dlg_1_25")
  279. AddConversationOption(conversation, "You bore me, Zaddar.")
  280. StartConversation(conversation, NPC, Spawn, "I imagine that The Overlord may be concerned because it's been nearly four-hundred years to the day of that great battle, and spirits trapped in this world are always longing for vengeance.")
  281. end
  282. function dlg_1_22(NPC, Spawn)
  283. FaceTarget(NPC, Spawn)
  284. conversation = CreateConversation()
  285. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar025.mp3", "", "", 3804418158, 1108808310, Spawn)
  286. AddConversationOption(conversation, "What does this have to do with me?", "dlg_1_23")
  287. AddConversationOption(conversation, "Time presses, and I must depart.")
  288. StartConversation(conversation, NPC, Spawn, "The Academy has commanded me to research a long-lost spell. I believe that this incantation is from an ancient tome, dating back to the time the Knights of Truth were slain and the people of Freeport were liberated.")
  289. end
  290. function dlg_1_23(NPC, Spawn)
  291. FaceTarget(NPC, Spawn)
  292. conversation = CreateConversation()
  293. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar026.mp3", "", "", 3654413929, 837264650, Spawn)
  294. AddConversationOption(conversation, "What are you asking of me?", "dlg_1_24")
  295. AddConversationOption(conversation, "See you another time, bye.")
  296. StartConversation(conversation, NPC, Spawn, "To be blunt, " .. GetName(Spawn) .. ". I need someone with your skills. Only a true hero can help me with this task. The Overlord himself demanded that the Academy complete this spell, and we must not disappoint him.")
  297. end
  298. function dlg_1_24(NPC, Spawn)
  299. FaceTarget(NPC, Spawn)
  300. conversation = CreateConversation()
  301. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar027.mp3", "", "", 2666723446, 2842007021, Spawn)
  302. AddConversationOption(conversation, "So let's discuss this task.", "dlg_1_25")
  303. AddConversationOption(conversation, "Fit, but not willing.")
  304. StartConversation(conversation, NPC, Spawn, "If we work together, we can both prosper and increase our standing here in Freeport. But before collecting the pages, I have a task that needs doing, and I think you are the one to do it.")
  305. end
  306. function dlg_1_25(NPC, Spawn)
  307. FaceTarget(NPC, Spawn)
  308. conversation = CreateConversation()
  309. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar028.mp3", "", "", 2264278901, 2484625110, Spawn)
  310. AddConversationOption(conversation, "I will help you.", "dlg_1_26")
  311. AddConversationOption(conversation, "Nay, I must be off.")
  312. StartConversation(conversation, NPC, Spawn, "I wouldn't trust anyone but a loyal follower of the Overlord with the task before me, I'm sure you understand. Normally I'd take care of such things myself, but these duties are far below my level of expertise and intellect. What do you say?")
  313. end
  314. function dlg_1_26(NPC, Spawn)
  315. FaceTarget(NPC, Spawn)
  316. conversation = CreateConversation()
  317. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar029.mp3", "", "", 1039120321, 2615840758, Spawn)
  318. AddConversationOption(conversation, "Is this an important task?", "OfferQuest1")
  319. AddConversationOption(conversation, "I don't have time for that.")
  320. StartConversation(conversation, NPC, Spawn, "Good, I knew you would make the smart choice. Go check on the tombs of the fallen knights, make sure they're all still sealed and that grave robbers have not disturbed any of the mausoleums.")
  321. end
  322. function OfferQuest1(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. OfferQuest(NPC, Spawn, QUEST_1)
  325. end
  326. function OnQuest1(NPC, Spawn, conversation)
  327. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar031.mp3", "", "", 3448241542, 826932721, Spawn)
  328. if (GetQuestStep(Spawn, QUEST_1) == 6) then
  329. AddConversationOption(conversation, "I checked the tombs as you asked.", "PleasedToHear")
  330. end
  331. AddConversationOption(conversation, "I'm not finished yet, Zaddar.")
  332. StartConversation(conversation, NPC, Spawn, "Back so soon? I certainly hope you didn't just sneak off somewhere and take a nap. The Overlord is not to be trifled with!")
  333. end
  334. function PleasedToHear(NPC, Spawn)
  335. if HasQuest(Spawn, QUEST_1) then
  336. SetStepComplete(Spawn, QUEST_1, 6)
  337. end
  338. FaceTarget(NPC, Spawn)
  339. conversation = CreateConversation()
  340. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar032.mp3", "", "", 2571525928, 4169654402, Spawn)
  341. AddConversationOption(conversation, "I was attacked by a skeleton, but I managed to defend myself.", "dlg_7_2")
  342. AddConversationOption(conversation, "I don't have time to discuss this right now.")
  343. StartConversation(conversation, NPC, Spawn, "I am pleased to hear that you fulfilled my request. Was there any trouble?")
  344. end
  345. ------------------------------------------------------------------------------------------------------------
  346. -- QUEST 2
  347. ------------------------------------------------------------------------------------------------------------
  348. function dlg_7_2(NPC, Spawn)
  349. FaceTarget(NPC, Spawn)
  350. conversation = CreateConversation()
  351. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar033.mp3", "", "", 2569692294, 2342899886, Spawn)
  352. AddConversationOption(conversation, "No, it was the remains of Sir Haligan, Captain of the Knights of Truth.", "dlg_7_3")
  353. AddConversationOption(conversation, "I don't have time to discuss this.")
  354. StartConversation(conversation, NPC, Spawn, "Skeleton attacks are not uncommon in the Graveyard, as you have discovered. I presume this was just some ordinary fiend?")
  355. end
  356. function dlg_7_3(NPC, Spawn)
  357. FaceTarget(NPC, Spawn)
  358. conversation = CreateConversation()
  359. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar034.mp3", "", "", 1688032152, 1661878378, Spawn)
  360. AddConversationOption(conversation, "Who is Varacus?", "dlg_7_4")
  361. AddConversationOption(conversation, "I think this is your problem, not mine.")
  362. StartConversation(conversation, NPC, Spawn, "Fascinating! The Overlord was wise to have us check on the security of the tombs. I wonder if Varacus realizes what is transpiring here in the Graveyard.")
  363. end
  364. function dlg_7_4(NPC, Spawn)
  365. FaceTarget(NPC, Spawn)
  366. conversation = CreateConversation()
  367. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar035.mp3", "", "", 2382394256, 2829986505, Spawn)
  368. AddConversationOption(conversation, "I will seek him out.", "OfferQuest2")
  369. AddConversationOption(conversation, "Maybe another time.")
  370. StartConversation(conversation, NPC, Spawn, "Varacus TKur is the leader of the Keepers of Ethernere here in the Graveyard. He has some pages of an ancient tome that should help in my research. Tell him that I sent you, and if he gives you any trouble, remind him that this errand comes from the Overlord himself passed down through the Academy.")
  371. end
  372. function OfferQuest2(NPC, Spawn)
  373. FaceTarget(NPC, Spawn)
  374. OfferQuest(NPC, Spawn, QUEST_2)
  375. end
  376. function OnQuest2(NPC, Spawn, conversation)
  377. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar037.mp3", "", "", 2173814710, 3365638930, Spawn)
  378. AddConversationOption(conversation, "Not yet.")
  379. StartConversation(conversation, NPC, Spawn, "Ah, " .. GetName(Spawn) .. ". I see you have returned. Have you brought back the pages you obtained from Varacus of the Keepers of Ethernere?")
  380. end
  381. ------------------------------------------------------------------------------------------------------------------------
  382. -- QUEST 3
  383. ------------------------------------------------------------------------------------------------------------------------
  384. function OnQuest3(NPC, Spawn, conversation)
  385. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar037.mp3", "", "", 2173814710, 3365638930, Spawn)
  386. if GetQuestStep(Spawn, QUEST_3) == 5 then
  387. AddConversationOption(conversation, "I spoke to Varacus and have returned with the pages you needed.", "dlg_4_1")
  388. end
  389. AddConversationOption(conversation, "Not yet.")
  390. StartConversation(conversation, NPC, Spawn, "Ah, " .. GetName(Spawn) .. ". I see you have returned. Have you brought back the pages you obtained from Varacus of the Keepers of Ethernere?")
  391. end
  392. function dlg_4_1(NPC, Spawn)
  393. if HasQuest(Spawn, QUEST_3) then
  394. SetStepComplete(Spawn, QUEST_3, 5)
  395. end
  396. FaceTarget(NPC, Spawn)
  397. conversation = CreateConversation()
  398. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar038.mp3", "", "", 3675166074, 228752459, Spawn)
  399. AddConversationOption(conversation, "Why are these pages so important?", "HearingMore")
  400. AddConversationOption(conversation, "I think I'll keep them for now.")
  401. StartConversation(conversation, NPC, Spawn, "Excellent work! Please give me the pages at once. There is no time to waste.")
  402. end
  403. ------------------------------------------------------------------------------------------------------------------------
  404. -- QUEST 4
  405. ------------------------------------------------------------------------------------------------------------------------
  406. function HearingMore(NPC, Spawn, conversation)
  407. if conversation == nil then
  408. FaceTarget(NPC, Spawn)
  409. conversation = CreateConversation()
  410. end
  411. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar039.mp3", "", "", 1528282125, 4004744343, Spawn)
  412. AddConversationOption(conversation, "Yes, please continue with your story.", "dlg_4_3")
  413. AddConversationOption(conversation, "I don't wish to hear any more. Do you have another task for me?", "dlg_4_14")
  414. AddConversationOption(conversation, "I have no time for this.")
  415. StartConversation(conversation, NPC, Spawn, "Interested in hearing more of my tale, are you? As you recall, the fallen Knights of Truth are buried here in the Graveyard.")
  416. end
  417. function dlg_4_3(NPC, Spawn)
  418. FaceTarget(NPC, Spawn)
  419. conversation = CreateConversation()
  420. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar040.mp3", "", "", 900290170, 3799291626, Spawn)
  421. AddConversationOption(conversation, "That explains why the seal on Sir Haligan's tomb appeared to be disturbed.", "dlg_4_4")
  422. AddConversationOption(conversation, "I must be going.")
  423. StartConversation(conversation, NPC, Spawn, "Recently grave robbers have invaded the cemetery by night, breaking open the seals placed on the graves of the knights. This has enabled some of those cursed souls to rise and walk the land again.")
  424. end
  425. function dlg_4_4(NPC, Spawn)
  426. FaceTarget(NPC, Spawn)
  427. conversation = CreateConversation()
  428. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar041.mp3", "", "", 3846878126, 1397586167, Spawn)
  429. AddConversationOption(conversation, "What concern?", "dlg_4_5")
  430. AddConversationOption(conversation, "I don't have time for this.")
  431. StartConversation(conversation, NPC, Spawn, "It does indeed. But there is a greater concern we must face, which is why I needed these pages.")
  432. end
  433. function dlg_4_5(NPC, Spawn)
  434. FaceTarget(NPC, Spawn)
  435. conversation = CreateConversation()
  436. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar042.mp3", "", "", 2741984581, 4167326944, Spawn)
  437. AddConversationOption(conversation, "If the ward still works, why are you concerned?", "dlg_4_6")
  438. AddConversationOption(conversation, "Enough of this tale. Do you have another task for me?", "dlg_4_14")
  439. AddConversationOption(conversation, "I can't bear any more of this.")
  440. StartConversation(conversation, NPC, Spawn, "Long ago, our Overlord commanded the Foci and the priests of the Dismal Rage to place a powerful ward upon this graveyard. It bound the spirits of those buried here to this place, so that even if they escaped their tombs, they would be unable to leave the Graveyard.")
  441. end
  442. function dlg_4_6(NPC, Spawn)
  443. FaceTarget(NPC, Spawn)
  444. conversation = CreateConversation()
  445. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar043.mp3", "", "", 1966519844, 1090032745, Spawn)
  446. AddConversationOption(conversation, "Aren't the gods long gone?", "dlg_4_7")
  447. AddConversationOption(conversation, "I have no time for this.")
  448. StartConversation(conversation, NPC, Spawn, "The binding spell was lost long ago. But the increase in undead activity may mean that someone loyal to Mithaniel Marr, or even the god himself, might be trying to shatter the ward and let the undead travel beyond these walls into the city itself.")
  449. end
  450. function dlg_4_7(NPC, Spawn)
  451. FaceTarget(NPC, Spawn)
  452. conversation = CreateConversation()
  453. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar044.mp3", "", "", 277589330, 769361598, Spawn)
  454. AddConversationOption(conversation, "Why would anyone from Qeynos want to unleash the undead?", "dlg_4_8")
  455. AddConversationOption(conversation, "Time for me to go.")
  456. StartConversation(conversation, NPC, Spawn, "No one is certain what became of the ancient gods. It's best not to take chances in any case. It could be some fanatical follower of Marr behind this, or even those savages from the decrepit Kingdom of Qeynos.")
  457. end
  458. function dlg_4_8(NPC, Spawn)
  459. FaceTarget(NPC, Spawn)
  460. conversation = CreateConversation()
  461. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar045.mp3", "", "", 1332836104, 335069467, Spawn)
  462. AddConversationOption(conversation, "Surely the Overlord could defeat the knights again.", "dlg_4_9")
  463. AddConversationOption(conversation, "I've heard enough. How can I help?", "dlg_4_14")
  464. AddConversationOption(conversation, "I have no interest in this.")
  465. StartConversation(conversation, NPC, Spawn, "I'm sure some of the corrupt citizens of Qeynos are still loyal to Marr. By breaking the binding ward, the fallen Knights of Truth would be free to rise and seek revenge on our beloved Overlord. This cannot come to pass!")
  466. end
  467. function dlg_4_9(NPC, Spawn)
  468. FaceTarget(NPC, Spawn)
  469. conversation = CreateConversation()
  470. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar046.mp3", "", "", 1569346274, 502297645, Spawn)
  471. AddConversationOption(conversation, "Does Qeynos wish to go to war with us?", "dlg_4_10")
  472. AddConversationOption(conversation, "This no longer concerns me.")
  473. StartConversation(conversation, NPC, Spawn, "Of course the Overlord and the Freeport Militia could handle the undead army. But the chaos caused by their presence would afford the cowardly legions of Antonia Bayle the chance to launch a sneak attack on our city. That wretched queen is just waiting for a chance to strike.")
  474. end
  475. function dlg_4_10(NPC, Spawn)
  476. FaceTarget(NPC, Spawn)
  477. conversation = CreateConversation()
  478. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar047.mp3", "", "", 103040030, 1105730597, Spawn)
  479. AddConversationOption(conversation, "Are you going to cast the binding ward again?", "dlg_4_11")
  480. AddConversationOption(conversation, "Nonsense, I must leave.")
  481. StartConversation(conversation, NPC, Spawn, "Qeynosians are cowards, to be sure. They are afraid of open war with the Overlord. However, striking at us through this graveyard is just the kind of tactic they would use.")
  482. end
  483. function dlg_4_11(NPC, Spawn)
  484. FaceTarget(NPC, Spawn)
  485. conversation = CreateConversation()
  486. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar048.mp3", "", "", 3216601317, 4107541552, Spawn)
  487. AddConversationOption(conversation, "So what are we going to do?", "dlg_4_12")
  488. AddConversationOption(conversation, "Let's get to work. What do you want me to do?", "dlg_4_14")
  489. AddConversationOption(conversation, "Good luck with that, bye!")
  490. StartConversation(conversation, NPC, Spawn, "Casting another ward while the first one is in effect may have unforeseen consequences. We don't want to risk that.")
  491. end
  492. function dlg_4_12(NPC, Spawn)
  493. FaceTarget(NPC, Spawn)
  494. conversation = CreateConversation()
  495. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar049.mp3", "", "", 3917748899, 1321078485, Spawn)
  496. AddConversationOption(conversation, "How can you tell if the ward remains in effect?", "dlg_4_13")
  497. AddConversationOption(conversation, "I'll let you take care of that.")
  498. StartConversation(conversation, NPC, Spawn, "I was sent here to complete two tasks. First, to obtain these pages so they did not fall into the wrong hands. Second, to determine if the ward still holds or if the spell must be cast again.")
  499. end
  500. function dlg_4_13(NPC, Spawn)
  501. FaceTarget(NPC, Spawn)
  502. conversation = CreateConversation()
  503. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar050.mp3", "", "", 1966326887, 1363957542, Spawn)
  504. AddConversationOption(conversation, "Yes, I am ready to serve the Overlord again.", "dlg_4_14")
  505. AddConversationOption(conversation, "Not now, I must be going.")
  506. StartConversation(conversation, NPC, Spawn, "I only know of one way to be sure, but it's somewhat risky. Do you feel up to the challenge? You've served me well in the past, so I have faith that you will be able to accomplish this for me as well.")
  507. end
  508. function dlg_4_14(NPC, Spawn)
  509. FaceTarget(NPC, Spawn)
  510. conversation = CreateConversation()
  511. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar051.mp3", "", "", 880187094, 917754563, Spawn)
  512. if HasQuest(Spawn, QUEST_4) and GetQuestStep(Spawn, QUEST_4) == 1 then
  513. AddConversationOption(conversation, "You mean that ruined tower near the Keepers of Ethernere?", "dlg_4_15")
  514. else
  515. AddConversationOption(conversation, "You mean that ruined tower near the Keepers of Ethernere?", "OfferQuest4")
  516. end
  517. StartConversation(conversation, NPC, Spawn, "Good, this is what I need done. I want you to take this ancient relic to the ruins of the Tower of Marr and place it in the doorway. The relic has been stained with the blood of the Knights of Truth and has been in the keeping of the Academy of Arcane Science since the day of that final battle.")
  518. end
  519. function OfferQuest4(NPC, Spawn)
  520. FaceTarget(NPC, Spawn)
  521. OfferQuest(NPC, Spawn, QUEST_4)
  522. end
  523. function dlg_4_15(Quest, QuestGiver, Player)
  524. FaceTarget(QuestGiver, Player)
  525. conversation = CreateConversation()
  526. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar052.mp3", "", "", 3643355771, 3506584636, Player)
  527. AddConversationOption(conversation, "Is something bad going to happen if I take it there?", "dlg_4_16")
  528. AddConversationOption(conversation, "I can't help you with this.")
  529. StartConversation(conversation, QuestGiver, Player, "Yes, the remains of that tower still serve as a tribute to Mithaniel Marr. Such a relic would be seen as an abomination to him.")
  530. end
  531. function dlg_4_16(NPC, Spawn)
  532. SetStepComplete(Spawn, QUEST_4, 1)
  533. -- Relic of Unholy Power
  534. -- TODO: Display quest reward popup
  535. if not HasItem(Spawn, 7868) then
  536. SummonItem(Spawn, 7868)
  537. end
  538. FaceTarget(NPC, Spawn)
  539. conversation = CreateConversation()
  540. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar053.mp3", "", "", 1936656377, 4165203130, Spawn)
  541. AddConversationOption(conversation, "What happens if the ward doesn't hold?", "dlg_4_17")
  542. AddConversationOption(conversation, "Maybe you should find someone else to help you.")
  543. StartConversation(conversation, NPC, Spawn, "Do not worry. The binding ward that keeps the undead here also prevents outside influences from entering the Graveyard and keeps any lingering energies in check. So long as the ward holds, you should be safe when you place that relic in the doorway.")
  544. end
  545. function dlg_4_17(NPC, Spawn)
  546. FaceTarget(NPC, Spawn)
  547. conversation = CreateConversation()
  548. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar054.mp3", "", "", 2019714186, 114732111, Spawn)
  549. AddConversationOption(conversation, "If I do this, what's in it for me?", "dlg_4_18")
  550. AddConversationOption(conversation, "I don't think this is a good idea.")
  551. StartConversation(conversation, NPC, Spawn, "What could happen? The gods have been gone for centuries. You have proven yourself to be a brave hero of Freeport. Do not waver now!")
  552. end
  553. function dlg_4_18(NPC, Spawn)
  554. FaceTarget(NPC, Spawn)
  555. conversation = CreateConversation()
  556. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar055.mp3", "", "", 3077792314, 2962776024, Spawn)
  557. AddConversationOption(conversation, "Very well, I'll do it.", "dlg_4_19")
  558. AddConversationOption(conversation, "I don't need fame. Goodbye.")
  559. StartConversation(conversation, NPC, Spawn, "Spoken like a true citizen of Freeport! Listen, if you help me with this, I'll be sure you are rewarded for your efforts. The Academy will take notice of us both!")
  560. end
  561. function dlg_4_19(NPC, Spawn)
  562. FaceTarget(NPC, Spawn)
  563. conversation = CreateConversation()
  564. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar056.mp3", "", "", 2313049921, 3908905294, Spawn)
  565. AddConversationOption(conversation, "I will return when I've completed the test, Zaddar.", "dlg_4_20")
  566. StartConversation(conversation, NPC, Spawn, "Just take the relic and place it in the doorway. And whatever you do, don't lose it! It is an ancient artifact, and neither the Academy nor the Overlord would be pleased if it was misplaced.")
  567. end
  568. function OnQuest4(NPC, Spawn, conversation)
  569. if GetQuestStep(Spawn, QUEST_4) == 1 then
  570. dlg_4_14(NPC, Spawn)
  571. else
  572. if GetQuestStep(Spawn, QUEST_4) == 4 then
  573. AddConversationOption(conversation, "I'm not so sure that the ward is still at its full potency. I was struck down by the power of Marr for attempting to defile the tower!", "dlg_5_1")
  574. end
  575. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar057.mp3", "", "", 1503134855, 3015223508, Spawn)
  576. AddConversationOption(conversation, "Not yet.")
  577. StartConversation(conversation, NPC, Spawn, "Welcome back, " .. GetName(Spawn) .. ". I assume you concluded your investigation and found that the ward is still intact?")
  578. end
  579. end
  580. function dlg_5_1(NPC, Spawn)
  581. if HasQuest(Spawn, QUEST_4) then
  582. SetStepComplete(Spawn, QUEST_4, 4)
  583. end
  584. FaceTarget(NPC, Spawn)
  585. conversation = CreateConversation()
  586. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar058.mp3", "", "", 3581287630, 1926785642, Spawn)
  587. AddConversationOption(conversation, "You can have it. So what do we do now?", "FinishTranslation")
  588. AddConversationOption(conversation, "Forget this, I have to go.")
  589. StartConversation(conversation, NPC, Spawn, "This is dark news indeed. Marr blessed that tower long ago, and if some of that energy is now bleeding through, the ward is certainly weak. Fortunately I've already begun translating the parchment pages you found for me in case they were needed. Oh, I'll need that artifact back, by the way.")
  590. end
  591. ------------------------------------------------------------------------------------------------------------------------
  592. -- QUEST 5
  593. ------------------------------------------------------------------------------------------------------------------------
  594. function FinishTranslation(NPC, Spawn, conversation)
  595. if conversation == nil then
  596. FaceTarget(NPC, Spawn)
  597. conversation = CreateConversation()
  598. end
  599. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar059.mp3", "", "", 2020220932, 1678871420, Spawn)
  600. AddConversationOption(conversation, "What do you need?", "dlg_5_3")
  601. AddConversationOption(conversation, "No, sorry.")
  602. StartConversation(conversation, NPC, Spawn, "While I finish the translation, I need you to help me once more. Are you willing?")
  603. end
  604. function dlg_5_3(NPC, Spawn)
  605. FaceTarget(NPC, Spawn)
  606. conversation = CreateConversation()
  607. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar060.mp3", "", "", 1617818175, 2696893636, Spawn)
  608. AddConversationOption(conversation, "I thought you were only to report back to the Academy.", "dlg_5_4")
  609. AddConversationOption(conversation, "That sounds like too much effort.")
  610. StartConversation(conversation, NPC, Spawn, "It is up to the two of us to restore the ward that keeps the undead confined to the Graveyard. This is our chance to save Freeport!")
  611. end
  612. function dlg_5_4(NPC, Spawn)
  613. FaceTarget(NPC, Spawn)
  614. conversation = CreateConversation()
  615. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar061.mp3", "", "", 3722411193, 865336790, Spawn)
  616. AddConversationOption(conversation, "What's in this for me? ", "dlg_5_5")
  617. AddConversationOption(conversation, "I think I'll pass.")
  618. StartConversation(conversation, NPC, Spawn, "There is no time to waste. True heroes must be prepared to rise to the occasion and embrace their destiny. You have a bold future ahead of you, .. GetName(Spawn) .. . Now is the time to act!")
  619. end
  620. function dlg_5_5(NPC, Spawn)
  621. FaceTarget(NPC, Spawn)
  622. conversation = CreateConversation()
  623. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar062.mp3", "", "", 245159103, 2526379657, Spawn)
  624. AddConversationOption(conversation, "Very well, let's do it!", "dlg_5_6")
  625. AddConversationOption(conversation, "I'm not sure I want the Overlord to notice me.")
  626. StartConversation(conversation, NPC, Spawn, "Fame and fortune, of course! The Academy is sure to take notice of you when I report to them of what has occurred here today. You may even be noticed by the Overlord himself, XXXXXXX.")
  627. end
  628. function dlg_5_6(NPC, Spawn)
  629. FaceTarget(NPC, Spawn)
  630. conversation = CreateConversation()
  631. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar063.mp3", "", "", 4070301196, 2746257006, Spawn)
  632. AddConversationOption(conversation, "I will do so. What is the Staff of Ethernere?", "OfferQuest5")
  633. StartConversation(conversation, NPC, Spawn, "I want you to go back to Varacus and the Keepers of Ethernere. Tell him that we need to restore the ward and that we need the Staff of Ethernere.")
  634. end
  635. function OfferQuest5(NPC, Spawn)
  636. FaceTarget(NPC, Spawn)
  637. OfferQuest(NPC, Spawn, QUEST_5)
  638. end
  639. function OnQuest5(NPC, Spawn, conversation)
  640. if GetQuestStep(Spawn, QUEST_5) == 1 then
  641. dlg_5_9(NPC, Spawn)
  642. else
  643. AddConversationOption(conversation, "Yes, here it is.", "WellDone")
  644. AddConversationOption(conversation, "No, not yet.")
  645. StartConversation(conversation, NPC, Spawn, "Have you obtained the staff of Ethernere?")
  646. end
  647. end
  648. function dlg_5_8(NPC, Spawn)
  649. FaceTarget(NPC, Spawn)
  650. conversation = CreateConversation()
  651. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar065.mp3", "", "", 620236484, 108078282, Spawn)
  652. AddConversationOption(conversation, "What is the Book of the Dead?", "dlg_5_9")
  653. AddConversationOption(conversation, "I don't like the sound of that.")
  654. StartConversation(conversation, NPC, Spawn, "The Staff of Ethernere, when used along with the arcane power contained in the Book of the Dead, will help me repair the ward.")
  655. end
  656. function dlg_5_9(NPC, Spawn)
  657. FaceTarget(NPC, Spawn)
  658. conversation = CreateConversation()
  659. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar066.mp3", "", "", 1359336798, 4034979334, Spawn)
  660. AddConversationOption(conversation, "Okay, I'm going.")
  661. StartConversation(conversation, NPC, Spawn, "Time is of the essence, " .. GetName(Spawn) .. ". The ward may be fading faster than we realize and we must repair it!")
  662. end
  663. function WellDone(NPC, Spawn)
  664. if HasQuest(Spawn, QUEST_5) then
  665. SetStepComplete(Spawn, QUEST_5, 2)
  666. end
  667. FaceTarget(NPC, Spawn)
  668. conversation = CreateConversation()
  669. AddConversationOption(conversation, "How can you tell?", "HowCanYouTell")
  670. AddConversationOption(conversation, "Maybe next time Zaddar.")
  671. StartConversation(conversation, NPC, Spawn, "Well done! I'm sure it was difficult to convince Varacus to part with it. But this is indeed the Staff of Ethernere.")
  672. end
  673. ------------------------------------------------------------------------------------------------------------------------
  674. -- QUEST 6
  675. ------------------------------------------------------------------------------------------------------------------------
  676. function HowCanYouTell(NPC, Spawn)
  677. FaceTarget(NPC, Spawn)
  678. conversation = CreateConversation()
  679. AddConversationOption(conversation, "Tell me more about it.", "OfferQuest6")
  680. AddConversationOption(conversation, "Enough history lesson. What do we do next?", "OfferQuest6")
  681. AddConversationOption(conversation, "I don't want to hear anything the dead have to say.")
  682. StartConversation(conversation, NPC, Spawn, "Do you see these runes inscribed upon it? They are written in the language of the dead. When spoken to the living, this language sounds like mere whispers, but to the undead it sounds as clear as how you and I are speaking now.")
  683. end
  684. function OfferQuest6(NPC, Spawn)
  685. Say(NPC, "These conversations have been skipped beacuse we do not have them collected for some reason.", Spawn)
  686. FaceTarget(NPC, Spawn)
  687. OfferQuest(NPC, Spawn, QUEST_6)
  688. end
  689. function OnQuest6(NPC, Spawn, conversation)
  690. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar080.mp3", "", "", 3234395399, 3275818681, Spawn)
  691. if GetQuestStep(Spawn, QUEST_6) == 2 then
  692. AddConversationOption(conversation, "Yes, a grave robber did have it.", "dlg_15_1")
  693. end
  694. AddConversationOption(conversation, "Not yet.")
  695. StartConversation(conversation, NPC, Spawn, "Have you found the Book of the Dead?")
  696. end
  697. function ExcellentWork(NPC, Spawn, conversation)
  698. if HasQuest(Spawn, QUEST_6) then
  699. SetStepComplete(Spawn, QUEST_6, 2)
  700. end
  701. if conversation == nil then
  702. FaceTarget(NPC, Spawn)
  703. conversation = CreateConversation()
  704. end
  705. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar081.mp3", "", "", 3784703414, 3616748639, Spawn)
  706. AddConversationOption(conversation, "Here it is.", "dlg_15_2")
  707. AddConversationOption(conversation, "Wait, I'm not so sure I want you to have this.")
  708. StartConversation(conversation, NPC, Spawn, "Excellent work, " .. GetName(Spawn) .. "! I must say, you are turning out to be quite a useful aide. You've done almost as well as if I had done this task myself! Now quickly, hand me the book.")
  709. end
  710. ------------------------------------------------------------------------------------------------------------------------
  711. -- QUEST 7
  712. ------------------------------------------------------------------------------------------------------------------------
  713. function dlg_15_2(NPC, Spawn)
  714. FaceTarget(NPC, Spawn)
  715. conversation = CreateConversation()
  716. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar082.mp3", "", "", 2211835192, 2993459577, Spawn)
  717. AddConversationOption(conversation, "I am ready when you are, Zaddar.", "dlg_15_3")
  718. AddConversationOption(conversation, "Complete it yourself.")
  719. StartConversation(conversation, NPC, Spawn, "Look at how the parchment pages you retrieved are binding themselves inside the Book of the Dead! It truly is a mysterious and powerful tome. I will use the Staff of Ethernere during the ritual to focus the power of the spell we cast.")
  720. end
  721. function dlg_15_3(NPC, Spawn)
  722. FaceTarget(NPC, Spawn)
  723. conversation = CreateConversation()
  724. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar083.mp3", "", "", 39778497, 4193105723, Spawn)
  725. AddConversationOption(conversation, "I understand. What words do I say?", "OfferQuest7")
  726. StartConversation(conversation, NPC, Spawn, "I will tell you the ancient words of binding. You chant them, and I will repeat them after you. Only by working together can we complete the spell and save Freeport. Understood?")
  727. end
  728. function OfferQuest7(NPC, Spawn)
  729. FaceTarget(NPC, Spawn)
  730. OfferQuest(NPC, Spawn, QUEST_7)
  731. end
  732. function OnQuest7(NPC, Spawn, conversation)
  733. if GetQuestStep(Spawn, QUEST_7) == 1 or GetQuestStep(Spawn, QUEST_7) == 3 then
  734. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar084.mp3", "", "", 4136256828, 4083268014, Spawn)
  735. AddConversationOption(conversation, "Yes, I am ready.", "dlg_33_1")
  736. AddConversationOption(conversation, "I'm still not sure about this.")
  737. StartConversation(conversation, NPC, Spawn, "I've managed to translate the words from the ancient pages you've attained for me. Shall we begin?")
  738. else
  739. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar098.mp3", "", "point", 302585592, 463867493, Spawn)
  740. AddConversationOption(conversation, "I'll go at once!", "dlg_16_7")
  741. StartConversation(conversation, NPC, Spawn, "Conjura, you must go to the tombs at once and verify that each seal is intact. This is the only way we can complete the ritual and renew the ward upon the Graveyard to keep the undead at bay. Hurry! The fate of Freeport is in your hands!")
  742. end
  743. end
  744. function dlg_35_1(NPC, Spawn)
  745. FaceTarget(NPC, Spawn)
  746. conversation = CreateConversation()
  747. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar085.mp3", "", "", 2303927158, 1226964823, Spawn)
  748. AddConversationOption(conversation, "Ready!", "dlg_36_2")
  749. AddConversationOption(conversation, "No thank you.")
  750. StartConversation(conversation, NPC, Spawn, "The first words are 'Graddah, Shollamak, Hakah.' Ready?")
  751. end
  752. function dlg_36_2(NPC, Spawn)
  753. FaceTarget(NPC, Spawn)
  754. conversation = CreateConversation()
  755. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar086.mp3", "", "", 316474953, 2692158252, Spawn)
  756. AddConversationOption(conversation, "Graddah, Shollamak, Hakah!", "dlg_36_3")
  757. AddConversationOption(conversation, "Wait, not yet.")
  758. StartConversation(conversation, NPC, Spawn, "Let the ritual begin!")
  759. end
  760. function dlg_36_3(NPC, Spawn)
  761. --make spawn do casting a ward spell here
  762. FaceTarget(NPC, Spawn)
  763. conversation = CreateConversation()
  764. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar087.mp3", "", "", 2730725983, 3455327122, Spawn)
  765. if GetQuestStep(Spawn, QUEST_7) == 1 then
  766. AddConversationOption(conversation, "Wait, what's wrong?", "dlg_36_4")
  767. elseif GetQuestStep(Spawn, QUEST_7) == 3 then
  768. AddConversationOption(conversation, "What are the next words?", "dlg_18_4")
  769. end
  770. AddConversationOption(conversation, "I need to go.")
  771. StartConversation(conversation, NPC, Spawn, "Graddah, Shollamak, Hakah!")
  772. end
  773. function dlg_36_4(NPC, Spawn)
  774. SetStepComplete(Spawn, QUEST_7, 1)
  775. FaceTarget(NPC, Spawn)
  776. conversation = CreateConversation()
  777. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar096.mp3", "", "", 3456740440, 91910715, Spawn)
  778. AddConversationOption(conversation, "What do we do?", "dlg_36_5")
  779. AddConversationOption(conversation, "I knew this was madness.")
  780. StartConversation(conversation, NPC, Spawn, "Something is wrong. The incantation will not take effect!")
  781. end
  782. function dlg_36_5(NPC, Spawn)
  783. FaceTarget(NPC, Spawn)
  784. conversation = CreateConversation()
  785. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar097.mp3", "", "", 1342700976, 2091537359, Spawn)
  786. AddConversationOption(conversation, "Perhaps one tomb remains unsealed.", "dlg_36_6")
  787. AddConversationOption(conversation, "I've done enough for this cause.")
  788. StartConversation(conversation, NPC, Spawn, "Are you certain that all of the tombs of the Knights of Truth were sealed? If even one of them remains opened, it might prevent the binding ward from taking hold.")
  789. end
  790. function dlg_36_6(NPC, Spawn)
  791. FaceTarget(NPC, Spawn)
  792. conversation = CreateConversation()
  793. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar098.mp3", "", "point", 302585592, 463867493, Spawn)
  794. AddConversationOption(conversation, "I'll go at once!")
  795. StartConversation(conversation, NPC, Spawn, "Lilrat, you must go to the tombs at once and verify that each seal is intact. This is the only way we can complete the ritual and renew the ward upon the Graveyard to keep the undead at bay. Hurry! The fate of Freeport is in your hands!")
  796. end
  797. function dlg_18_4(NPC, Spawn)
  798. FaceTarget(NPC, Spawn)
  799. conversation = CreateConversation()
  800. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar088.mp3", "", "", 1317702534, 195221553, Spawn)
  801. AddConversationOption(conversation, "Ready!", "dlg_18_5")
  802. AddConversationOption(conversation, "I've forgotten them already.")
  803. StartConversation(conversation, NPC, Spawn, "The second set of words are, 'Golotu, Quandar, Gunoo.' Ready?")
  804. end
  805. function dlg_18_5(NPC, Spawn)
  806. FaceTarget(NPC, Spawn)
  807. conversation = CreateConversation()
  808. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar089.mp3", "", "", 919106830, 2372549864, Spawn)
  809. AddConversationOption(conversation, "Golotu, Quandar, Gunoo!", "dlg_18_6")
  810. AddConversationOption(conversation, "Wait, not yet.")
  811. StartConversation(conversation, NPC, Spawn, "Proceed!")
  812. end
  813. function dlg_18_6(NPC, Spawn)
  814. --make spawn caster healing spell
  815. FaceTarget(NPC, Spawn)
  816. conversation = CreateConversation()
  817. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar090.mp3", "", "", 467925549, 2283934078, Spawn)
  818. AddConversationOption(conversation, "What are the next words?", "dlg_18_7")
  819. AddConversationOption(conversation, "I've had enough of this.")
  820. StartConversation(conversation, NPC, Spawn, "Golotu, Quandar, Gunoo!")
  821. end
  822. function dlg_18_7(NPC, Spawn)
  823. FaceTarget(NPC, Spawn)
  824. conversation = CreateConversation()
  825. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar091.mp3", "", "", 3920739989, 998274807, Spawn)
  826. AddConversationOption(conversation, "I'm ready!", "dlg_18_8")
  827. AddConversationOption(conversation, "That's it, I quit.")
  828. StartConversation(conversation, NPC, Spawn, "The final set of words are the most important. 'Waktana, Shollamak, Quandar, Hakah.' Here we go!")
  829. end
  830. function dlg_18_8(NPC, Spawn)
  831. FaceTarget(NPC, Spawn)
  832. conversation = CreateConversation()
  833. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar092.mp3", "", "", 877878005, 1602838402, Spawn)
  834. AddConversationOption(conversation, "Waktana, Shollamak, Quandar, Hakah!", "dlg_18_9")
  835. StartConversation(conversation, NPC, Spawn, "Recite the words, " .. GetName(Spawn) .. ".")
  836. end
  837. function dlg_18_9(NPC, Spawn)
  838. --make spawn cast healing spell
  839. FaceTarget(NPC, Spawn)
  840. conversation = CreateConversation()
  841. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar093.mp3", "", "", 799819884, 1120621815, Spawn)
  842. AddConversationOption(conversation, "Whoa!", "dlg_18_10")
  843. AddConversationOption(conversation, "This is too much for me.")
  844. StartConversation(conversation, NPC, Spawn, "Waktana, Shollamak, Quandar, Hakah!")
  845. end
  846. function dlg_18_10(NPC, Spawn)
  847. FaceTarget(NPC, Spawn)
  848. conversation = CreateConversation()
  849. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar094.mp3", "", "", 3038856904, 495454970, Spawn)
  850. AddConversationOption(conversation, "It was a challenge, to be sure!", "dlg_18_11")
  851. StartConversation(conversation, NPC, Spawn, "Exellent job, " .. GetName(Spawn).. "! I think we've done it! I must admit, I doubt even I could have accomplished this task without your help.")
  852. end
  853. function dlg_18_11(NPC, Spawn)
  854. FaceTarget(NPC, Spawn)
  855. conversation = CreateConversation()
  856. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar095.mp3", "", "", 22655114, 4161320381, Spawn)
  857. AddConversationOption(conversation, "I believe you said something about me being rewarded...", "dlg_18_12")
  858. StartConversation(conversation, NPC, Spawn, "The enemies of the Overlord are thwarted, and the Knights of Truth shall remain bound to this graveyard for the rest of time.")
  859. end
  860. function dlg_18_12(NPC, Spawn)
  861. SetStepComplete(Spawn, QUEST_7, 3)
  862. FaceTarget(NPC, Spawn)
  863. conversation = CreateConversation()
  864. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar101.mp3", "", "", 833256944, 2859353569, Spawn)
  865. AddConversationOption(conversation, "Thank you, Zaddar. Is there anything else I can do for you?", "YourAssistance")
  866. AddConversationOption(conversation, "I am honored to have served Freeport.")
  867. StartConversation(conversation, NPC, Spawn, "Your reward is well deserved. You have my thanks. Your name will be well known within the Academy of Arcane Science.")
  868. end
  869. ------------------------------------------------------------------------------------------------------------------------
  870. -- QUEST 8
  871. ------------------------------------------------------------------------------------------------------------------------
  872. function YourAssistance(NPC, Spawn, conversation)
  873. if conversation == nil then
  874. FaceTarget(NPC, Spawn)
  875. conversation = CreateConversation()
  876. end
  877. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar102.mp3", "", "", 1334238641, 4210079221, Spawn)
  878. AddConversationOption(conversation, "I will serve my city once again.", "dlg_18_14")
  879. AddConversationOption(conversation, "I have done enough.")
  880. StartConversation(conversation, NPC, Spawn, "Your assistance to the Academy of Arcane Science and Freeport has been invaluable. But now more help is needed from you. Freeport is not out of danger! You must take the knowledge you have learned here and travel to the Ruins. Are you willing?")
  881. end
  882. function dlg_18_14(NPC, Spawn)
  883. FaceTarget(NPC, Spawn)
  884. conversation = CreateConversation()
  885. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar103.mp3", "", "", 1293287475, 951012464, Spawn)
  886. AddConversationOption(conversation, "How do I get to the Ruins?", "dlg_18_15")
  887. StartConversation(conversation, NPC, Spawn, "An outlying district of Freeport known as the Ruins is under attack. You must make your way there and report to Captain Arellius of the Freeport Militia. She will guide your efforts to help save our city.")
  888. end
  889. function dlg_18_15(NPC, Spawn)
  890. FaceTarget(NPC, Spawn)
  891. conversation = CreateConversation()
  892. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar104.mp3", "", "", 1699803915, 2037868440, Spawn)
  893. AddConversationOption(conversation, "Are there any other places I could go to find adventure?", "dlg_18_16")
  894. if HasQuest(Spawn, QUEST_8) then
  895. AddConversationOption(conversation, "I will go to the Ruins and help defend Freeport.", "JourneySafely")
  896. else
  897. AddConversationOption(conversation, "I will go to the Ruins and help defend Freeport.", "OfferQuest8")
  898. end
  899. StartConversation(conversation, NPC, Spawn, "Make your way to the Ruins by traveling back to the docks of your home district. Use the mariner's bell to summon transportation outside of Freeport proper and ask to be taken to the Ruins. You should find Captain Arellius nearby. Hurry, hero of Freeport, there is no time to waste!")
  900. end
  901. function dlg_18_16(NPC, Spawn)
  902. FaceTarget(NPC, Spawn)
  903. conversation = CreateConversation()
  904. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar111.mp3", "", "", 2203286849, 4034856641, Spawn)
  905. AddConversationOption(conversation, "Tell me more about Enforcer Kurdek.", "dlg_18_17")
  906. AddConversationOption(conversation, "Tell me more about Inquisitor Thorson.", "dlg_18_18")
  907. AddConversationOption(conversation, "Thank you for the advice.")
  908. StartConversation(conversation, NPC, Spawn, "Eager, aren't we? Well, I know some thug named Enforcer Kurdek in the Sprawl needs help, and a fellow named Inquisitor Thorson in the Sunken City could use a hand.")
  909. end
  910. function dlg_18_17(NPC, Spawn)
  911. FaceTarget(NPC, Spawn)
  912. conversation = CreateConversation()
  913. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar112.mp3", "", "", 3842073321, 2379698803, Spawn)
  914. AddConversationOption(conversation, "Tell me more about Inquisitor Thorson.", "dlg_18_18")
  915. AddConversationOption(conversation, "Thank you for the information.")
  916. StartConversation(conversation, NPC, Spawn, "Enforcer Kurdek on 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.")
  917. end
  918. function dlg_18_18(NPC, Spawn)
  919. FaceTarget(NPC, Spawn)
  920. conversation = CreateConversation()
  921. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar113.mp3", "", "", 1469842786, 3647036314, Spawn)
  922. AddConversationOption(conversation, "Tell me more about Enforcer Kurdek.", "dlg_18_17")
  923. AddConversationOption(conversation, "Thank you for the information.")
  924. StartConversation(conversation, NPC, Spawn, "Inquisitor Thorson in the Sunken City needs help investigating ancient mysteries that threaten Freeport's safety. To travel to the Sunken City, use the mariner's bell on the docks of your home district to travel outside Freeport and choose Sunken City as your destination.")
  925. end
  926. function OfferQuest8(NPC, Spawn)
  927. FaceTarget(NPC, Spawn)
  928. OfferQuest(NPC, Spawn, QUEST_8)
  929. end
  930. function OnQuest8(NPC, Spawn, conversation)
  931. AddConversationOption(conversation, "How do I get to the Ruins?", "dlg_18_15")
  932. AddConversationOption(conversation, "I'll travel there soon.")
  933. StartConversation(conversation, NPC, Spawn, "Hello again, my friend. We desperately need your help in the ruins! Do not delay long, for our great city of Freeport is in peril!")
  934. end
  935. function JourneySafely(NPC, Spawn)
  936. FaceTarget(NPC, Spawn)
  937. conversation = CreateConversation()
  938. AddConversationOption(conversation, "Be well.")
  939. StartConversation(conversation, NPC, Spawn, "Then safe journey to you, " .. GetName(Spawn) .. ".")
  940. end