9
3

CaptainVarlos.lua 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/CaptainVarlos.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.27
  5. Script Purpose : Captain Varlos dialog
  6. Modified Date : 2020.04.03
  7. Modified by : premierio015
  8. Notes : Added Animations & Gives a Spell "Call to Home"
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. InitialDialogue(NPC, Spawn)
  18. --[[
  19. conversation = CreateConversation()
  20. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_027.mp3", "", "hello", 2285948102, 2994720481, Spawn)
  21. AddConversationOption(conversation, "Yes. Take me to Qeynos.", "AreYouSure")
  22. AddConversationOption(conversation, "Yes. Take me to the Frostfang Sea.", "AreYouSureFrostfang")
  23. AddConversationOption(conversation, "Yes. Take me to Kelethin. (GM: Not implemented yet)", "AreYouSureKelethin")
  24. AddConversationOption(conversation, "Who are you?", "WhoAreYou")
  25. AddConversationOption(conversation, "No, I'd like to explore more.")
  26. StartConversation(conversation, NPC, Spawn, "So, ya' ready ta go ashore matey? I can take ye all the way to Qeynos or just as far as the Frostfang Sea.")
  27. --]]
  28. end
  29. function InitialDialogue(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_027.mp3", "", "hello", 2285948102, 2994720481, Spawn)
  32. AddConversationOption(conversation, "Yes. Take me to Qeynos.", "AreYouSure")
  33. AddConversationOption(conversation, "Yes. Take me to the Frostfang Sea.", "AreYouSureFrostfang")
  34. AddConversationOption(conversation, "Yes. Take me to Kelethin.", "AreYouSureKelethin")
  35. AddConversationOption(conversation, "Who are you?", "WhoAreYou")
  36. AddConversationOption(conversation, "No, I'd like to explore more.")
  37. StartConversation(conversation, NPC, Spawn, "So, ya' ready ta go ashore matey? I can take ye all the way to Qeynos or just as far as the Frostfang Sea.")
  38. end
  39. function WhoAreYou(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_003.mp3", "", "bow", 2565389482, 560555759, Spawn)
  42. AddConversationOption(conversation, "I think I'm ready to leave now.", "InitialDialogue")
  43. AddConversationOption(conversation, "I'd like to explore more. Goodbye.")
  44. StartConversation(conversation, NPC, Spawn, "I am Captain Draik Varlos, and this 'ere fine ship is the Far Journey. I can give ya' a ride to Qeynos when yer ready to leave the island.")
  45. end
  46. function AreYouSure(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/captain_varlos/tutorial_island02_fvo_hail3.mp3", "", "ponder", 1155995604, 1406357895, Spawn)
  49. AddConversationOption(conversation, "I'm ready for the challenges ahead. Take me to Qeynos.", "AreYouSure2")
  50. AddConversationOption(conversation, "On second thought, maybe I should wait a bit.")
  51. StartConversation(conversation, NPC, Spawn, "Ya' best be sure ta' explore the whole island, ya' hear! Norrath can be a dangerous place ya' know?")
  52. end
  53. function AreYouSure2(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_013.mp3", "", "smile", 3880459741, 170861362, Spawn)
  56. AddConversationOption(conversation, "Thanks for the ride!", "AreYouSure3")
  57. AddConversationOption(conversation, "Wait! I've changed my mind. Let me off.")
  58. StartConversation(conversation, NPC, Spawn, "Yar! That's what we be needin'. Ok then, off to Qeynos!")
  59. end
  60. function AreYouSure3(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_028.mp3", "", "", 1009737776, 2173458794, Spawn)
  63. AddConversationOption(conversation, "To Qeynos!", "LeaveIsland")
  64. -- AddConversationOption(conversation, "Oh, nevermind! I'll stay!")
  65. StartConversation(conversation, NPC, Spawn, "Don't ya' mind, we get paid ta' do that.")
  66. end
  67. function AreYouSureFrostfang(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/captain_varlos/tutorial_island02_fvo_hail3.mp3", "", "ponder", 1155995604, 1406357895, Spawn)
  70. AddConversationOption(conversation, "I'm ready for the challenges ahead. Take me to Frostfang Sea.", "AreYouSureFrostfang2")
  71. AddConversationOption(conversation, "On second thought, maybe I should wait a bit.")
  72. StartConversation(conversation, NPC, Spawn, "Ya' best be sure ta' explore the whole island, ya' hear! Norrath can be a dangerous place ya' know?")
  73. end
  74. function AreYouSureFrostfang2(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_013.mp3", "", "smile", 3880459741, 170861362, Spawn)
  77. AddConversationOption(conversation, "Thanks for the ride!", "AreYouSureFrostfang3")
  78. AddConversationOption(conversation, "Wait! I've changed my mind. Let me off.")
  79. StartConversation(conversation, NPC, Spawn, "Yar! That's what we be needin'. Ok then, off to Frostfang Sea!")
  80. end
  81. function AreYouSureFrostfang3(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_028.mp3", "", "", 1009737776, 2173458794, Spawn)
  84. AddConversationOption(conversation, "To Frostfang Sea!", "LeaveIslandFrostfang")
  85. -- AddConversationOption(conversation, "Oh, nevermind! I'll stay!")
  86. StartConversation(conversation, NPC, Spawn, "Don't ya' mind, we get paid ta' do that.")
  87. end
  88. function AreYouSureKelethin(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "voiceover/english/captain_varlos/tutorial_island02_fvo_hail3.mp3", "", "ponder", 1155995604, 1406357895, Spawn)
  91. AddConversationOption(conversation, "I'm ready for the challenges ahead. Take me to Kelethin.", "AreYouSureKelethin2")
  92. AddConversationOption(conversation, "On second thought, maybe I should wait a bit.")
  93. StartConversation(conversation, NPC, Spawn, "Ya' best be sure ta' explore the whole island, ya' hear! Norrath can be a dangerous place ya' know?")
  94. end
  95. function AreYouSureKelethin2(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_013.mp3", "", "smile", 3880459741, 170861362, Spawn)
  98. AddConversationOption(conversation, "Thanks for the ride!", "AreYouSureKelethin3")
  99. AddConversationOption(conversation, "Wait! I've changed my mind. Let me off.")
  100. StartConversation(conversation, NPC, Spawn, "Yar! That's what we be needin'. Ok then, off to Kelethin!")
  101. end
  102. function AreYouSureKelethin3(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_028.mp3", "", "", 1009737776, 2173458794, Spawn)
  105. AddConversationOption(conversation, "To Kelethin!", "LeaveIslandKelethin")
  106. -- AddConversationOption(conversation, "Oh, nevermind! I'll stay!")
  107. StartConversation(conversation, NPC, Spawn, "Don't ya' mind, we get paid ta' do that.")
  108. end
  109. function LeaveIsland(NPC, Spawn)
  110. Race = GetRace(Spawn)
  111. -- Human / Kerra
  112. if Race == 9 or Race == 11 then
  113. AddSpellBookEntry(Spawn, 8057, 1)
  114. ZoneRef = GetZone("Nettleville")
  115. Zone(ZoneRef,Spawn)
  116. -- Erudite
  117. elseif Race == 3 then
  118. AddSpellBookEntry(Spawn, 8057, 1)
  119. ZoneRef = GetZone("Starcrest")
  120. Zone(ZoneRef,Spawn)
  121. -- Barbarian / Dwarf
  122. elseif Race == 0 or Race == 2 then
  123. AddSpellBookEntry(Spawn, 8057, 1)
  124. ZoneRef = GetZone("Graystone")
  125. Zone(ZoneRef,Spawn)
  126. -- High Elf / Froglok
  127. elseif Race == 4 or Race == 8 then
  128. AddSpellBookEntry(Spawn, 8057, 1)
  129. ZoneRef = GetZone("Castleview")
  130. Zone(ZoneRef,Spawn)
  131. -- Half Elf / Wood Elf
  132. elseif Race == 6 or Race == 15 then
  133. AddSpellBookEntry(Spawn, 8057, 1)
  134. ZoneRef = GetZone("Willowwood")
  135. Zone(ZoneRef,Spawn)
  136. -- Gnome / Halfling
  137. elseif Race == 5 or Race == 7 then
  138. AddSpellBookEntry(Spawn, 8057, 1)
  139. ZoneRef = GetZone("Baubbleshire")
  140. Zone(ZoneRef,Spawn)
  141. --[[
  142. -- Fae
  143. elseif Race == 17 then
  144. AddSpellBookEntry(Spawn, 8057, 1)
  145. ZoneRef = GetZone("Kelethin")
  146. Zone(ZoneRef,Spawn)
  147. --]]
  148. -- Unknown
  149. else
  150. PlayFlavor(NPC, "", "Sorry, I cannot deal with someone of your race. Try visiting the boat on the other island!", "", 0, 0, Spawn)
  151. ZoneRef = GetZone("OutpostOverlord")
  152. Zone(ZoneRef,Spawn)
  153. end
  154. end
  155. function LeaveIslandFrostfang(NPC, Spawn)
  156. AddSpellBookEntry(Spawn, 8057, 1)
  157. ZoneRef = GetZone("FrostfangSea")
  158. Zone(ZoneRef,Spawn)
  159. end
  160. function LeaveIslandKelethin(NPC, Spawn)
  161. AddSpellBookEntry(Spawn, 8057, 1)
  162. ZoneRef = GetZone("GreaterFaydark")
  163. Zone(ZoneRef,Spawn)
  164. end