CaptainVarlos.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/CaptainVarlos.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.09.28 03:09:56
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. Dialog.New(NPC, Spawn)
  14. Dialog.AddDialog("Ahoy! 'Tis good to see you awake. Ya seem a little squiffy, least ya' cheated death!")
  15. Dialog.AddVoiceover("voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_001.mp3", 1930075150, 2666442405)
  16. Dialog.AddEmote("salute")
  17. Dialog.AddOption("Where am I?", "dlg_1")
  18. Dialog.Start()
  19. end
  20. function dlg_1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("Me apologies.")
  24. Dialog.AddVoiceover("voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_002.mp3", 2054400186, 1976167819)
  25. Dialog.AddEmote("bow")
  26. Dialog.AddOption("Who are you?", "dlg_2")
  27. Dialog.Start()
  28. end
  29. function dlg_2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("I am Captain Draik Varlos, and this 'ere fine ship is the Far Journey.")
  33. Dialog.AddVoiceover("voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_003.mp3", 2565389482, 560555759)
  34. Dialog.AddOption("How did I get here?", "dlg_3")
  35. Dialog.Start()
  36. end
  37. function dlg_3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Me hearties pulled ya' from the sea, you an those other bilge rats. Do ya' remember?")
  41. Dialog.AddVoiceover("voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_004.mp3", 29296168, 2709023783)
  42. Dialog.AddOption("Vaguely. Where are we headed?", "dlg_4")
  43. Dialog.Start()
  44. end
  45. function dlg_4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_005.mp3", "We are heading to the Island of Refuge.", "", 1602680439, 2810422278, Spawn)
  48. AddTimer(NPC, 3000, "ShakeCamera_1", 1, Spawn)
  49. end
  50. function ShakeCamera_1(NPC, Spawn)
  51. PerformCameraShake(Spawn, 52429, 15948)
  52. AddTimer(NPC, 400, "ShakeCamera_2", 1, Spawn)
  53. end
  54. function ShakeCamera_2(NPC, Spawn)
  55. PerformCameraShake(Spawn, 52429, 15948)
  56. AddTimer(NPC, 400, "ShakeCamera_3", 1, Spawn)
  57. end
  58. function ShakeCamera_3(NPC, Spawn)
  59. PerformCameraShake(Spawn, 52429, 15948)
  60. AddTimer(NPC, 800, "CallIngrid", 1, Spawn)
  61. end
  62. function CallIngrid(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_006.mp3", "Ingird! Quit gawking at the shorty and fix that yard-arm!", "", 2753489262, 3183736171, Spawn)
  65. local Geredo = GetSpawn(NPC, 270004)
  66. local Ingrid = GetSpawn(NPC, 270001)
  67. SetTempVariable(Ingrid, "TempAnimationVar", nil)
  68. FaceTarget(NPC, Ingrid)
  69. AddTimer(Ingrid, 500, "CaptainCallingIngrid", 1, Spawn)
  70. AddTimer(Geredo, 500, "CaptainCallingIngrid", 1, Spawn)
  71. end
  72. function TalkToCaptainVarlos(NPC, Spawn)
  73. local Ingrid = GetSpawn(NPC, 270001)
  74. FaceTarget(NPC, Ingrid)
  75. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_007.mp3", "Don't want the ship to come apart in these high winds, do ya'?!", "scold", 517097409, 4194681002, Spawn)
  76. AddTimer(Ingrid, 4000, "SaluteCaptainVarlos", 1, Spawn)
  77. end
  78. function IngridLeaveCaptain(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. PlayFlavor(NPC, "voiceover/english/captain_varlos/boat_06p_tutorial02_fvo_008.mp3", "Ya think she'd never seen a gnome afore.", "", 2447879193, 4289147535, Spawn)
  81. --AddTimer(NPC, 3000, "ShakeCamera_1", 1, Spawn)
  82. --AddTimer(NPC, 4000, "TheQuestOffer")
  83. end
  84. function TheQuestOffer(NPC,Spawn)
  85. end
  86. function callDrake(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. local drake = GetSpawn(NPC, 270013)
  89. if drake ~= nil then
  90. AddTimer(drake, 5000, "startanimation")
  91. Say(NPC, "Drake should be flying")
  92. AddTimer(drake, 31000, "stopanimation")
  93. Say(NPC, "Drake should be gone now")
  94. end
  95. end
  96. --[[
  97. function callDrake(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. Say(NPC,"I have made it past FaceTarget")
  100. local drake = GetSpawn(Spawn, 270013)
  101. Say(NPC, "I have set the local drake to the spawn id")
  102. Say(NPC, "Test " .. drake)
  103. SpawnSet(drake, "visual_state", 10783)
  104. end
  105. ]]--
  106. function respawn(NPC)
  107. end