9
3

MaelaMeadows.lua 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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 : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local HELPING_A_FRIEND = 323 -- was 70
  10. local HELPING_A_FRIEND_AGAIN = 324 -- was 71
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if HasQuest(Spawn, HELPING_A_FRIEND) and GetQuestStep(Spawn, HELPING_A_FRIEND) == 1 then
  19. WaterfallCalming(NPC, Spawn)
  20. elseif HasQuest(Spawn, HELPING_A_FRIEND_AGAIN) and GetQuestStep(Spawn, HELPING_A_FRIEND_AGAIN) == 2 then
  21. HelloAgain(NPC, Spawn)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/qst_maela_meadows_notonquest_16832d73.mp3", "I simply love this view.", "", 3857807927, 2547090735, Spawn)
  24. end
  25. end
  26. ------------------------------------------------------------------------------------
  27. -- QUEST 1
  28. ------------------------------------------------------------------------------------
  29. function WaterfallCalming(NPC, Spawn)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "Sometimes we all need to be calmed.", "dlg_14_1")
  32. AddConversationOption(conversation, "Perhaps I will view it later.")
  33. StartConversation(conversation, NPC, Spawn, "The waterfall can be so calming. Don't you think?")
  34. end
  35. function dlg_14_1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows002.mp3", "", "", 1134137897, 143123492, Spawn)
  39. AddConversationOption(conversation, "Oh, no reason. Life can get to us all. What about yourself?", "dlg_6_1")
  40. StartConversation(conversation, NPC, Spawn, "You read my thoughts! Why have you come to calm yourself, friend?")
  41. end
  42. function dlg_6_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows003.mp3", "", "", 3490828923, 1776770993, Spawn)
  46. AddConversationOption(conversation, "Are you certain?", "IAmCertain")
  47. StartConversation(conversation, NPC, Spawn, "No reason for me either.")
  48. end
  49. function IAmCertain(NPC, Spawn)
  50. SetStepComplete(Spawn, HELPING_A_FRIEND, 1)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Good day.")
  54. StartConversation(conversation, NPC, Spawn, "I am certain, but thanks.")
  55. end
  56. ------------------------------------------------------------------------------
  57. -- QUEST 2
  58. ------------------------------------------------------------------------------
  59. function HelloAgain(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows002.mp3", "", "", 1134137897, 143123492, Spawn)
  63. AddConversationOption(conversation, "Yes. I also brought these for you.", "dlg_10_1")
  64. AddConversationOption(conversation, "Not right now.")
  65. StartConversation(conversation, NPC, Spawn, "Hello again. Come to watch the calming waters?")
  66. end
  67. function dlg_10_1(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows006.mp3", "", "", 89578648, 3127754238, Spawn)
  71. AddConversationOption(conversation, "You suppose?", "dlg_10_2")
  72. AddConversationOption(conversation, "Don't you like them?", "dlg_10_2")
  73. AddConversationOption(conversation, "Don't you think they're pretty?", "dlg_10_2")
  74. StartConversation(conversation, NPC, Spawn, "Oh... Shadebloom. Hmm, thank you, I suppose.")
  75. end
  76. function dlg_10_2(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows007.mp3", "", "", 3571289059, 2379238420, Spawn)
  80. AddConversationOption(conversation, "I just thought you could use them.", "dlg_12_3")
  81. AddConversationOption(conversation, "Rondo was hoping they would open you up some.", "dlg_13_3")
  82. StartConversation(conversation, NPC, Spawn, "I'm sorry. Please don't take offense, I just don't understand why you picked these flowers for me.")
  83. end
  84. function dlg_12_3(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows008.mp3", "", "", 3621726001, 463966533, Spawn)
  88. AddConversationOption(conversation, "What significance do the flowers have?", "dlg_13_4")
  89. StartConversation(conversation, NPC, Spawn, "Well... these flowers are special to me. I'm sure there is no way you could've known.")
  90. end
  91. function dlg_13_3(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows009.mp3", "", "", 1834924938, 3448661763, Spawn)
  95. AddConversationOption(conversation, "What significance do the flowers have?", "dlg_13_4")
  96. StartConversation(conversation, NPC, Spawn, "That little ruffian! He always knows how to get to me. He must know these flowers mean something to me.")
  97. end
  98. function dlg_13_4(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows010.mp3", "", "", 1115627334, 19199546, Spawn)
  102. AddConversationOption(conversation, "Oh, I'm terribly sorry. I didn't realize.", "dlg_14_5")
  103. StartConversation(conversation, NPC, Spawn, "Well, I suppose it won't hurt to tell you. These are the flowers my husband used to give me.")
  104. end
  105. function dlg_14_5(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows011.mp3", "", "", 2910641607, 257093534, Spawn)
  109. AddConversationOption(conversation, "What is he doing there?", "dlg_14_6")
  110. StartConversation(conversation, NPC, Spawn, "Oh, don't get too upset. He's not gone, not forever at least. He's just off in the Enchanted Lands.")
  111. end
  112. function dlg_14_6(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. conversation = CreateConversation()
  115. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows011a.mp3", "", "", 2125755974, 213215636, Spawn)
  116. AddConversationOption(conversation, "How long has he been gone?", "dlg_14_7")
  117. StartConversation(conversation, NPC, Spawn, "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.")
  118. end
  119. function dlg_14_7(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows012.mp3", "", "", 3231833073, 1031763109, Spawn)
  123. AddConversationOption(conversation, "You have friends you can talk to, right?", "dlg_14_8")
  124. StartConversation(conversation, NPC, Spawn, "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.")
  125. end
  126. function dlg_14_8(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows013.mp3", "", "", 9272878, 2191624347, Spawn)
  130. AddConversationOption(conversation, "Do you think any less of the many people who come to you for advice?", "dlg_14_9")
  131. StartConversation(conversation, NPC, Spawn, "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.")
  132. end
  133. function dlg_14_9(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows014.mp3", "", "", 2061524224, 2107406265, Spawn)
  137. AddConversationOption(conversation, "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")
  138. StartConversation(conversation, NPC, Spawn, "No, I do not.")
  139. end
  140. function dlg_14_10(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows015.mp3", "", "", 3752197711, 2604822585, Spawn)
  144. AddConversationOption(conversation, "Probably not.", "dlg_14_11")
  145. StartConversation(conversation, NPC, Spawn, "Oh, you're probably right. I don't suppose I'm doing myself any good trying to bottle up these feelings, either.")
  146. end
  147. function dlg_14_11(NPC, Spawn)
  148. SetStepComplete(Spawn, HELPING_A_FRIEND_AGAIN, 2)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/maela_meadows/qey_village06/quests/maela_meadows/maela_meadows016.mp3", "", "", 1285927202, 381670493, Spawn)
  152. AddConversationOption(conversation, "You're quite welcome.")
  153. StartConversation(conversation, NPC, Spawn, "Thank you so much for your help.")
  154. end