9
3

DukeFerrin.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/DukeFerrin.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.30 03:08:19
  5. Script Purpose : Just parsed the dialog and placed it here.
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Qeynos = 5717
  10. local Freeport = 5758
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetQuestStep(Spawn, Qeynos)==1 or GetQuestStep(Spawn, Freeport)==1 then
  18. LeaveDialog1(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, Qeynos)>1 then
  20. PlayFlavor(NPC,"voiceover/english/duke_ferrin/tutorial_island02/dukeferrin026.mp3","Very well, you will find the Qeynos dock to the south. Ring the mariner's bell at the end of the dock, and a ship bound for Qeynos will pick you up. I'm sure that one of the Qeynos representatives will cover your fee. ","",2656074166,2921193295,Spawn)
  21. elseif GetQuestStep(Spawn, Freeport)>1 then
  22. PlayFlavor(NPC,"voiceover/english/duke_ferrin/tutorial_island02/dukeferrin027.mp3","The eastern-most dock is the one that ships bound for Freeport use. If you ring the mariner's bell at the end of the dock, one of the ships leaving for Freeport will pick you up. I'll make sure to collect your fee from the Ambassador.","",1132073001,313723949,Spawn)
  23. else
  24. Dialog12(NPC, Spawn)
  25. end
  26. end
  27. --LEAVING DIALOG --
  28. function LeaveDialog1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Well, I see you've managed to do quite well for yourself out here on the island. I suppose I owe you some measure of gratitude for what you've managed to accomplish during your short stay here.")
  32. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin023.mp3", 1028484409, 3054994254)
  33. Dialog.AddOption("Thanks, it's nice to know my efforts are appreciated.", "LeaveDialog2")
  34. Dialog.Start()
  35. end
  36. function LeaveDialog2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("You seem capable of surviving in whatever city you end up living in, but you're lacking transportation.")
  40. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin024.mp3", 4155527992, 2524136639)
  41. Dialog.AddOption("How about one of your boats?", "LeaveDialog3")
  42. Dialog.Start()
  43. end
  44. function LeaveDialog3(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("I suppose I could grant you passage on the next ship out. Which city have you decided on?")
  48. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin025.mp3", 422571619, 2531247876)
  49. if HasQuest(Spawn,5717) then
  50. Dialog.AddOption("Qeynos", "LeaveDialogQ")
  51. else
  52. Dialog.AddOption("Freeport", "LeaveDialogFP")
  53. end Dialog.Start()
  54. end
  55. function LeaveDialogQ(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Very well, you will find the Qeynos dock to the south. Ring the mariner's bell at the end of the dock, and a ship bound for Qeynos will pick you up. I'm sure that one of the Qeynos representatives will cover your fee.")
  59. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin026.mp3", 2656074166,2921193295)
  60. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  61. Dialog.AddOption("Thank you very much.")
  62. Dialog.Start()
  63. SetStepComplete(Spawn,Qeynos,1)
  64. end
  65. function LeaveDialogFP(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. Dialog.New(NPC, Spawn)
  68. Dialog.AddDialog("The eastern-most dock is the one that ships bound for Freeport use. If you ring the mariner's bell at the end of the dock, one of the ships leaving for Freeport will pick you up. I'll make sure to collect your fee from the Ambassador.")
  69. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin027.mp3", 1132073001,313723949)
  70. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  71. Dialog.AddOption("I'm sure you will.")
  72. Dialog.Start()
  73. SetStepComplete(Spawn,Freeport,1)
  74. end
  75. --REGULAR DIALOG
  76. function Dialog2(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. Dialog.New(NPC, Spawn)
  79. Dialog.AddDialog("Good, I wanted to thank you for saving his ship.")
  80. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin002.mp3", 2083315863, 147267048)
  81. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  82. Dialog.AddOption("You're welcome, sir.", "Dialog18")
  83. Dialog.Start()
  84. end
  85. function Dialog3(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. Dialog.AddDialog("When the pact was first signed, the cities were struggling for power and would outbid each other for refugees. Now the cities are flooded with people and the prices for refugees have dropped considerably.")
  89. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin017.mp3", 37642125, 3206293164)
  90. Dialog.AddOption("Makes life hard, I take it.", "Dialog9")
  91. Dialog.Start()
  92. end
  93. function Dialog4(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("I've got to get back to my business now. Thanks again for your help, and good luck in your training.")
  97. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin021.mp3", 2517965433, 188869534)
  98. Dialog.AddOption("Thanks, I think.")
  99. Dialog.Start()
  100. end
  101. function Dialog5(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. Dialog.New(NPC, Spawn)
  104. Dialog.AddDialog("Well, it used to be that anyone with a ship ran refugees. But now only large guilds are able to make a profit, and even we struggle to make ends meet.")
  105. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin016.mp3", 351897977, 1632338599)
  106. Dialog.AddOption("Struggle? Why?", "Dialog3")
  107. Dialog.Start()
  108. end
  109. function Dialog6(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. Dialog.New(NPC, Spawn)
  112. Dialog.AddDialog("No, but we are the best. After all, no other guild has a training yard of this size and a live goblin uprising to boot! Also, we are the only ones that serve both cities without bias.")
  113. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin015.mp3", 2563532065, 144430100)
  114. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  115. Dialog.AddOption("How many others are there?", "Dialog5")
  116. Dialog.Start()
  117. end
  118. function Dialog7(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. Dialog.New(NPC, Spawn)
  121. Dialog.AddDialog("When they arrive they find the shelter that they need. We will get paid for delivering them, and the city will get another productive member of their populace. See? Everybody wins.")
  122. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin014.mp3", 116354853, 1466552519)
  123. Dialog.AddOption("Are you the only ones doing this?", "Dialog6")
  124. Dialog.Start()
  125. end
  126. function Dialog8(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("I really don't know what to believe.")
  130. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin007.mp3", 3488389837, 1184589061)
  131. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  132. Dialog.AddOption("Any chance they'll come here?", "Dialog16")
  133. Dialog.AddOption("Ok, thanks for the information.")
  134. Dialog.Start()
  135. end
  136. function Dialog9(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. Dialog.New(NPC, Spawn)
  139. Dialog.AddDialog("The requirements of the cities are stricter and they now require us to train the refugees before bringing them to the cities. It eats at our profits and doesn't even guarantee the refugee citizenship.")
  140. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin018.mp3", 2405207983, 1515901840)
  141. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  142. Dialog.AddOption("Citizenship?", "Dialog10")
  143. Dialog.AddOption("Thanks, I need to go now.")
  144. Dialog.Start()
  145. end
  146. function Dialog10(NPC, Spawn)
  147. FaceTarget(NPC, Spawn)
  148. Dialog.New(NPC, Spawn)
  149. Dialog.AddDialog("Each city handles it differently. You'll have to ask around once you get there. I'm sure that you will be able to figure it out.")
  150. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin020.mp3", 335556939, 2791399074)
  151. Dialog.AddOption("Well, I'll take your word on it.", "Dialog4")
  152. Dialog.Start()
  153. end
  154. function Dialog11(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. Dialog.New(NPC, Spawn)
  157. Dialog.AddDialog("I've told you already, this is my island.")
  158. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin009.mp3", 4082008395, 3368984616)
  159. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  160. Dialog.AddOption("Ah, yes. You did.", "Dialog20")
  161. Dialog.Start()
  162. end
  163. function Dialog12(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. Dialog.New(NPC, Spawn)
  166. Dialog.AddDialog("You're the one from Varlos' ship, aren't you? I've heard good things about you.")
  167. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin001.mp3", 2623589670, 776244048)
  168. Dialog.AddOption("Yes, I was on the Far Journey.", "Dialog2")
  169. Dialog.Start()
  170. end
  171. function Dialog13(NPC, Spawn)
  172. FaceTarget(NPC, Spawn)
  173. Dialog.New(NPC, Spawn)
  174. Dialog.AddDialog("The Pact of Tserrin states that any vessel bearing skilled refugees could freely dock in either of the two great cities. We then get paid for each skilled person delivered to the custody of that city.")
  175. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin012.mp3", 3910089570, 727267809)
  176. Dialog.AddOption("So you're a slave trader?", "Dialog17")
  177. Dialog.Start()
  178. end
  179. function Dialog14(NPC, Spawn)
  180. FaceTarget(NPC, Spawn)
  181. Dialog.New(NPC, Spawn)
  182. Dialog.AddDialog("Some believe it's because of the recent goblin uprising on the island, but the truth is those accursed drakota destroyed our lost ships. The drakota have been patrolling islands of the Shattered Lands for some time now, but recently, their influence has spread to my normal trade routes.")
  183. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin004.mp3", 188044389, 1994449944)
  184. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  185. Dialog.AddOption("Why do they patrol these areas?", "Dialog19")
  186. Dialog.Start()
  187. end
  188. function Dialog15(NPC, Spawn)
  189. FaceTarget(NPC, Spawn)
  190. Dialog.New(NPC, Spawn)
  191. Dialog.AddDialog("Well, some people say that they are mercenaries commanded by the ancient dragons... While others believe that they are just murderous beasts, slaughtering anyone that they see.")
  192. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin006.mp3", 3074909983, 1367284073)
  193. Dialog.AddOption("Do you think that's true?", "Dialog8")
  194. Dialog.Start()
  195. end
  196. function Dialog16(NPC, Spawn)
  197. FaceTarget(NPC, Spawn)
  198. Dialog.New(NPC, Spawn)
  199. Dialog.AddDialog("Thankfully, no. This island has remained safe from Drakota attacks. Now all we must worry about are those darned goblins. The size and intensity of their raids is increasing daily.")
  200. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin008.mp3", 1848258145, 1938603949)
  201. Dialog.AddOption("What is this place, anyway?", "Dialog11")
  202. Dialog.Start()
  203. end
  204. function Dialog17(NPC, Spawn)
  205. FaceTarget(NPC, Spawn)
  206. Dialog.New(NPC, Spawn)
  207. Dialog.AddDialog("Not at all! We help those in need by preparing them for life in the great cities.")
  208. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin013.mp3", 4090743588, 3726962133)
  209. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  210. Dialog.AddOption("Interesting.", "Dialog7")
  211. Dialog.Start()
  212. end
  213. function Dialog18(NPC, Spawn)
  214. FaceTarget(NPC, Spawn)
  215. Dialog.New(NPC, Spawn)
  216. Dialog.AddDialog("I'm Jaestin Ferrin, and this is my island. I own every ship that sails in or out of this port, although lately that number has been getting smaller.")
  217. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin003.mp3", 3531893316, 2629206875)
  218. Dialog.AddOption("Why are the numbers getting smaller?", "Dialog14")
  219. Dialog.AddOption("I need to go now.")
  220. Dialog.Start()
  221. end
  222. function Dialog19(NPC, Spawn)
  223. FaceTarget(NPC, Spawn)
  224. Dialog.New(NPC, Spawn)
  225. Dialog.AddDialog("Well, at one time we believed they were protecting their territory, but now it appears they are desperately searching for something.")
  226. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin005.mp3", 3557517229, 3300941767)
  227. Dialog.AddOption("What are the Drakota?", "Dialog15")
  228. Dialog.AddOption("Thanks, I will be going now.")
  229. Dialog.Start()
  230. end
  231. function Dialog20(NPC, Spawn)
  232. FaceTarget(NPC, Spawn)
  233. Dialog.New(NPC, Spawn)
  234. Dialog.AddDialog("My organization, the Far Seas Trading Company, uses this island as their base of operations. We train all the refugees that we come across and then deliver them to the cities.")
  235. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin010.mp3", 380598550, 2340237721)
  236. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  237. Dialog.AddOption("How did you start?", "Dialog21")
  238. Dialog.Start()
  239. end
  240. function Dialog21(NPC, Spawn)
  241. FaceTarget(NPC, Spawn)
  242. Dialog.New(NPC, Spawn)
  243. Dialog.AddDialog("We used to just run supplies from island to island, but when Qeynos and Freeport made the Pact of Tserrin, we started running refugees too.")
  244. Dialog.AddVoiceover("voiceover/english/duke_ferrin/tutorial_island02/dukeferrin011.mp3", 2327150283, 3235459245)
  245. Dialog.AddOption("What is the Pact of Tserrin?", "Dialog13")
  246. Dialog.Start()
  247. end