CaptainArellius.lua 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. --[[
  2. Script Name : SpawnScripts/TheRuins/CaptainArellius.lua
  3. Script Purpose : Captain Arellius <Freeport Militia>
  4. Script Author : jakejp
  5. Script Date : 2018.09.30 // Finished 2018.12.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QuestFromSprawl
  9. local QuestFromGraveyard
  10. local QuestFromSunkenCity
  11. local First_ReportingForDuty = 368
  12. local Fifth_RequestingFurtherOrders = 372
  13. local Sixth_SteppingUptheOffensive = 373
  14. local Tenth_FileAFinalReport = 395
  15. local Eleventh_AJourneyOutsideTheCity = 396
  16. function spawn(NPC)
  17. ProvidesQuest(NPC, First_ReportingForDuty)
  18. ProvidesQuest(NPC, Sixth_SteppingUptheOffensive)
  19. ProvidesQuest(NPC, Eleventh_AJourneyOutsideTheCity)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. local choice = math.random(1,3)
  28. if HasQuest(Spawn, QuestFromGraveyard) or HasQuest(Spawn, QuestFromSprawl) or HasQuest(Spawn, QuestFromSunkenCity) then
  29. if HasQuest(Spawn, QuestFromGraveyard) then
  30. SetStepComplete(Spawn, QuestFromGraveyard, 1)
  31. if not HasCompletedQuest(Spawn, First_ReportingForDuty) and not HasQuest(Spawn, First_ReportingForDuty) then
  32. AddConversationOption(conversation, "My name is .. GetName(Spawn) .. . Custodian Zaddar in the Graveyard sent me.", "dlg_0_1")
  33. end
  34. elseif HasQuest(Spawn, QuestFromSprawl) then
  35. SetStepComplete(Spawn, QuestFromSprawl, 1)
  36. if not HasCompletedQuest(Spawn, First_) and not HasQuest(Spawn, First_) then
  37. AddConversationOption(conversation, "My name is .. GetName(Spawn) .. . Custodian Zaddar in the Graveyard sent me.", "dlg_0_1")
  38. end
  39. elseif HasQuest(Spawn, QuestFromSunkenCity) then
  40. SetStepComplete(Spawn, QuestFromSunkenCity, 1)
  41. if not HasCompletedQuest(Spawn, First_) and not HasQuest(Spawn, First_) then
  42. AddConversationOption(conversation, "My name is .. GetName(Spawn) .. . Custodian Zaddar in the Graveyard sent me.", "dlg_0_1")
  43. end
  44. end
  45. if not HasCompletedQuest(Spawn, First_ReportingForDuty) and not HasQuest(Spawn, First_ReportingForDuty) then
  46. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius001.mp3", "", "", 3910993894, 659100358, Spawn)
  47. AddConversationOption(conversation, "It sounds like you need a hand. How can I help?")
  48. AddConversationOption(conversation, "Your conflict is none of my concern.")
  49. StartConversation(conversation, NPC, Spawn, "Stand your ground! I will defend Freeport to my dying breath! Are you friend or foe?")
  50. else
  51. if choice == 1 then
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_257dc2e4.mp3", "To arms! The Ruins must be defended against these mindless brutes!", "brandish", 2691467763, 3825315561, Spawn)
  53. elseif choice == 2 then
  54. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_5b6ad828.mp3", "The Freeport Militia will make a stand against these orcs!", "threaten", 3371139514, 3350465604, Spawn)
  55. elseif choice == 3 then
  56. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_6af9e361.mp3", "We must avenge the fallen of Shoreside!", "brandish", 352522731, 4132511279, Spawn)
  57. end
  58. end
  59. end
  60. if not HasCompletedQuest (Spawn, First_ReportingForDuty) then
  61. if HasQuest(Spawn, First_ReportingForDuty) then
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius019.mp3", "", "", 79133986, 324326874, Spawn)
  63. AddConversationOption(conversation, "Not yet, Captain.", "dlg_1_14")
  64. StartConversation(conversation, NPC, Spawn, "Have you completed your assignments for Lieutenant Argosian at the first outpost?")
  65. elseif CanReceiveQuest(Spawn, First_ReportingForDuty) then
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius001.mp3", "", "", 3910993894, 659100358, Spawn)
  67. AddConversationOption(conversation, "It sounds like you need a hand. How can I help?", "dlg_1_1")
  68. AddConversationOption(conversation, "Your conflict is none of my concern.")
  69. StartConversation(conversation, NPC, Spawn, "Stand your ground! I will defend Freeport to my dying breath! Are you friend or foe?")
  70. end
  71. elseif not CanReceiveQuest(Spawn, Sixth_SteppingUptheOffensive) and not HasCompletedQuest(Spawn, Fifth_RequestingFurtherOrders) then
  72. if HasQuest(Spawn, Fifth_RequestingFurtherOrders) then
  73. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius019.mp3", "", "", 79133986, 324326874, Spawn)
  74. AddConversationOption(conversation, "I completed a number of tasks for the lieutenant. He sent me back to you to receive further orders.", "dlg_2_0")
  75. AddConversationOption(conversation, "Not yet, Captain.")
  76. StartConversation(conversation, NPC, Spawn, "Have you completed your assignments for Lieutenant Argosian at the first outpost?")
  77. else
  78. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius019.mp3", "", "", 79133986, 324326874, Spawn)
  79. AddConversationOption(conversation, "Not yet, Captain.")
  80. StartConversation(conversation, NPC, Spawn, "Have you completed your assignments for Lieutenant Argosian at the first outpost?")
  81. end
  82. elseif not HasCompletedQuest(Spawn, Sixth_SteppingUptheOffensive) then
  83. if CanReceiveQuest(Spawn, Sixth_SteppingUptheOffensive) then -- probably need to look this over again tbh
  84. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius019.mp3", "", "", 79133986, 324326874, Spawn)
  85. AddConversationOption(conversation, "I completed a number of tasks for the lieutenant. He sent me back to you to receive further orders.", "dlg_2_0")
  86. AddConversationOption(conversation, "Not yet, Captain.")
  87. StartConversation(conversation, NPC, Spawn, "Have you completed your assignments for Lieutenant Argosian at the first outpost?")
  88. elseif HasQuest(Spawn, Sixth_SteppingUptheOffensive) then
  89. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius029.mp3", "", "", 2327537314, 879285291, Spawn)
  90. AddConversationOption(conversation, "Not yet.")
  91. StartConversation(conversation, NPC, Spawn, "Have you finished your assignments given by Lieutenant Imperidus at the second outpost?")
  92. end
  93. elseif not CanReceiveQuest(Spawn, Eleventh_AJourneyOutsideTheCity) and not HasCompletedQuest(Spawn, Tenth_FileAFinalReport) then
  94. if HasQuest(Spawn, Tenth_FileAFinalReport) then
  95. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius029.mp3", "", "", 2327537314, 879285291, Spawn)
  96. AddConversationOption(conversation, "I helped the lieutenant investigate the Lonetusk orcs.", "dlg_40_1")
  97. AddConversationOption(conversation, "Not yet.")
  98. StartConversation(conversation, NPC, Spawn, "Have you finished your assignments given by Lieutenant Imperidus at the second outpost?")
  99. else
  100. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius029.mp3", "", "", 2327537314, 879285291, Spawn)
  101. AddConversationOption(conversation, "Not yet.")
  102. StartConversation(conversation, NPC, Spawn, "Have you finished your assignments given by Lieutenant Imperidus at the second outpost?")
  103. end
  104. elseif not HasCompletedQuest(Spawn, Eleventh_AJourneyOutsideTheCity) then
  105. Say(Spawn, "here")
  106. if HasQuest(Spawn, Eleventh_AJourneyOutsideTheCity) then
  107. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius037.mp3", "", "", 1359197915, 2412521722, Spawn)
  108. AddConversationOption(conversation, "Be well, Captain.", "dlg_42_1")
  109. StartConversation(conversation, NPC, Spawn, "It is good to see you again, .. GetName(Spawn) .. ! We are in your debt for helping uncover the source of the orc menace. Thanks to you, we are keeping the orcs at bay and I'm confident we will drive them out of the Ruins soon.")
  110. elseif CanReceiveQuest(Spawn, Eleventh_AJourneyOutsideTheCity) then
  111. dlg_40_3(NPC, Spawn)
  112. end
  113. elseif HasCompletedQuest(Spawn, Tenth_FileAFinalReport) then
  114. Say(Spawn, "here")
  115. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius037.mp3", "", "", 1359197915, 2412521722, Spawn)
  116. AddConversationOption(conversation, "Be well, Captain.", "dlg_42_1")
  117. StartConversation(conversation, NPC, Spawn, "It is good to see you again, .. GetName(Spawn) .. ! We are in your debt for helping uncover the source of the orc menace. Thanks to you, we are keeping the orcs at bay and I'm confident we will drive them out of the Ruins soon.")
  118. end
  119. end
  120. function dlg_0_1(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius005.mp3", "", "", 1356974238, 3910566628, Spawn)
  124. AddConversationOption(conversation, "Orcs, really?", "dlg_0_2")
  125. AddConversationOption(conversation, "Where did the orcs come from?")
  126. AddConversationOption(conversation, "Thank you for the information.")
  127. StartConversation(conversation, NPC, Spawn, "You've entered a war zone, citizen. The Freeport Militia is here in force to defend our city. Two orc clans seem to be working together in an attempt to take over the Ruins and use it as a staging ground to attack Freeport.")
  128. end
  129. function dlg_1_1(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius005.mp3", "", "", 1356974238, 3910566628, Spawn)
  133. AddConversationOption(conversation, "Where did the orcs come from?", "dlg_1_2")
  134. AddConversationOption(conversation, "Thank you for the information.")
  135. StartConversation(conversation, NPC, Spawn, "You've entered a war zone, citizen. The Freeport Militia is here in force to defend our city. Two orc clans seem to be working together in an attempt to take over the Ruins and use it as a staging ground to attack Freeport.")
  136. end
  137. function dlg_1_2(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius006.mp3", "", "", 1435383956, 2150191113, Spawn)
  141. AddConversationOption(conversation, "What are these tribes called?", "dlg_1_3")
  142. AddConversationOption(conversation, "I have no desire to mess around with orcs.")
  143. StartConversation(conversation, NPC, Spawn, "Both tribes have been lurking in the Ruins for some time, but they've never been this aggressive before. They seem to have become more organized and have obtained better weapons and armor.")
  144. end
  145. function dlg_1_3(NPC, Spawn)
  146. FaceTarget(NPC, Spawn)
  147. conversation = CreateConversation()
  148. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius007.mp3", "", "", 803622320, 3191751364, Spawn)
  149. AddConversationOption(conversation, "Why is this place called the Ruins?", "dlg_1_4")
  150. AddConversationOption(conversation, "What work do you have for me?", "dlg_1_12")
  151. AddConversationOption(conversation, "I think I will take my leave.")
  152. StartConversation(conversation, NPC, Spawn, "The weaker of the two tribes is called the Brokentusk. The stronger clan is known as the Lonetusk. I don't know much about their background personally, but my lieutenants stationed in the field may have more information.")
  153. end
  154. function dlg_1_4(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius008.mp3", "", "", 471952694, 1388761764, Spawn)
  158. AddConversationOption(conversation, "This place used to have grand houses and shops?", "dlg_1_5")
  159. AddConversationOption(conversation, "I don't want to hear any more.")
  160. StartConversation(conversation, NPC, Spawn, "Take a few steps inside the archway and you'll see why. This is an old section of Freeport that has long been abandoned. Its once stately manors and exclusive boutiques are now burned-out shells and broken walls.")
  161. end
  162. function dlg_1_5(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius009.mp3", "", "", 2311879676, 4148126515, Spawn)
  166. AddConversationOption(conversation, "What do you mean?", "dlg_1_6")
  167. AddConversationOption(conversation, "I've heard enough.")
  168. StartConversation(conversation, NPC, Spawn, "Oh yes. What we now call the Ruins was once known as Shoreside, an expensive and very exclusive residential district. It was favored by the wealthy for its ocean view and isolation from the hustle and bustle of the city, but the irony is that those very qualities led to its downfall.")
  169. end
  170. function dlg_1_6(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius010.mp3", "", "", 1270241224, 2005347889, Spawn)
  174. AddConversationOption(conversation, "What happened then?", "dlg_1_7")
  175. AddConversationOption(conversation, "I have no more time for old stories.")
  176. StartConversation(conversation, NPC, Spawn, "Freeport has come under attack many times, and our Militia maintains a strong presence in the Commonlands to fend off the Bloodskull orcs. During one particularly fierce battle, the bulk of our forces were committed to a frontal assault on the city gates.")
  177. end
  178. function dlg_1_7(NPC, Spawn)
  179. FaceTarget(NPC, Spawn)
  180. conversation = CreateConversation()
  181. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius011.mp3", "", "", 2984532909, 290696404, Spawn)
  182. AddConversationOption(conversation, "Couldn't the Militia save them?", "dlg_1_8")
  183. AddConversationOption(conversation, "I've heard enough. How can I help you defend the Ruins?", "OfferQuest1")
  184. AddConversationOption(conversation, "Too bad.")
  185. StartConversation(conversation, NPC, Spawn, "In an unusually clandestine move, the Brokentusk and Lonetusk tribes seized the opportunity to sneak into the Shoreside docks by nightfall. The cowardly beasts overpowered the small garrison left to defend the district, then proceeded to burn and pillage everything they found. Many noble citizens of Freeport died in that conflict.")
  186. end
  187. function dlg_1_8(NPC, Spawn)
  188. FaceTarget(NPC, Spawn)
  189. conversation = CreateConversation()
  190. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius012.mp3", "", "", 516488246, 2865302304, Spawn)
  191. AddConversationOption(conversation, "What do you mean?", "dlg_1_9")
  192. AddConversationOption(conversation, "What a pity.")
  193. StartConversation(conversation, NPC, Spawn, "As I said, most of our troops were busy fighting in the Commonlands. By the time reinforcements could be sent, the damage had been done. Since Shoreside was isolated and difficult to defend, it was decided that there was no sense in rebuilding it. The Sprawl serves as a buffer between the Ruins and the city proper, so Freeport remains secure. Still, there was a heavy price to be paid.")
  194. end
  195. function dlg_1_9(NPC, Spawn)
  196. FaceTarget(NPC, Spawn)
  197. conversation = CreateConversation()
  198. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius013.mp3", "", "", 2907233969, 819802352, Spawn)
  199. AddConversationOption(conversation, "So what became of the Ruins?", "dlg_1_10")
  200. AddConversationOption(conversation, "I've heard enough.")
  201. StartConversation(conversation, NPC, Spawn, "Even though the invaders were defeated, War Duke Eutarius, the high-ranking Militia officer who had been charged with the city's defense, was executed in the West Freeport plaza for his incompetence and failure. The Overlord does not tolerate mistakes.")
  202. end
  203. function dlg_1_10(NPC, Spawn)
  204. FaceTarget(NPC, Spawn)
  205. conversation = CreateConversation()
  206. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius014.mp3", "", "", 2462744754, 2263094364, Spawn)
  207. AddConversationOption(conversation, "What caused this change?", "dlg_1_11")
  208. AddConversationOption(conversation, "Sounds like you have work to do.")
  209. StartConversation(conversation, NPC, Spawn, "The once exclusive Shoreside became the Ruins, a broken-down home to beggars and squatters. Some remnants of the orc tribes remained as well, but they were so weak and disorganized that they posed little threat. In fact, this was a relatively calm area until quite recently.")
  210. end
  211. function dlg_1_11(NPC, Spawn)
  212. FaceTarget(NPC, Spawn)
  213. conversation = CreateConversation()
  214. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius015.mp3", "", "", 3872903634, 4159828807, Spawn)
  215. AddConversationOption(conversation, "How can I be of assistance?", "dlg_1_12")
  216. AddConversationOption(conversation, "I don't have any desire to help you.")
  217. StartConversation(conversation, NPC, Spawn, "I do not know, adventurer. Perhaps that is something you can help discover. But we must act quickly, lest these orcs rise up and do to the rest of Freeport what they once did to Shoreside.")
  218. end
  219. function dlg_1_12(NPC, Spawn) -- OFFER QUEST1
  220. FaceTarget(NPC, Spawn)
  221. conversation = CreateConversation()
  222. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius016.mp3", "", "", 3389775257, 1638630596, Spawn)
  223. AddConversationOption(conversation, "I will do so.", "OfferQuest1")
  224. AddConversationOption(conversation, "No thanks.")
  225. StartConversation(conversation, NPC, Spawn, "I must remain here to give assignments to incoming troops. Go through the archway and report to one of my lieutenants, Argosian. He will tell you how you can best serve our cause.")
  226. end
  227. function dlg_1_13(NPC, Spawn) -- QUEST ACCEPT TEXT
  228. FaceTarget(NPC, Spawn)
  229. conversation = CreateConversation()
  230. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius017.mp3", "", "", 3161105606, 1921169647, Spawn)
  231. AddConversationOption(conversation, "Thank you for the advice.", "dlg_2_14")
  232. StartConversation(conversation, NPC, Spawn, "Good. Oh, be sure to pay homage to the statue of our beloved Overlord. It would prove most beneficial for you to bask in the wisdom of his visage.")
  233. end
  234. function dlg_1_14(NPC, Spawn) -- AFTER QUEST ACCEPT TEXT
  235. FaceTarget(NPC, Spawn)
  236. conversation = CreateConversation()
  237. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius018.mp3", "", "", 377300022, 2983031406, Spawn)
  238. AddConversationOption(conversation, "I'll go see him.")
  239. StartConversation(conversation, NPC, Spawn, "Lieutenant Argosian at the first outpost will be responsible for your initial training. Do not return to me until he has ordered you to do so.")
  240. end
  241. function dlg_2_0(NPC, Spawn)
  242. FaceTarget(NPC, Spawn)
  243. conversation = CreateConversation()
  244. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius020.mp3", "", "", 1710634773, 3637924946, Spawn)
  245. AddConversationOption(conversation, "No, we thought an ancient shrine might be behind it, but that turned out to be a dead end.", "dlg_2_1")
  246. AddConversationOption(conversation, "I'd rather not say.")
  247. StartConversation(conversation, NPC, Spawn, "Good work! Did you find out what's behind this increase in orc activity?")
  248. end
  249. function dlg_2_1(NPC, Spawn)
  250. FaceTarget(NPC, Spawn)
  251. conversation = CreateConversation()
  252. if HasQuest(Spawn, Fifth_RequestingFurtherOrders) then
  253. SetStepComplete(Spawn, Fifth_RequestingFurtherOrders, 1)
  254. end
  255. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius021.mp3", "", "", 93483667, 1523875207, Spawn)
  256. AddConversationOption(conversation, "Thank you, Captain. Is there anything else I can do to aid the Militia?", "dlg_2_2")
  257. AddConversationOption(conversation, "I'm going to take my loot and go.")
  258. StartConversation(conversation, NPC, Spawn, "At least we can rule that out, but clearly further investigation is required. Here, help yourself to your choice of equipment from our supply chests. You should find something that will be of use in our continued efforts against the orc uprising.")
  259. end
  260. function dlg_2_2(NPC, Spawn)
  261. FaceTarget(NPC, Spawn)
  262. conversation = CreateConversation()
  263. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius022.mp3", "", "", 1019790101, 3910654951, Spawn)
  264. AddConversationOption(conversation, "I am willing to do what is necessary to serve Freeport.", "dlg_2_3")
  265. AddConversationOption(conversation, "I think I will be leaving. Farewell.")
  266. StartConversation(conversation, NPC, Spawn, "The next step in our investigation will be an arduous one. Although to this point you could journey alone, some parts of the Ruins can be deadly for the lone adventurer.")
  267. end
  268. function dlg_2_3(NPC, Spawn)
  269. FaceTarget(NPC, Spawn)
  270. conversation = CreateConversation()
  271. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius023.mp3", "", "", 2666224286, 3160996791, Spawn)
  272. AddConversationOption(conversation, "I will find some allies. What needs to be done?", "dlg_2_4")
  273. AddConversationOption(conversation, "I prefer to journey alone.")
  274. StartConversation(conversation, NPC, Spawn, "I knew you were daring! My advice is to gather some comrades and form a group. There is safety in numbers, especially in places like this. As you venture further out into the world, you will find groups to be extremely helpful in achieving your goals.")
  275. end
  276. function dlg_2_4(NPC, Spawn)
  277. FaceTarget(NPC, Spawn)
  278. conversation = CreateConversation()
  279. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius025.mp3", "", "", 3573308808, 1112650571, Spawn)
  280. AddConversationOption(conversation, "So the Lonetusk are stronger?", "dlg_2_5")
  281. AddConversationOption(conversation, "I have no desire to face these orcs.")
  282. StartConversation(conversation, NPC, Spawn, "To be honest, I could tell that the Brokentusk were too weak to be behind the recent attacks. They have always followed the lead of their more powerful brethren, the Lonetusk orcs.")
  283. end
  284. function dlg_2_5(NPC, Spawn)
  285. FaceTarget(NPC, Spawn)
  286. conversation = CreateConversation()
  287. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius026.mp3", "", "", 3395408656, 1462645876, Spawn)
  288. AddConversationOption(conversation, "I am not afraid. What are your orders, Captain?", "dlg_2_6")
  289. AddConversationOption(conversation, "I'd best be leaving.")
  290. StartConversation(conversation, NPC, Spawn, "Yes, the Lonetusk are much more deadly. They are more inclined to work together, and this will require a strong group of adventurers to stand against them.")
  291. end
  292. function dlg_2_6(NPC, Spawn) -- OFFER QUEST 6
  293. FaceTarget(NPC, Spawn)
  294. conversation = CreateConversation()
  295. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius027.mp3", "", "", 2644659750, 71027369, Spawn)
  296. AddConversationOption(conversation, "I will report to her.", "OfferQuest6")
  297. AddConversationOption(conversation, "Time for me to go.")
  298. StartConversation(conversation, NPC, Spawn, "I need you to report to Lieutenant Imperidus, who is stationed at the second Militia outpost deeper in the Ruins. It is located to the west of here, near the gate to the Sprawl. She is heading up the Lonetusk investigation.")
  299. end
  300. function dlg_40_1(NPC, Spawn)
  301. FaceTarget(NPC, Spawn)
  302. conversation = CreateConversation()
  303. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius030.mp3", "", "", 669347507, 3609055382, Spawn)
  304. AddConversationOption(conversation, "It seems another tribe of orcs, the Rujarkians, are supplying them with weapons and training.", "dlg_40_2")
  305. AddConversationOption(conversation, "I prefer to keep that information private.")
  306. StartConversation(conversation, NPC, Spawn, "Well done. Did you discover the source of the orc uprising?")
  307. end
  308. function dlg_40_2(NPC, Spawn)
  309. FaceTarget(NPC, Spawn)
  310. conversation = CreateConversation()
  311. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius031.mp3", "", "", 2636650714, 3532932245, Spawn)
  312. AddConversationOption(conversation, "Where are these Rujarkian orcs located?", "WhereLocated")
  313. AddConversationOption(conversation, "Am I to be rewarded for my efforts?", "dlg_40_3")
  314. StartConversation(conversation, NPC, Spawn, "By the Overlord! This is vital information that I will send back to the Militia House immediately. It threatens the very security of Freeport!")
  315. end
  316. function WhereLocated(NPC, Spawn)
  317. FaceTarget(NPC, Spawn)
  318. conversation = CreateConversation()
  319. AddConversationOption(conversation, "Why does this information pose such a danger to Freeport?", "DangerToFreeport")
  320. StartConversation(conversation, NPC, Spawn, "The Rujarkian orcs are based out of the clefts in the Desert of Ro, a harsh region that lies to the south of our own continent of D'Lere. Perhaps when you are much more experienced than you are now, you will seek adventure there.")
  321. end
  322. function DangerToFreeport(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. conversation = CreateConversation()
  325. AddConversationOption(conversation, "I'm glad the information I obtained was useful.", "dlg_40_3")
  326. StartConversation(conversation, NPC, Spawn, "The Rujarkian orcs are an extremely powerful and well-organized tribe. If the Rujarkians are supplying smaller groups like the Brokentusk and Lonetusk, it is only a matter of time before they provide weapons and armor to the Bloodskull orcs in the Commonlands. For all we know, such an alliance may already be forming.")
  327. end
  328. function dlg_40_3(NPC, Spawn)
  329. FaceTarget(NPC, Spawn)
  330. conversation = CreateConversation()
  331. if HasQuest(Spawn, Tenth_FileAFinalReport) then
  332. SetStepComplete(Spawn, Tenth_FileAFinalReport, 1)
  333. end
  334. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius034.mp3", "", "", 4219431602, 1872310999, Spawn)
  335. AddConversationOption(conversation, "Is there anything else I can do to be of service to Freeport?", "dlg_40_4")
  336. StartConversation(conversation, NPC, Spawn, "Indeed, your efforts have aided Freeport greatly. To show our thanks, you may choose an additional reward from our supply chests. These items will serve you well.")
  337. end
  338. function dlg_40_4(NPC, Spawn) -- need to add offering quest once its scripted
  339. FaceTarget(NPC, Spawn)
  340. conversation = CreateConversation()
  341. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  342. AddConversationOption(conversation, "Yes, I will travel to the Commonlands.")
  343. AddConversationOption(conversation, "I think I will be going, Captain. Farewell.")
  344. StartConversation(conversation, NPC, Spawn, "Our service to the Overlord is never finished. I know of some loyal citizens in the Commonlands who need your help. Are you interested?")
  345. end
  346. function dlg_100_5(NPC, Spawn)
  347. FaceTarget(NPC, Spawn)
  348. conversation = CreateConversation()
  349. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius_solo003.mp3", "", "", 1562481055, 2208348974, Spawn)
  350. AddConversationOption(conversation, "Understood.", "dlg_1_6")
  351. StartConversation(conversation, NPC, Spawn, "Use the bell here on the docks to travel within Freeport and choose East Freeport as your destination. Use your map to guide you to the gate leading to West Freeport. From there, travel through that part of the city until you arrive at the main gate that leads to the Commonlands.")
  352. end
  353. function dlg_100_6(NPC, Spawn)
  354. FaceTarget(NPC, Spawn)
  355. conversation = CreateConversation()
  356. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius_solo004.mp3", "", "", 91462570, 1357108888, Spawn)
  357. AddConversationOption(conversation, "I will. Thank you, Captain.", "dlg_1_7")
  358. StartConversation(conversation, NPC, Spawn, "Remember that the Commonlands can be a dangerous place. Judge your battles carefully, .. GetName(Spawn) .. . When you gather allies and are ready to undertake the fight against the Lonetusk orcs, return here.")
  359. end
  360. function OfferQuest1(NPC, Spawn)
  361. OfferQuest(NPC, Spawn, First_ReportingForDuty)
  362. end
  363. function OfferQuest6(NPC, Spawn)
  364. OfferQuest(NPC, Spawn, Sixth_SteppingUptheOffensive)
  365. end
  366. function OfferQuest11(NPC, Spawn)
  367. OfferQuest(NPC, Spawn, Eleventh_AJourneyOutsideTheCity)
  368. end
  369. --[[ raw_conversations
  370. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_5b6ad828.mp3", "The Freeport Militia will make a stand against these orcs!", "threaten", 3371139514, 3350465604, Spawn)
  371. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_6af9e361.mp3", "We must avenge the fallen of Shoreside!", "brandish", 352522731, 4132511279, Spawn)
  372. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/quest_captain_arellius_callout_257dc2e4.mp3", "To arms! The Ruins must be defended against these mindless brutes!", "brandish", 2691467763, 3825315561, Spawn)
  373. --]]