CaptainArellius.lua 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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 // updates 15.7.2022 by torsten
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QuestFromSprawl = 543
  10. local QuestFromGraveyard = 553 --by torsten 16.7.2022
  11. local QuestFromSunkenCity = 384 --by torsten 15.7.2022
  12. local First_ReportingForDuty = 368
  13. local Fifth_RequestingFurtherOrders = 372
  14. local Sixth_SteppingUptheOffensive = 373
  15. local Tenth_FileAFinalReport = 395
  16. local Eleventh_AJourneyOutsideTheCity = 5658
  17. function spawn(NPC)
  18. ProvidesQuest(NPC, First_ReportingForDuty)
  19. ProvidesQuest(NPC, Sixth_SteppingUptheOffensive)
  20. ProvidesQuest(NPC, Eleventh_AJourneyOutsideTheCity)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. local choice = math.random(1,3)
  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 from 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_ReportingForDuty) and not HasQuest(Spawn, First_ReportingForDuty) then
  37. AddConversationOption(conversation, "My name is .. GetName(Spawn) .. . Enforcer Kurdek from The Sprawl sent me.", "dlg_0_1")
  38. end
  39. elseif HasQuest(Spawn, QuestFromSunkenCity) then
  40. SetStepComplete(Spawn, QuestFromSunkenCity, 1)
  41. if not HasCompletedQuest(Spawn, First_ReportingForDuty) and not HasQuest(Spawn, First_ReportingForDuty) then
  42. AddConversationOption(conversation, "My name is .. GetName(Spawn) .. . Inquisitor Thorson from the Sunken City sent me.", "dlg_0_1")
  43. end
  44. end
  45. if not HasQuest(Spawn, First_ReportingForDuty) and not HasCompletedQuest(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?", "dlg_0_1")
  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. end
  51. if HasCompletedQuest(Spawn, First_ReportingForDuty) then
  52. if not HasQuest(Spawn, Sixth_SteppingUptheOffensive) and not HasCompletedQuest(Spawn, Sixth_SteppingUptheOffensive) then
  53. dlg_2_0(NPC, Spawn)
  54. end
  55. end
  56. if HasCompletedQuest(Spawn, Tenth_FileAFinalReport) then
  57. if not HasQuest(Spawn, Eleventh_AJourneyOutsideTheCity) and not HasCompletedQuest(Spawn, Eleventh_AJourneyOutsideTheCity) then
  58. dlg_40_3(NPC, Spawn)
  59. end
  60. end
  61. if GetQuestStep(Spawn, RequestingFurtherOrders) == 1 then
  62. SetStepComplete(Spawn, RequestingFurtherOrders, 1)
  63. dlg_2_0(NPC, Spawn)
  64. end
  65. if GetQuestStep(Spawn, Tenth_FileAFinalReport) == 1 then
  66. SetStepComplete(Spawn, Tenth_FileAFinalReport, 1)
  67. dlg_40_3(NPC, Spawn)
  68. end
  69. RandomGreeting(NPC, Spawn)
  70. end
  71. function dlg_0_1(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius005.mp3", "", "", 1356974238, 3910566628, Spawn)
  75. AddConversationOption(conversation, "Orcs, really?", "dlg_1_1")
  76. AddConversationOption(conversation, "Where did the orcs come from?", "dlg_1_1")
  77. AddConversationOption(conversation, "Thank you for the information.")
  78. 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.")
  79. end
  80. function dlg_1_1(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius005.mp3", "", "", 1356974238, 3910566628, Spawn)
  84. AddConversationOption(conversation, "Where did the orcs come from?", "dlg_1_2")
  85. AddConversationOption(conversation, "Thank you for the information.")
  86. 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.")
  87. end
  88. function dlg_1_2(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius006.mp3", "", "", 1435383956, 2150191113, Spawn)
  92. AddConversationOption(conversation, "What are these tribes called?", "dlg_1_3")
  93. AddConversationOption(conversation, "I have no desire to mess around with orcs.")
  94. 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.")
  95. end
  96. function dlg_1_3(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius007.mp3", "", "", 803622320, 3191751364, Spawn)
  100. AddConversationOption(conversation, "Why is this place called the Ruins?", "dlg_1_4")
  101. AddConversationOption(conversation, "What work do you have for me?", "dlg_1_12")
  102. AddConversationOption(conversation, "I think I will take my leave.")
  103. 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.")
  104. end
  105. function dlg_1_4(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius008.mp3", "", "", 471952694, 1388761764, Spawn)
  109. AddConversationOption(conversation, "This place used to have grand houses and shops?", "dlg_1_5")
  110. AddConversationOption(conversation, "I don't want to hear any more.")
  111. 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.")
  112. end
  113. function dlg_1_5(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius009.mp3", "", "", 2311879676, 4148126515, Spawn)
  117. AddConversationOption(conversation, "What do you mean?", "dlg_1_6")
  118. AddConversationOption(conversation, "I've heard enough.")
  119. 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.")
  120. end
  121. function dlg_1_6(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius010.mp3", "", "", 1270241224, 2005347889, Spawn)
  125. AddConversationOption(conversation, "What happened then?", "dlg_1_7")
  126. AddConversationOption(conversation, "I have no more time for old stories.")
  127. 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.")
  128. end
  129. function dlg_1_7(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius011.mp3", "", "", 2984532909, 290696404, Spawn)
  133. AddConversationOption(conversation, "Couldn't the Militia save them?", "dlg_1_8")
  134. AddConversationOption(conversation, "I've heard enough. How can I help you defend the Ruins?")
  135. AddConversationOption(conversation, "Too bad.")
  136. 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.")
  137. end
  138. function dlg_1_8(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. conversation = CreateConversation()
  141. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius012.mp3", "", "", 516488246, 2865302304, Spawn)
  142. AddConversationOption(conversation, "What do you mean?", "dlg_1_9")
  143. AddConversationOption(conversation, "What a pity.")
  144. 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.")
  145. end
  146. function dlg_1_9(NPC, Spawn)
  147. FaceTarget(NPC, Spawn)
  148. conversation = CreateConversation()
  149. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius013.mp3", "", "", 2907233969, 819802352, Spawn)
  150. AddConversationOption(conversation, "So what became of the Ruins?", "dlg_1_10")
  151. AddConversationOption(conversation, "I've heard enough.")
  152. 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.")
  153. end
  154. function dlg_1_10(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius014.mp3", "", "", 2462744754, 2263094364, Spawn)
  158. AddConversationOption(conversation, "What caused this change?", "dlg_1_11")
  159. AddConversationOption(conversation, "Sounds like you have work to do.")
  160. 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.")
  161. end
  162. function dlg_1_11(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius015.mp3", "", "", 3872903634, 4159828807, Spawn)
  166. AddConversationOption(conversation, "How can I be of assistance?", "dlg_1_12")
  167. AddConversationOption(conversation, "I don't have any desire to help you.")
  168. 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.")
  169. end
  170. function dlg_1_12(NPC, Spawn) -- OFFER QUEST1
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. OfferQuest(NPC, Spawn, First_ReportingForDuty)
  174. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius016.mp3", "", "", 3389775257, 1638630596, Spawn)
  175. AddConversationOption(conversation, "I will do so.")
  176. AddConversationOption(conversation, "No thanks.")
  177. 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.")
  178. end
  179. function dlg_2_0(NPC, Spawn)
  180. FaceTarget(NPC, Spawn)
  181. conversation = CreateConversation()
  182. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius020.mp3", "", "", 1710634773, 3637924946, Spawn)
  183. AddConversationOption(conversation, "No, we thought an ancient shrine might be behind it, but that turned out to be a dead end.", "dlg_2_1")
  184. AddConversationOption(conversation, "I'd rather not say.")
  185. StartConversation(conversation, NPC, Spawn, "Good work! Did you find out what's behind this increase in orc activity?")
  186. end
  187. function dlg_2_1(NPC, Spawn)
  188. FaceTarget(NPC, Spawn)
  189. conversation = CreateConversation()
  190. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius021.mp3", "", "", 93483667, 1523875207, Spawn)
  191. AddConversationOption(conversation, "Thank you, Captain. Is there anything else I can do to aid the Militia?", "dlg_2_2")
  192. AddConversationOption(conversation, "I'm going to take my loot and go.")
  193. 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.")
  194. end
  195. function dlg_2_2(NPC, Spawn)
  196. FaceTarget(NPC, Spawn)
  197. conversation = CreateConversation()
  198. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius022.mp3", "", "", 1019790101, 3910654951, Spawn)
  199. AddConversationOption(conversation, "I am willing to do what is necessary to serve Freeport.", "dlg_2_3")
  200. AddConversationOption(conversation, "I think I will be leaving. Farewell.")
  201. 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.")
  202. end
  203. function dlg_2_3(NPC, Spawn)
  204. FaceTarget(NPC, Spawn)
  205. conversation = CreateConversation()
  206. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius023.mp3", "", "", 2666224286, 3160996791, Spawn)
  207. AddConversationOption(conversation, "I will find some allies. What needs to be done?", "dlg_2_4")
  208. AddConversationOption(conversation, "I prefer to journey alone.")
  209. 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.")
  210. end
  211. function dlg_2_4(NPC, Spawn)
  212. FaceTarget(NPC, Spawn)
  213. conversation = CreateConversation()
  214. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius025.mp3", "", "", 3573308808, 1112650571, Spawn)
  215. AddConversationOption(conversation, "So the Lonetusk are stronger?", "dlg_2_5")
  216. AddConversationOption(conversation, "I have no desire to face these orcs.")
  217. 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.")
  218. end
  219. function dlg_2_5(NPC, Spawn)
  220. FaceTarget(NPC, Spawn)
  221. conversation = CreateConversation()
  222. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius026.mp3", "", "", 3395408656, 1462645876, Spawn)
  223. AddConversationOption(conversation, "I am not afraid. What are your orders, Captain?", "dlg_2_6")
  224. AddConversationOption(conversation, "I'd best be leaving.")
  225. 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.")
  226. end
  227. function dlg_2_6(NPC, Spawn) -- OFFER QUEST 6
  228. FaceTarget(NPC, Spawn)
  229. conversation = CreateConversation()
  230. OfferQuest(NPC, Spawn, Sixth_SteppingUptheOffensive)
  231. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius027.mp3", "", "", 2644659750, 71027369, Spawn)
  232. AddConversationOption(conversation, "I will report to her.")
  233. AddConversationOption(conversation, "Time for me to go.")
  234. 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.")
  235. end
  236. function dlg_40_1(NPC, Spawn)
  237. FaceTarget(NPC, Spawn)
  238. conversation = CreateConversation()
  239. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius030.mp3", "", "", 669347507, 3609055382, Spawn)
  240. AddConversationOption(conversation, "It seems another tribe of orcs, the Rujarkians, are supplying them with weapons and training.", "dlg_40_2")
  241. AddConversationOption(conversation, "I prefer to keep that information private.")
  242. StartConversation(conversation, NPC, Spawn, "Well done. Did you discover the source of the orc uprising?")
  243. end
  244. function dlg_40_2(NPC, Spawn)
  245. FaceTarget(NPC, Spawn)
  246. conversation = CreateConversation()
  247. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius031.mp3", "", "", 2636650714, 3532932245, Spawn)
  248. AddConversationOption(conversation, "Where are these Rujarkian orcs located?")
  249. AddConversationOption(conversation, "Am I to be rewarded for my efforts?", "dlg_40_3")
  250. 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!")
  251. end
  252. function dlg_40_3(NPC, Spawn)
  253. FaceTarget(NPC, Spawn)
  254. conversation = CreateConversation()
  255. if HasQuest(Spawn, Tenth_FileAFinalReport) then
  256. SetStepComplete(Spawn, Tenth_FileAFinalReport, 1)
  257. end
  258. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius034.mp3", "", "", 4219431602, 1872310999, Spawn)
  259. AddConversationOption(conversation, "Is there anything else I can do to be of service to Freeport?", "dlg_40_4")
  260. 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.")
  261. end
  262. function dlg_40_4(NPC, Spawn)
  263. FaceTarget(NPC, Spawn)
  264. conversation = CreateConversation()
  265. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  266. AddConversationOption(conversation, "Yes, I will travel to the Commonlands.", "dlg_22_5")
  267. AddConversationOption(conversation, "I think I will be going, Captain. Farewell.")
  268. 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?")
  269. end
  270. function dlg_22_5(NPC, Spawn)
  271. FaceTarget(NPC, Spawn)
  272. conversation = CreateConversation()
  273. OfferQuest(NPC, Spawn, Eleventh_AJourneyOutsideTheCity)
  274. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius_solo003.mp3", "", "", 1562481055, 2208348974, Spawn)
  275. AddConversationOption(conversation, "Understood.", "dlg_11_6")
  276. 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.")
  277. end
  278. function dlg_11_6(NPC, Spawn)
  279. FaceTarget(NPC, Spawn)
  280. conversation = CreateConversation()
  281. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius_solo004.mp3", "", "", 91462570, 1357108888, Spawn)
  282. AddConversationOption(conversation, "I will. Thank you, Captain.")
  283. 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.")
  284. end
  285. function RandomGreeting(NPC, Spawn)
  286. local choice = MakeRandomInt(1,3)
  287. if choice == 1 then
  288. 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)
  289. elseif choice == 2 then
  290. 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)
  291. elseif choice == 3 then
  292. 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)
  293. end
  294. end