9
3

MaelaMeadows.lua 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/MaelaMeadows.lua
  3. Script Purpose : Maela Meadows
  4. Script Author : John Adams
  5. Script Date : 2009.01.24
  6. Script Notes : Updated Dialog Module - 2022.08.22 Dorbin
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. -- Quest ID's
  10. local HELPING_A_FRIEND = 323 -- was 70
  11. local HELPING_A_FRIEND_AGAIN = 324 -- was 71
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if HasQuest(Spawn, HELPING_A_FRIEND) and GetQuestStep(Spawn, HELPING_A_FRIEND) == 1 then
  20. WaterfallCalming(NPC, Spawn)
  21. elseif HasQuest(Spawn, HELPING_A_FRIEND_AGAIN) and GetQuestStep(Spawn, HELPING_A_FRIEND_AGAIN) == 2 then
  22. HelloAgain(NPC, Spawn)
  23. else
  24. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/qst_maela_meadows_notonquest_16832d73.mp3", "I simply love this view.", "", 3857807927, 2547090735, Spawn)
  25. end
  26. end
  27. ------------------------------------------------------------------------------------
  28. -- QUEST 1
  29. ------------------------------------------------------------------------------------
  30. function WaterfallCalming(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("The waterfall can be so calming. Don't you think?")
  34. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows001.mp3", 4171093653, 2401383654)
  35. Dialog.AddOption("Sometimes we all need to be calmed.", "dlg_14_1")
  36. Dialog.AddOption("Perhaps I will view it later.")
  37. Dialog.Start()
  38. end
  39. function dlg_14_1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("You read my thoughts! Why have you come to calm yourself, friend?")
  43. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows002.mp3", 1134137897, 143123492)
  44. Dialog.AddOption("Oh, no reason. Life can get to us all. What about yourself?", "dlg_6_1")
  45. Dialog.Start()
  46. end
  47. function dlg_6_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("No reason for me either.")
  51. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows003.mp3", 3490828923, 1776770993)
  52. Dialog.AddOption("Are you certain?", "IAmCertain")
  53. Dialog.Start()
  54. end
  55. function IAmCertain(NPC, Spawn)
  56. SetStepComplete(Spawn, HELPING_A_FRIEND, 1)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("I am certain, but thanks.")
  60. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows004.mp3", 3235111440, 2628885681)
  61. Dialog.AddOption("Good day.")
  62. Dialog.Start()
  63. end
  64. ------------------------------------------------------------------------------
  65. -- QUEST 2
  66. ------------------------------------------------------------------------------
  67. function HelloAgain(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("Hello again. Come to watch the calming waters?")
  71. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows005.mp3", 4157154757, 3627456698)
  72. Dialog.AddOption("Yes. I also brought these for you.", "dlg_10_1")
  73. Dialog.AddOption("Not right now.")
  74. Dialog.Start()
  75. end
  76. function dlg_10_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. Dialog.New(NPC, Spawn)
  79. Dialog.AddDialog("Oh... Shadebloom. Hmm, thank you, I suppose.")
  80. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows006.mp3", 89578648, 3127754238)
  81. Dialog.AddOption("You suppose?", "dlg_10_2")
  82. Dialog.AddOption("Don't you like them?", "dlg_10_2")
  83. Dialog.AddOption("Don't you think they're pretty?", "dlg_10_2")
  84. Dialog.Start()
  85. end
  86. function dlg_10_2(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. Dialog.New(NPC, Spawn)
  89. Dialog.AddDialog("I'm sorry. Please don't take offense, I just don't understand why you picked these flowers for me.")
  90. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows007.mp3", 3571289059, 2379238420)
  91. Dialog.AddOption("I just thought you could use them.", "dlg_12_3")
  92. Dialog.AddOption("Rondo was hoping they would open you up some.", "dlg_13_3")
  93. Dialog.Start()
  94. end
  95. function dlg_12_3(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. Dialog.New(NPC, Spawn)
  98. Dialog.AddDialog("Well... these flowers are special to me. I'm sure there is no way you could've known.")
  99. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows008.mp3", 3621726001, 463966533)
  100. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  101. Dialog.AddOption("What significance do the flowers have?", "dlg_13_4")
  102. Dialog.Start()
  103. end
  104. function dlg_13_3(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. Dialog.New(NPC, Spawn)
  107. Dialog.AddDialog("That little ruffian! He always knows how to get to me. He must know these flowers mean something to me.")
  108. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows009.mp3", 1834924938, 3448661763)
  109. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  110. Dialog.AddOption("What significance do the flowers have?", "dlg_13_4")
  111. Dialog.Start()
  112. end
  113. function dlg_13_4(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. Dialog.New(NPC, Spawn)
  116. Dialog.AddDialog("Well, I suppose it won't hurt to tell you. These are the flowers my husband used to give me.")
  117. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows010.mp3", 1115627334, 19199546)
  118. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  119. Dialog.AddOption("Oh, I'm terribly sorry. I didn't realize.", "dlg_14_5")
  120. Dialog.Start()
  121. end
  122. function dlg_14_5(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. Dialog.New(NPC, Spawn)
  125. Dialog.AddDialog("Oh, don't get too upset. He's not gone, not forever at least. He's just off in the Enchanted Lands.")
  126. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows011.mp3", 2910641607, 257093534)
  127. Dialog.AddOption("What is he doing there?", "dlg_14_6")
  128. Dialog.Start()
  129. end
  130. function dlg_14_6(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. Dialog.New(NPC, Spawn)
  133. Dialog.AddDialog("He's responding to the call that all halflings get. He has returned to what was once our homeland. After we lost Rivervale many of us never thought we would ever get it back. Now, and to my husband especially, reclaiming it seems possible. He couldn't wait that long, however, and has decided he needed to visit.")
  134. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows011a.mp3", 2125755974, 213215636)
  135. Dialog.AddOption("How long has he been gone?", "dlg_14_7")
  136. Dialog.Start()
  137. end
  138. function dlg_14_7(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. Dialog.New(NPC, Spawn)
  141. Dialog.AddDialog("Only a couple of weeks. That's why it's so upsetting that I miss him so much. He isn't scheduled back for three months. I don't know if I'll be able to handle it.")
  142. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows012.mp3", 3231833073, 1031763109)
  143. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  144. Dialog.AddOption("You have friends you can talk to, right?", "dlg_14_8")
  145. Dialog.Start()
  146. end
  147. function dlg_14_8(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. Dialog.New(NPC, Spawn)
  150. Dialog.AddDialog("Yes, but I hate to complain. I don't like to burden other people with my problems, it makes me feel like I'm not being a good friend.")
  151. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows013.mp3", 9272878, 2191624347)
  152. Dialog.AddOption("Do you think any less of the many people who come to you for advice?", "dlg_14_9")
  153. Dialog.Start()
  154. end
  155. function dlg_14_9(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. Dialog.New(NPC, Spawn)
  158. Dialog.AddDialog("No, I do not.")
  159. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows014.mp3", 2061524224, 2107406265)
  160. Dialog.AddOption("I'm sure your friends would be very happy to keep you company and lend you support. From what I hear you're a very good listener yourself, I'm sure your friends would jump at the chance to return the favor.", "dlg_14_10")
  161. Dialog.Start()
  162. end
  163. function dlg_14_10(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. Dialog.New(NPC, Spawn)
  166. Dialog.AddDialog("Oh, you're probably right. I don't suppose I'm doing myself any good trying to bottle up these feelings, either.")
  167. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows015.mp3", 3752197711, 2604822585)
  168. Dialog.AddOption("Probably not.", "dlg_14_11")
  169. Dialog.Start()
  170. end
  171. function dlg_14_11(NPC, Spawn)
  172. SetStepComplete(Spawn, HELPING_A_FRIEND_AGAIN, 2)
  173. FaceTarget(NPC, Spawn)
  174. Dialog.New(NPC, Spawn)
  175. Dialog.AddDialog("Thank you so much for your help.")
  176. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows016.mp3", 1285927202, 381670493)
  177. Dialog.AddOption("You're quite welcome.")
  178. Dialog.Start()
  179. end