9
3

DaisyWinterhope.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. --[[
  2. Script Name : SpawnScripts/Nektulos/DaisyWinterhope.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.03.23 09:03:29
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local MaidForTheMistPartI = 5793
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, MaidForTheMistPartI)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, MaidForTheMistPartI) and not HasCompletedQuest(Spawn, MaidForTheMistPartI) then
  16. Option0(NPC, Spawn)
  17. elseif GetQuestStep(Spawn, MaidForTheMistPartI) == 1 or GetQuestStep(Spawn, MaidForTheMistPartI) == 2 then
  18. Progress(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, MaidForTheMistPartI) == 3 or GetQuestStep(Spawn, MaidForTheMistPartI) == 4 then
  20. Progress3(NPC, Spawn)
  21. elseif HasCompletedQuest(Spawn, MaidForTheMistPartI) then
  22. PlayFlavor(NPC, "voiceover/english/daisy_winterhope/nektulos/quest/sea_of_mist/daisy_winterhope_iscompletedquest1_713506fb.mp3", "The Maid for the Mist is quite a ship, isn't she?", "", 3723150789, 3507860620, Spawn)
  23. end
  24. end
  25. function Option0(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog000.mp3", 4292848348, 1971351352)
  28. Dialog.AddOption("That depends; what makes it worthwhile?", "Option1")
  29. Dialog.AddOption("Just passing through.")
  30. Dialog.AddDialog("Are you looking for something worthwhile to do? Or are you just passing by and being polite?")
  31. Dialog.Start()
  32. end
  33. function Option1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog001.mp3" , 1343801945, 1370855896)
  37. Dialog.AddOption("Not in any detail. What is it?", "Option2")
  38. Dialog.AddOption("I've heard more than enough, thanks, but no thanks.")
  39. Dialog.AddDialog("You see my vessel off shore there, the \"Maid for the Mist?\" I'm making her ship-shape for another perilous journey. This time, to the Sea of Mist. Ever heard tell of the Sea of Mist? Hmmm?")
  40. Dialog.Start()
  41. end
  42. function Option2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog002.mp3" , 4072677891, 2389434454)
  46. Dialog.AddOption("(continue)", "Option3")
  47. Dialog.AddOption("I don't have time for stories at the moment.")
  48. Dialog.AddDialog("A long time ago, afore the world was all tore up in the Shattering, Halflings like me lived in a beautiful place called the Misty Thicket. A real nice spot it was. Then everything changed.")
  49. Dialog.Start()
  50. end
  51. function Option3(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog003.mp3", 4284841395, 232118033)
  55. Dialog.AddOption("There's a lot of fog?", "Option4")
  56. Dialog.AddOption("I don't have time for this.")
  57. Dialog.AddDialog("Now there ain't as many Halflings as once was, and the Thicket came to be an island: the Enchanted Lands. All around the Enchanted Lands is the Sea of Mist. You can kind of guess how it got its name.")
  58. Dialog.Start()
  59. end
  60. function Option4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog004.mp3", 1475216550, 442077487)
  64. Dialog.AddOption("Your ship will go through the Sea of Mist?", "Option5")
  65. Dialog.AddOption("Good luck to you.")
  66. Dialog.AddDialog("Yep, fog and mist that's so thick, you could cut it with a blade. That's not the only reason it's dangerous, though. But I gotta know what's on the other side. I gotta get my ship ready to go.")
  67. Dialog.Start()
  68. end
  69. function Option5(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog005.mp3", 3310931020, 634373134)
  73. Dialog.AddOption("Sure, count me in.", "offer")
  74. Dialog.AddOption("Sounds a bit risky. Perhaps later.")
  75. Dialog.AddDialog("All I need's a few more things and my shipwright can finish the job. Whaddya say, can you help me get a few odds and ends? If you help me out, I'll make sure you can get there and back on any of my ships.")
  76. Dialog.Start()
  77. end
  78. function Option6(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog009.mp3", 1416362062, 802909289)
  82. Dialog.AddOption("What do you need now?", "Option7")
  83. Dialog.AddOption("Perhaps later.")
  84. Dialog.AddDialog("Let me see! Let me see! Ahhhh ... Perfect! You done a great job! Now, maybe you could do just one more thing for me?")
  85. Dialog.Start()
  86. end
  87. function Option7(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. Dialog.New(NPC, Spawn)
  90. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog010.mp3", 3773144692, 2188381399)
  91. Dialog.AddOption("Leaks!?", "Option8")
  92. Dialog.AddOption("I've no desire to end up at the bottom of the sea.")
  93. Dialog.AddDialog("This one's pretty easy. I'm sealing up a few leaks...")
  94. Dialog.Start()
  95. end
  96. function Option8(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. Dialog.New(NPC, Spawn)
  99. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog011.mp3", 3544729025, 2906249482)
  100. Dialog.AddOption("How fortunate. How many will you need?", "Option9")
  101. Dialog.AddOption("I haven't got time for this right now.")
  102. Dialog.AddDialog("Now, now, they're minor leaks. What works real well is to tighten up some of the connections with reinforcements of bear sinew. And the best bear sinews happen to be right here in Nektulos. How lucky is that?")
  103. Dialog.Start()
  104. end
  105. function Option9(NPC, Spawn)
  106. SetStepComplete(Spawn, MaidForTheMistPartI, 2)
  107. FaceTarget(NPC, Spawn)
  108. Dialog.New(NPC, Spawn)
  109. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog012.mp3", 3115159860, 1253570402)
  110. Dialog.AddOption("Ready and willing. I will return with thirteen ash owlbear sinews.")
  111. Dialog.AddOption("I will have to do this some other time.")
  112. Dialog.AddDialog("Only thirteen ash owlbear sinews from Nektulos Forest will do! Are you ready for a good hunt?")
  113. Dialog.Start()
  114. end
  115. function Option10(NPC, Spawn)
  116. SetStepComplete(Spawn, MaidForTheMistPartI, 4)
  117. FaceTarget(NPC, Spawn)
  118. Dialog.New(NPC, Spawn)
  119. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog014.mp3", 3402799783, 3066435780)
  120. Dialog.AddOption("Glad to be of assistance.")
  121. Dialog.AddDialog("Terrific! The 'Maid for the Mist' will be ready to sail very soon! I haven't forgotten my promise! You ride for free, friend! Just talk to Captain Corrigan when you're ready to go!")
  122. Dialog.Start()
  123. end
  124. function offer(NPC, Spawn)
  125. OfferQuest(NPC, Spawn, MaidForTheMistPartI)
  126. end
  127. function Progress(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog007.mp3", 1674078797, 2006281337)
  130. if GetQuestStep(Spawn, MaidForTheMistPartI) == 2 then
  131. Dialog.AddOption("Here are 25 of them, as promised.", "Option6")
  132. end
  133. Dialog.AddOption("I haven't gotten them all yet.", "Progress2")
  134. Dialog.AddDialog("I've gotten most of my other materials; how's it coming with them ironshell carapaces?")
  135. Dialog.Start()
  136. end
  137. function Progress2(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. Dialog.New(NPC, Spawn)
  140. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog008.mp3", 3949737600, 247544336)
  141. Dialog.AddOption("I'll be back.")
  142. Dialog.AddDialog("Oh, All right, but hurry back. We need to get this ship in shape for the journey!")
  143. Dialog.Start()
  144. end
  145. function Progress3(NPC, Spawn)
  146. Dialog.New(NPC, Spawn)
  147. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog013.mp3", 1791255202, 617071081)
  148. if GetQuestStep(Spawn, MaidForTheMistPartI) == 4 then
  149. Dialog.AddOption("The hunt is over. Here are thirteen ash owlbear sinews.", "Option10")
  150. end
  151. Dialog.AddOption("Still hunting.", "Progress2")
  152. Dialog.AddDialog("How's the hunt for the ash owlbears?")
  153. Dialog.Start()
  154. end
  155. function respawn(NPC)
  156. spawn(NPC)
  157. end