TayilNVelex.lua 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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", "", "nod", 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", "", "salute_freeport", 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", "", "orate", 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", "", "threaten", 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", "", "nod", 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. PlaySound(Spawn, "sounds/test/endquest.wav", GetX(Spawn), GetY(Spawn), GetZ(Spawn), Spawn) --Ding!
  128. end
  129. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex007.mp3", "", "agree", 4165919735, 3979142709, Spawn)
  130. AddConversationOption(conversation, "I am ready to begin.", "ReadyToBegin")
  131. AddConversationOption(conversation, "I'll begin later.")
  132. StartConversation(conversation, NPC, Spawn, "Excellent! There is indeed much potential in you. I think it is time to begin your training.")
  133. end
  134. function ReadyToBegin(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. conversation = CreateConversation()
  137. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex008.mp3", "", "", 1866217478, 1257770871, Spawn)
  138. AddConversationOption(conversation, "I will speak with him.", "OfferQuest1")
  139. 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.")
  140. end
  141. function ReadyToLearnAboutOutpost(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. if GetQuestStep(Spawn, TheArtOfCombat) >= 1 and GetQuestStep(Spawn, TheArtOfCombat) <= 3 then
  145. AddConversationOption(conversation, "I haven't completed my training yet, I'll return to Darg.")
  146. elseif GetQuestStep(Spawn, TheArtOfCombat) == 4 then
  147. AddConversationOption(conversation, "I am ready.", "IAmReady")
  148. end
  149. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex012.mp3", "", "nod", 780859497, 3478920233, Spawn)
  150. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  151. AddConversationOption(conversation, "Not just yet.")
  152. StartConversation(conversation, NPC, Spawn, "So, " .. GetName(Spawn) .. ", are you ready to learn more about the outpost and perform your first services for the Overlord?")
  153. end
  154. -- 1st QUEST DIALOG
  155. -----------------------------------------------------------------------------------------------------------------------------------------------
  156. -- 2nd QUEST DIALOG Chef Gorga
  157. -----------------------------------------------------------------------------------------------------------------------------------------------
  158. function IAmReady(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. if HasQuest(Spawn, TheArtOfCombat) then
  162. if GetQuestStep(Spawn, TheArtOfCombat) == 4 then
  163. SetStepComplete(Spawn, TheArtOfCombat, 4)
  164. PlaySound(Spawn, "sounds/test/endquest.wav", GetX(Spawn), GetY(Spawn), GetZ(Spawn), Spawn) --Ding!
  165. end
  166. end
  167. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex013.mp3", "", "scold", 2559303107, 2971364705, Spawn)
  168. AddConversationOption(conversation, "I'll keep that in mind. So who are the inhabitants?", "WhoInhabitants")
  169. AddConversationOption(conversation, "We'll discuss this later.")
  170. 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.")
  171. end
  172. function WhoInhabitants(NPC, Spawn)
  173. FaceTarget(NPC, Spawn)
  174. conversation = CreateConversation()
  175. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex014.mp3", "", "", 298813640, 3848290979, Spawn)
  176. AddConversationOption(conversation, "So I should go wipe them out?", "WipeThemOut")
  177. AddConversationOption(conversation, "That sounds like a lot of effort.")
  178. 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.")
  179. end
  180. function WipeThemOut(NPC, Spawn)
  181. FaceTarget(NPC, Spawn)
  182. conversation = CreateConversation()
  183. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex015.mp3", "", "no", 907106950, 578099041, Spawn)
  184. AddConversationOption(conversation, "I am ready.", "IAmReady2")
  185. AddConversationOption(conversation, "Perhaps later.")
  186. 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?")
  187. end
  188. function IAmReady2(NPC, Spawn)
  189. FaceTarget(NPC, Spawn)
  190. conversation = CreateConversation()
  191. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex016.mp3", "", "nod", 727910371, 354103417, Spawn)
  192. AddConversationOption(conversation, "I will go help Chef Gorga.", "OfferQuest2")
  193. 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.")
  194. end
  195. function HelpedGorgaGather(NPC, Spawn)
  196. SetStepComplete(Spawn, SeasideStew, 6)
  197. FaceTarget(NPC, Spawn)
  198. conversation = CreateConversation()
  199. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex018.mp3", "", "agree", 4113250414, 3675047452, Spawn)
  200. AddConversationOption(conversation, "Thank you, Tayil.", "ThankYouTayil")
  201. 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.")
  202. end
  203. function EnjoyHuntingWithChef(NPC, Spawn)
  204. FaceTarget(NPC, Spawn)
  205. conversation = CreateConversation()
  206. if GetQuestStep(Spawn, SeasideStew) >= 1 and GetQuestStep(Spawn, SeasideStew) <= 5 then
  207. AddConversationOption(conversation, "I haven't finished with Gorga yet.")
  208. elseif GetQuestStep(Spawn, SeasideStew) == 6 then
  209. AddConversationOption(conversation, "I helped Gorga gather supplies.", "HelpedGorgaGather")
  210. end
  211. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex017.mp3", "", "agree", 1018943888, 25598510, Spawn)
  212. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  213. AddConversationOption(conversation, "I still have some more hunting to do.")
  214. StartConversation(conversation, NPC, Spawn, "Did you enjoy your hunting in the Seaside Glad with Chef Gorga?")
  215. end
  216. -----------------------------------------------------------------------------------------------------------------------------------------------
  217. -- 3rd QUEST DIALOG - Assassin Vamir
  218. -----------------------------------------------------------------------------------------------------------------------------------------------
  219. function ThankYouTayil(NPC, Spawn)
  220. FaceTarget(NPC, Spawn)
  221. conversation = CreateConversation()
  222. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex019.mp3", "", "", 3119184913, 1183036509, Spawn)
  223. AddConversationOption(conversation, "I am ready for my next assignment.", "ReadyForNextAssignment")
  224. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  225. AddConversationOption(conversation, "Not just yet.")
  226. StartConversation(conversation, NPC, Spawn, "So, " .. GetName(Spawn) .. ", are you ready to prove your worth again?")
  227. end
  228. function ReadyForNextAssignment(NPC, Spawn)
  229. FaceTarget(NPC, Spawn)
  230. conversation = CreateConversation()
  231. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex020.mp3", "", "cutthroat", 712284535, 2640983070, Spawn)
  232. AddConversationOption(conversation, "You're suggesting some kind of sinister plan?", "SinisterPlan")
  233. AddConversationOption(conversation, "I can't really figure out what you mean right now.")
  234. 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.")
  235. end
  236. function SinisterPlan(NPC, Spawn)
  237. FaceTarget(NPC, Spawn)
  238. conversation = CreateConversation()
  239. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex021.mp3", "", "nod", 1415726143, 629403231, Spawn)
  240. AddConversationOption(conversation, "I will go speak to Assassin Vamir.", "OfferQuest3")
  241. AddConversationOption(conversation, "I don't have time right now.")
  242. 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.")
  243. end
  244. function WorkWithVamirSuccessfull(NPC, Spawn)
  245. FaceTarget(NPC, Spawn)
  246. conversation = CreateConversation()
  247. AddConversationOption(conversation, "I have more to learn from him.")
  248. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  249. StartConversation(conversation, NPC, Spawn, "Hello again, " .. GetName(Spawn) .. ". Was your work with Assassin Vamir successful?")
  250. end
  251. -----------------------------------------------------------------------------------------------------------------------------------------------
  252. -- 4TH QUEST - Coercer Zlith
  253. -----------------------------------------------------------------------------------------------------------------------------------------------
  254. function DidNotReadNote(NPC, Spawn)
  255. FaceTarget(NPC, Spawn)
  256. conversation = CreateConversation()
  257. AddConversationOption(conversation, "I am ready to serve my liege.", "ReadyToServe")
  258. AddConversationOption(conversation, "How do I leave the island?", "LeaveIsland")
  259. AddConversationOption(conversation, "Not just yet.")
  260. StartConversation(conversation, NPC, Spawn, "Perhaps you did not read my note. Are you prepared to lend your services to the Overlord once again?")
  261. end
  262. function ReadyToServe(NPC, Spawn)
  263. FaceTarget(NPC, Spawn)
  264. conversation = CreateConversation()
  265. AddConversationOption(conversation, "Sounds good. How do I proceed?", "OfferQuest4")
  266. AddConversationOption(conversation, "Perhaps later.")
  267. 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.")
  268. end
  269. function DisruptedMine(NPC, Spawn)
  270. FaceTarget(NPC, Spawn)
  271. conversation = CreateConversation()
  272. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  273. AddConversationOption(conversation, "Not yet.")
  274. StartConversation(conversation, NPC, Spawn, "Have you succeeded in disrupting Qeynosian activities at the mine?")
  275. end
  276. -----------------------------------------------------------------------------------------------------------------------------------------------
  277. -- 5TH QUEST
  278. -----------------------------------------------------------------------------------------------------------------------------------------------
  279. function ResourcesAreDwindling(NPC, Spawn)
  280. FaceTarget(NPC, Spawn)
  281. conversation = CreateConversation()
  282. AddConversationOption(conversation, "I am ready, Tayil.", "ReadyQuest5")
  283. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  284. 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?")
  285. end
  286. function ReadyQuest5(NPC, Spawn)
  287. FaceTarget(NPC, Spawn)
  288. conversation = CreateConversation()
  289. AddConversationOption(conversation, "North of Cliffdiver Canyon, then east. Got it.", "NorthThenEast")
  290. 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.")
  291. end
  292. function NorthThenEast(NPC, Spawn)
  293. FaceTarget(NPC, Spawn)
  294. conversation = CreateConversation()
  295. AddConversationOption(conversation, "I will speak to Captain Tyreth.", "OfferQuest5")
  296. 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!")
  297. end
  298. function ReportToCaptain(NPC, Spawn)
  299. FaceTarget(NPC, Spawn)
  300. conversation = CreateConversation()
  301. AddConversationOption(conversation, "I will go speak to Captain Tyreth.")
  302. AddConversationOption(conversation, "How do I leave the Island?", "LeaveIsland")
  303. 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!")
  304. end
  305. function BraveryNoted(NPC, Spawn)
  306. FaceTarget(NPC, Spawn)
  307. conversation = CreateConversation()
  308. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex033.mp3", "", "", 2106485870, 4220225925, Spawn)
  309. AddConversationOption(conversation, "I am honored to have served the Overlord.", "dlg_8_1")
  310. AddConversationOption(conversation, "How do I leave the island?")
  311. 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.")
  312. end
  313. function dlg_8_1(NPC, Spawn)
  314. FaceTarget(NPC, Spawn)
  315. conversation = CreateConversation()
  316. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex034.mp3", "", "", 1646478663, 778919284, Spawn)
  317. AddConversationOption(conversation, "Thank you, Tayil.")
  318. 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.")
  319. end
  320. function OfferQuest1(NPC, Spawn)
  321. FaceTarget(NPC, Spawn)
  322. OfferQuest(NPC, Spawn, TheArtOfCombat)
  323. end
  324. function OfferQuest2(NPC, Spawn)
  325. FaceTarget(NPC, Spawn)
  326. OfferQuest(NPC, Spawn, SeasideStew)
  327. end
  328. function OfferQuest3(NPC, Spawn)
  329. FaceTarget(NPC, Spawn)
  330. OfferQuest(NPC, Spawn, PreventativeMaintenance)
  331. end
  332. function OfferQuest4(NPC, Spawn)
  333. FaceTarget(NPC, Spawn)
  334. OfferQuest(NPC, Spawn, DisruptionForDistraction)
  335. end
  336. function OfferQuest5(NPC, Spawn)
  337. FaceTarget(NPC, Spawn)
  338. OfferQuest(NPC, Spawn, TheFinalAssault)
  339. end