9
3

CaptainVarlos.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/CaptainVarlos.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.27
  5. Script Purpose : Captail Varlos dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_027.mp3", "", "", 2285948102, 2994720481, Spawn)
  17. AddConversationOption(conversation, "Yes. Take me to Qeynos.", "AreYouSure")
  18. AddConversationOption(conversation, "Who are you?", "WhoAreYou")
  19. AddConversationOption(conversation, "No, I'd like to explore more.")
  20. StartConversation(conversation, NPC, Spawn, "So, ya' ready ta go ashore matey?")
  21. end
  22. function WhoAreYou(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_003.mp3", "", "", 2565389482, 560555759, Spawn)
  25. AddConversationOption(conversation, "I think I'm ready to leave now.", "AreYouSure")
  26. AddConversationOption(conversation, "I'd like to explore more. Goodbye.")
  27. 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.")
  28. end
  29. function AreYouSure(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/captain_varlos/tutorial_island02_fvo_hail3.mp3", "", "", 1155995604, 1406357895, Spawn)
  32. AddConversationOption(conversation, "I'm ready for the challenges ahead. Take me to Qeynos.", "AreYouSure2")
  33. AddConversationOption(conversation, "On second thought, maybe I should wait a bit.")
  34. StartConversation(conversation, NPC, Spawn, "Ya' best be sure ta' explore the whole island, ya' hear! Norrath can be a dangerous place ya' know?")
  35. end
  36. function AreYouSure2(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_013.mp3", "", "", 3880459741, 170861362, Spawn)
  39. AddConversationOption(conversation, "Thanks for the ride!", "AreYouSure3")
  40. AddConversationOption(conversation, "Wait! I've changed my mind. Let me off.")
  41. StartConversation(conversation, NPC, Spawn, "Yar! That's what we be needin'. Ok then, off to Qeynos!")
  42. end
  43. function AreYouSure3(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_028.mp3", "", "", 1009737776, 2173458794, Spawn)
  46. AddConversationOption(conversation, "To Qeynos!", "LeaveIsland")
  47. AddConversationOption(conversation, "Oh, nevermind! I'll stay!")
  48. StartConversation(conversation, NPC, Spawn, "Don't ya' mind, we get paid ta' do that.")
  49. end
  50. function LeaveIsland(NPC, Spawn)
  51. Race = GetRace(Spawn)
  52. -- Human / Kerra
  53. if Race == 9 or Race == 11 then
  54. ZoneRef = GetZone("Nettleville")
  55. Zone(ZoneRef,Spawn)
  56. -- Erudite
  57. elseif Race == 3 then
  58. ZoneRef = GetZone("Starcrest")
  59. Zone(ZoneRef,Spawn)
  60. -- Barbarian / Dwarf
  61. elseif Race == 0 or Race == 2 then
  62. ZoneRef = GetZone("Graystone")
  63. Zone(ZoneRef,Spawn)
  64. -- High Elf / Froglok
  65. elseif Race == 4 or Race == 8 then
  66. ZoneRef = GetZone("Castleview")
  67. Zone(ZoneRef,Spawn)
  68. -- Half Elf / Wood Elf
  69. elseif Race == 6 or Race == 15 then
  70. ZoneRef = GetZone("Willowwood")
  71. Zone(ZoneRef,Spawn)
  72. -- Gnome / Halfling
  73. elseif Race == 5 or Race == 7 then
  74. ZoneRef = GetZone("Baubbleshire")
  75. Zone(ZoneRef,Spawn)
  76. -- Fae
  77. elseif Race == 17 then
  78. ZoneRef = GetZone("Kelethin")
  79. Zone(ZoneRef,Spawn)
  80. -- Unknown
  81. else
  82. Say(Spawn, "Sorry, I cannot deal with someone of your race. Try visiting the boat on the other island!")
  83. ZoneRef = GetZone("OutpostOverlord")
  84. Zone(ZoneRef,Spawn)
  85. end
  86. end