9
3

TayilNVelex.lua 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. --[[
  2. Script Name : TayilNVelex.lua
  3. Script Purpose : Spawnscript for Tayil N'Velex
  4. Script Author : Scatman (Updated by Cynnar 2018.09.23 05.32.10)
  5. Script Date : 2008.09.05
  6. Script Notes :
  7. --]]
  8. -- Quest ID's
  9. local WelcomeToNorrath = 362
  10. local TheArtOfCombat = 363
  11. local SeasideStew = 364
  12. local PreventativeMaintenance = 365
  13. local DisruptionForDistraction = 366
  14. local TheFinalAssault = 367
  15. function spawn(NPC)
  16. ProvidesQuest(NPC, TheArtOfCombat)
  17. ProvidesQuest(NPC, SeasideStew)
  18. ProvidesQuest(NPC, PreventativeMaintenance)
  19. ProvidesQuest(NPC, DisruptionForDistraction)
  20. ProvidesQuest(NPC, TheFinalAssault)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. conversation = CreateConversation()
  25. if not HasCompletedQuest(Spawn, TheArtOfCombat) then
  26. if HasQuest(Spawn, TheArtOfCombat) then
  27. ReadyToLearnAboutOutpost(NPC, Spawn)
  28. elseif CanReceiveQuest(Spawn, TheArtOfCombat) then
  29. BeenExpectingYou(NPC, Spawn)
  30. end
  31. elseif not HasCompletedQuest(Spawn, SeasideStew) then
  32. if HasQuest(Spawn, SeasideStew) then
  33. EnjoyHuntingWithChef(NPC, Spawn)
  34. elseif CanReceiveQuest(Spawn, SeasideStew) then
  35. IAmReady(NPC, Spawn)
  36. end
  37. elseif not HasCompletedQuest(Spawn, PreventativeMaintenance) then
  38. if HasQuest(Spawn, PreventativeMaintenance) then
  39. WorkWithVamirSuccessfull(NPC, Spawn)
  40. elseif CanReceiveQuest(Spawn, PreventativeMaintenance) then
  41. ThankYouTayil(NPC, Spawn)
  42. end
  43. elseif not HasCompletedQuest(Spawn, DisruptionForDistraction) then
  44. if HasQuest(Spawn, DisruptionForDistraction) then
  45. DisruptedMine(NPC, Spawn)
  46. elseif CanReceiveQuest(Spawn, DisruptionForDistraction) then
  47. DidNotReadNote(NPC, Spawn)
  48. end
  49. elseif not HasCompletedQuest(Spawn, TheFinalAssault) then
  50. if HasQuest(Spawn, DisruptionForDistraction) then
  51. BraveryNoted(NPC, Spawn)
  52. elseif CanReceiveQuest(Spawn, TheFinalAssault)then
  53. ReportToCaptain(NPC, Spawn)
  54. end
  55. end
  56. end
  57. function BeenExpectingYou(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex001.mp3", "", "", 2948130929, 4294504666, Spawn)
  61. AddConversationOption(conversation, "You were expecting me? Who are you?", "WhoAreYou")
  62. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  63. AddConversationOption(conversation, "I should be going.")
  64. StartConversation(conversation, NPC, Spawn, "Ah, there you are " .. GetName(Spawn) .. ". I have been expecting you. There is much work ahead of us in establishing Freeport's dominance over this island. There Overlord's troops have secured the output, but there is a growing nuisance on the other side of the island that must be addressed. That is where you come in.")
  65. end
  66. function LeaveIsland(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex_leave000.mp3", "", "", 3045154578, 2506070034, Spawn)
  70. AddConversationOption(conversation, "Where can I find Captain Varlos?", "WhereCaptainVarlos")
  71. StartConversation(conversation, NPC, Spawn, "If you feel you are prepared then you are allowed to leave the outpost whenever you desire. To do so simply speak with Captain Varlos. We have a deal worked out with him and he will bring you to the grand city of Freeport.")
  72. end
  73. function WhereCaptainVarlos(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex_leave001.mp3", "", "", 719992004, 84658304, Spawn)
  77. AddConversationOption(conversation, "Thank you.")
  78. StartConversation(conversation, NPC, Spawn, "The beach is just southeast of here. Captain Varlos' ship will be on the northern dock. He can be found on his ship.")
  79. end
  80. function WhoAreYou(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex002.mp3", "", "", 2553820270, 1636531124, Spawn)
  84. AddConversationOption(conversation, "Who is the Overlord?", "WhoIsOverlord")
  85. AddConversationOption(conversation, "I'm ready to begin my adventures.", "ThanksForAdvice")
  86. AddConversationOption(conversation, "I will return for instruction later.")
  87. StartConversation(conversation, NPC, Spawn, "I am Tayil N'Velex, attendant and confidante of the Overlord. I am here to ensure that our operation on this island is successful. You, on the other hand, will be assisting us with some field work to help prepare you for life as a citizen of Freeport.")
  88. end
  89. function WhoIsOverlord(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex003.mp3", "", "", 416547700, 1925188764, Spawn)
  93. AddConversationOption(conversation, "I will remember that. What can you tell me of Freeport?", "WhatIsFreeport")
  94. AddConversationOption(conversation, "I'll hear more of this later.")
  95. StartConversation(conversation, NPC, Spawn, "The Overlord is the fiercely courageous rule of Freeport. A statue of his glowing visage graces the pond in the center of the outpost. Though he is merciless to his enemies, he is generous to those who serve him. Pray you never do anything to fall from his grace, " .. GetName(Spawn) .. ".")
  96. end
  97. function WhatIsFreeport(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex004.mp3", "", "", 255811438, 796501072, Spawn)
  101. AddConversationOption(conversation, "What is Qeynos?", "WhatIsQeynos")
  102. AddConversationOption(conversation, "Thank you for the information.")
  103. StartConversation(conversation, NPC, Spawn, "Freeport is the center of power and commerce on Norrath. The city sits on the eastern edge of the continent of D'Lere. This grand city shall be your home here on Norrath, should you prove yourself worthy. If not, you can cower and beg for shelter at the gates of Qeynos.")
  104. end
  105. function WhatIsQeynos(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex005.mp3", "", "", 2390968770, 501699972, Spawn)
  109. AddConversationOption(conversation, "Thank you for the advice, Tayil.", "ThanksForAdvice")
  110. AddConversationOption(conversation, "I prefer to make up my own mind.")
  111. StartConversation(conversation, NPC, Spawn, "The city of Qeynos is the enemy of Freeport. It is a weak land ruled by an incompetent queen, Antonia Bayle. I've had my share of battles with her and my pet kerra, I assure you. Qeynosians try to spread lies about the Overlord and portray him as some kind of power-mad tyrant. Don't believe their propaganda, " .. GetName(Spawn) .. "!")
  112. end
  113. function ThanksForAdvice(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex006.mp3", "", "", 3631541151, 3425399137, Spawn)
  117. AddConversationOption(conversation, "I pledge myself to Freeport.", "PledgeToFreeport")
  118. AddConversationOption(conversation, "Not just yet.")
  119. StartConversation(conversation, NPC, Spawn, "Remember to always keep the will of the Overlord foremost in your thoughts and you will go far. The city of Freeport is a power unrivaled on Norrath, no matter what you may hear from Qeynosian riffraff. You must pledge yourself to this power and become part of it. Do this and I will reward you handsomely.")
  120. end
  121. function PledgeToFreeport(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. -- update WelcomeToNorrath Quest
  125. if not HasCompletedQuest (Spawn, WelcomeToNorrath) then
  126. SetStepComplete(Spawn, WelcomeToNorrath, 1)
  127. end
  128. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex007.mp3", "", "", 4165919735, 3979142709, Spawn)
  129. AddConversationOption(conversation, "I am ready to begin.", "ReadyToBegin")
  130. AddConversationOption(conversation, "I'll begin later.")
  131. StartConversation(conversation, NPC, Spawn, "Excellent! There is indeed much potential in you. I think it is time to begin your training.")
  132. end
  133. function ReadyToBegin(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex008.mp3", "", "", 1866217478, 1257770871, Spawn)
  137. AddConversationOption(conversation, "I will speak with him.", "OfferQuest1")
  138. StartConversation(conversation, NPC, Spawn, "You must be strong if you wish to serve properly. Northwest of here you can find Trainer Darg Frostwind. Speak with him about combat training and do as he tells you.")
  139. end
  140. function ReadyToLearnAboutOutpost(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. if GetQuestStep(Spawn, TheArtOfCombat) >= 1 and GetQuestStep(Spawn, TheArtOfCombat) <= 3 then
  144. AddConversationOption(conversation, "I haven't completed my training yet, I'll return to Darg.")
  145. elseif GetQuestStep(Spawn, TheArtOfCombat) == 4 then
  146. AddConversationOption(conversation, "I am ready.", "IAmReady")
  147. end
  148. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex012.mp3", "", "", 780859497, 3478920233, Spawn)
  149. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  150. AddConversationOption(conversation, "Not just yet.")
  151. StartConversation(conversation, NPC, Spawn, "So, " .. GetName(Spawn) .. ", are you ready to learn more about the outpost and perform your first services for the Overlord?")
  152. end
  153. -- 1st QUEST DIALOG
  154. -----------------------------------------------------------------------------------------------------------------------------------------------
  155. -- 2nd QUEST DIALOG Chef Gorga
  156. -----------------------------------------------------------------------------------------------------------------------------------------------
  157. function IAmReady(NPC, Spawn)
  158. FaceTarget(NPC, Spawn)
  159. conversation = CreateConversation()
  160. if HasQuest(Spawn, TheArtOfCombat) then
  161. if GetQuestStep(Spawn, TheArtOfCombat) == 4 then
  162. SetStepComplete(Spawn, TheArtOfCombat, 4)
  163. end
  164. end
  165. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex013.mp3", "", "", 2559303107, 2971364705, Spawn)
  166. AddConversationOption(conversation, "I'll keep that in mind. So who are the inhabitants?", "WhoInhabitants")
  167. AddConversationOption(conversation, "We'll discuss this later.")
  168. StartConversation(conversation, NPC, Spawn, "This outpost was recently established as a training ground for potential citizens of Freeport to hone their skills. Our first scouts on the island reported it as being uninhabited, perfect for our needs. It soon became clear that the initial reports were incorrect, and those scouts have been permanently reassigned to the bottom of the bay. Such is the price of failure.")
  169. end
  170. function WhoInhabitants(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex014.mp3", "", "", 298813640, 3848290979, Spawn)
  174. AddConversationOption(conversation, "So I should go wipe them out?", "WipeThemOut")
  175. AddConversationOption(conversation, "That sounds like a lot of effort.")
  176. StartConversation(conversation, NPC, Spawn, "The intruders are a sect of the Tunarian Alliance, a lowly order of vermin originating from Qeynos. As a true servant of the Overlord, your duty is to eliminate them. This should prove extremely useful in preparing you for the challenges that lie ahead after you leave the outpost.")
  177. end
  178. function WipeThemOut(NPC, Spawn)
  179. FaceTarget(NPC, Spawn)
  180. conversation = CreateConversation()
  181. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex015.mp3", "", "", 907106950, 578099041, Spawn)
  182. AddConversationOption(conversation, "I am ready.", "IAmReady2")
  183. AddConversationOption(conversation, "Perhaps later.")
  184. StartConversation(conversation, NPC, Spawn, "Not just yet, " .. GetName(Spawn) .. ". You will strike against those Qeynosian scum when the time is right. First we need to see if that weapon of yours is working! Are you ready for your first test?")
  185. end
  186. function IAmReady2(NPC, Spawn)
  187. FaceTarget(NPC, Spawn)
  188. conversation = CreateConversation()
  189. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex016.mp3", "", "", 727910371, 354103417, Spawn)
  190. AddConversationOption(conversation, "I will go help Chef Gorga.", "OfferQuest2")
  191. StartConversation(conversation, NPC, Spawn, "Go talk to Chef Gorga just past the west archway. She needs help gathering supplies to feed the members of the Freeport Militia who guard this outpost, which should provide a chance to test your combat skills. There is more to hunt on this island than just Qeynosians.")
  192. end
  193. function HelpedGorgaGather(NPC, Spawn)
  194. SetStepComplete(Spawn, SeasideStew, 6)
  195. FaceTarget(NPC, Spawn)
  196. conversation = CreateConversation()
  197. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex018.mp3", "", "", 4113250414, 3675047452, Spawn)
  198. AddConversationOption(conversation, "Thank you, Tayil.", "ThankYouTayil")
  199. StartConversation(conversation, NPC, Spawn, "Gorga was impressed with your handiwork. I'm sure the outpost Militia guards will be pleased with her stew, though I can't stomach troll cooking myself. You show potential indeed, " .. GetName(Spawn) .. ". As promised, here is your reward.")
  200. end
  201. function EnjoyHuntingWithChef(NPC, Spawn)
  202. FaceTarget(NPC, Spawn)
  203. conversation = CreateConversation()
  204. if GetQuestStep(Spawn, SeasideStew) >= 1 and GetQuestStep(Spawn, SeasideStew) <= 5 then
  205. AddConversationOption(conversation, "I haven't finished with Gorga yet.")
  206. elseif GetQuestStep(Spawn, SeasideStew) == 6 then
  207. AddConversationOption(conversation, "I helped Gorga gather supplies.", "HelpedGorgaGather")
  208. end
  209. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex017.mp3", "", "", 1018943888, 25598510, Spawn)
  210. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  211. AddConversationOption(conversation, "I still have some more hunting to do.")
  212. StartConversation(conversation, NPC, Spawn, "Did you enjoy your hunting in the Seaside Glad with Chef Gorga?")
  213. end
  214. -----------------------------------------------------------------------------------------------------------------------------------------------
  215. -- 3rd QUEST DIALOG - Assassin Vamir
  216. -----------------------------------------------------------------------------------------------------------------------------------------------
  217. function ThankYouTayil(NPC, Spawn)
  218. FaceTarget(NPC, Spawn)
  219. conversation = CreateConversation()
  220. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex019.mp3", "", "", 3119184913, 1183036509, Spawn)
  221. AddConversationOption(conversation, "I am ready for my next assignment.", "ReadyForNextAssignment")
  222. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  223. AddConversationOption(conversation, "Not just yet.")
  224. StartConversation(conversation, NPC, Spawn, "So, " .. GetName(Spawn) .. ", are you ready to prove your worth again?")
  225. end
  226. function ReadyForNextAssignment(NPC, Spawn)
  227. FaceTarget(NPC, Spawn)
  228. conversation = CreateConversation()
  229. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex020.mp3", "", "", 712284535, 2640983070, Spawn)
  230. AddConversationOption(conversation, "You're suggesting some kind of sinister plan?", "SinisterPlan")
  231. AddConversationOption(conversation, "I can't really figure out what you mean right now.")
  232. StartConversation(conversation, NPC, Spawn, "Good, now listen closely. Though a direct attack upon your enemy can be quite satisfying, there are often more subtle means of inflicting damage. Cut off the feet and the head is sure to follow, if you get my meaning.")
  233. end
  234. function SinisterPlan(NPC, Spawn)
  235. FaceTarget(NPC, Spawn)
  236. conversation = CreateConversation()
  237. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex021.mp3", "", "", 1415726143, 629403231, Spawn)
  238. AddConversationOption(conversation, "I will go speak to Assassin Vamir.", "OfferQuest3")
  239. AddConversationOption(conversation, "I don't have time right now.")
  240. StartConversation(conversation, NPC, Spawn, "Indeed, cunning and subtlety are often effective. And who is more cunning and subtle than an assassin? We've established a camp through the archway to the west, at the far end of Seaside Glade. Go and speak to Assassin Vamir, who has devised a plan to strike at the heart of the Tunarians.")
  241. end
  242. function WorkWithVamirSuccessfull(NPC, Spawn)
  243. FaceTarget(NPC, Spawn)
  244. conversation = CreateConversation()
  245. AddConversationOption(conversation, "I have more to learn from him.")
  246. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  247. StartConversation(conversation, NPC, Spawn, "Hello again, " .. GetName(Spawn) .. ". Was your work with Assassin Vamir successful?")
  248. end
  249. -----------------------------------------------------------------------------------------------------------------------------------------------
  250. -- 4TH QUEST - Coercer Zlith
  251. -----------------------------------------------------------------------------------------------------------------------------------------------
  252. function DidNotReadNote(NPC, Spawn)
  253. FaceTarget(NPC, Spawn)
  254. conversation = CreateConversation()
  255. AddConversationOption(conversation, "I am ready to serve my liege.", "ReadyToServe")
  256. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  257. AddConversationOption(conversation, "Not just yet.")
  258. StartConversation(conversation, NPC, Spawn, "Perhaps you did not read my note. Are you prepared to lend your services to the Overlord once again?")
  259. end
  260. function ReadyToServe(NPC, Spawn)
  261. FaceTarget(NPC, Spawn)
  262. conversation = CreateConversation()
  263. AddConversationOption(conversation, "Sounds good. How do I proceed?", "OfferQuest4")
  264. AddConversationOption(conversation, "Perhaps later.")
  265. StartConversation(conversation, NPC, Spawn, "We have discovered that the Tunarian Alliance's main source of income is from a mine in the Wilderwood. The mine is the perfect setting to employ our next strategy for conquering the island: distraction. By causing a disruption at the mine, it will allow us to flank the Qeynosians from the opposite side.")
  266. end
  267. function DisruptedMine(NPC, Spawn)
  268. FaceTarget(NPC, Spawn)
  269. conversation = CreateConversation()
  270. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  271. AddConversationOption(conversation, "Not yet.")
  272. StartConversation(conversation, NPC, Spawn, "Have you succeeded in disrupting Qeynosian activities at the mine?")
  273. end
  274. -----------------------------------------------------------------------------------------------------------------------------------------------
  275. -- 5TH QUEST
  276. -----------------------------------------------------------------------------------------------------------------------------------------------
  277. function ResourcesAreDwindling(NPC, Spawn)
  278. FaceTarget(NPC, Spawn)
  279. conversation = CreateConversation()
  280. AddConversationOption(conversation, "I am ready, Tayil.", "ReadyQuest5")
  281. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  282. StartConversation(conversation, NPC, Spawn, "The Tunarian Alliance's resources are dwindling and their forces are focused on defending the mine. The time has come to strike the final blow. Are you prepared to face your greatest challenge so far?")
  283. end
  284. function ReadyQuest5(NPC, Spawn)
  285. FaceTarget(NPC, Spawn)
  286. conversation = CreateConversation()
  287. AddConversationOption(conversation, "North of Cliffdiver Canyon, then east. Got it.", "NorthThenEast")
  288. StartConversation(conversation, NPC, Spawn, "The Militia has pushed through the Tunarian Alliance's line into the Valley of Discipline, they area they use to train their animals. Our forces have set up a forward camp in an alcove located in the eastern portion of the valley near the archway leading to the falls.")
  289. end
  290. function NorthThenEast(NPC, Spawn)
  291. FaceTarget(NPC, Spawn)
  292. conversation = CreateConversation()
  293. AddConversationOption(conversation, "I will speak to Captain Tyreth.", "OfferQuest5")
  294. StartConversation(conversation, NPC, Spawn, "The Militia is using this position as our point of attack. Go to the camp and seek out Captain Tyreth, the leader of the forward operation. He will direct your efforts in this final phase of the assault. We will drive out the Tunarian Alliance and take their treasures as our own!")
  295. end
  296. function ReportToCaptain(NPC, Spawn)
  297. FaceTarget(NPC, Spawn)
  298. conversation = CreateConversation()
  299. AddConversationOption(conversation, "I will go speak to Captain Tyreth.")
  300. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  301. StartConversation(conversation, NPC, Spawn, "Report to Captain Tyreth at the Militia camp in the Valley of Discipline. He can be found in an alcove located in the eastern part of the valley near the archway leading to the falls. We must make our final stand against the Tunarians!")
  302. end
  303. function BraveryNoted(NPC, Spawn)
  304. FaceTarget(NPC, Spawn)
  305. conversation = CreateConversation()
  306. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex033.mp3", "", "", 2106485870, 4220225925, Spawn)
  307. AddConversationOption(conversation, "I am honored to have served the Overlord.", "dlg_8_1")
  308. AddConversationOption(conversation, "How do I leave the island?")
  309. StartConversation(conversation, NPC, Spawn, "Your bravery has been noted, young one. The Tunarian Circle of Elders was defeated and their treasure is ours. The Militia troops will remain here to clear out the remaining Qeynosians, but they present no danger to us.")
  310. end
  311. function dlg_8_1(NPC, Spawn)
  312. FaceTarget(NPC, Spawn)
  313. conversation = CreateConversation()
  314. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex034.mp3", "", "", 1646478663, 778919284, Spawn)
  315. AddConversationOption(conversation, "Thank you, Tayil.")
  316. StartConversation(conversation, NPC, Spawn, "It was my pleasure to fight beside you. I have no doubt that you will be well received in Freeport. When you are ready to leave the outpost and venture to our great city, speak with Captain Varlos on the deck of the Far Journey. His ship is waiting on the dock through the south archway. Farewell.")
  317. end
  318. function OfferQuest1(NPC, Spawn)
  319. FaceTarget(NPC, Spawn)
  320. OfferQuest(NPC, Spawn, TheArtOfCombat)
  321. end
  322. function OfferQuest2(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. OfferQuest(NPC, Spawn, SeasideStew)
  325. end
  326. function OfferQuest3(NPC, Spawn)
  327. FaceTarget(NPC, Spawn)
  328. OfferQuest(NPC, Spawn, PreventativeMaintenance)
  329. end
  330. function OfferQuest4(NPC, Spawn)
  331. FaceTarget(NPC, Spawn)
  332. OfferQuest(NPC, Spawn, DisruptionForDistraction)
  333. end
  334. function OfferQuest5(NPC, Spawn)
  335. FaceTarget(NPC, Spawn)
  336. OfferQuest(NPC, Spawn, TheFinalAssault)
  337. end