9
3

KalamarVesinger.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/KalamarVesinger.lua
  3. Script Purpose : Kalamar Vesinger <Fae Royal Messenger>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. choice = math.random(1,3)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_6657ebe1.mp3", "Maps are so interesting, aren't they?", "", 3408257918, 268204611, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_a5c2cc74.mp3", "Sometimes I like to come here just to see the new maps.", "", 2592389380, 2012943859, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_e032fc6a.mp3", "Fae Royal Messengers are also scouts, you know!", "", 2067512704, 3523424195, Spawn)
  28. else
  29. end
  30. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger015.mp3", "", "", 1398288955, 2756756342, Spawn)
  31. AddConversationOption(conversation, "I located several magical devices and destroyed them.", "dlg_0_1")
  32. AddConversationOption(conversation, "Not yet.")
  33. StartConversation(conversation, NPC, Spawn, "Any news, XXXXXXXX?")
  34. if convo==98 then
  35. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger001.mp3", "", "", 1370796179, 1768003050, Spawn)
  36. AddConversationOption(conversation, "Lady Katri said you might be able to help me.", "dlg_98_1")
  37. AddConversationOption(conversation, "Nothing, thanks.")
  38. StartConversation(conversation, NPC, Spawn, "Yes? How can I help you?")
  39. end
  40. if convo==107 then
  41. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger008.mp3", "", "", 1634811844, 2197818091, Spawn)
  42. AddConversationOption(conversation, "I've been everywhere on the list but haven't seen anything about the Grender.", "dlg_107_1")
  43. AddConversationOption(conversation, "I've misplaced the scroll you gave me.")
  44. AddConversationOption(conversation, "I'm still searching.")
  45. StartConversation(conversation, NPC, Spawn, "How goes the hunt?")
  46. end
  47. if convo==108 then
  48. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger008.mp3", "", "", 1634811844, 2197818091, Spawn)
  49. AddConversationOption(conversation, "I've been everywhere on the list but haven't seen anything about the Grender.", "dlg_108_1")
  50. AddConversationOption(conversation, "I've misplaced the scroll you gave me.")
  51. AddConversationOption(conversation, "I'm still searching.")
  52. StartConversation(conversation, NPC, Spawn, "How goes the hunt?")
  53. end
  54. end
  55. function dlg_0_1(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger016.mp3", "", "", 820648021, 3003512637, Spawn)
  59. AddConversationOption(conversation, "The central stump.", "dlg_0_2")
  60. StartConversation(conversation, NPC, Spawn, "Ah...so the latest reports were true. Which stump is that beast using as its lair?")
  61. end
  62. function dlg_0_2(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger019.mp3", "", "", 1833569894, 3935541730, Spawn)
  66. AddConversationOption(conversation, "Thank you! But what can I do to help now?", "dlg_0_3")
  67. StartConversation(conversation, NPC, Spawn, "XXXXXXXX, for someone who has not completed the Rite of Passage, you show commendable courage and initiative. I'm very impressed! Your spirit has found a worthy place to reawaken.")
  68. end
  69. function dlg_0_3(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger018.mp3", "", "", 3857736542, 2958380917, Spawn)
  73. AddConversationOption(conversation, "I'll do that.", "dlg_0_4")
  74. StartConversation(conversation, NPC, Spawn, "This might be beyond what Lady Katri had intended when she sent you to me. Perhaps you should check with her to see if she will allow you to assist us further. She will be working with other newcomers and Rite of Passage applicants near the Old Kelethin Acorn Lift.")
  75. end
  76. function dlg_98_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger002.mp3", "", "", 3295585723, 2659074372, Spawn)
  80. AddConversationOption(conversation, "It's about the Grender...I hear you're the first person who saw it.", "dlg_98_2")
  81. StartConversation(conversation, NPC, Spawn, "Ah, if Lady Katri sent you, I'd be more than happy to help you. What is it you need, huh?")
  82. end
  83. function dlg_98_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger003.mp3", "", "", 3687515657, 2071313746, Spawn)
  87. AddConversationOption(conversation, "Why is that?", "dlg_98_3")
  88. StartConversation(conversation, NPC, Spawn, "I haven't actually seen it myself, but I did some of the initial investigation into its existence. I'm sure it really exists. Some folks are skeptical, though.")
  89. end
  90. function dlg_98_3(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger004.mp3", "", "", 738876397, 3999214733, Spawn)
  94. AddConversationOption(conversation, "Have the scouts been able to learn anything?", "dlg_98_4")
  95. StartConversation(conversation, NPC, Spawn, "For one thing, if such a creature existed, why hasn't anyone seen it before? Also, we can't find its lair. It's possible that it spreads its influence from Lesser Faydark, but then why haven't we seen evidence of disease on creatures anywhere else?")
  96. end
  97. function dlg_98_4(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger005.mp3", "", "", 3011438280, 2479522140, Spawn)
  101. AddConversationOption(conversation, "Sounds reasonable.", "dlg_98_5")
  102. StartConversation(conversation, NPC, Spawn, "We've been debating whether or not no news is good news. No recent incidents have been reported around Kelethin. However, given that only creatures near our town have been affected, it's likely that the Grender is nearby.")
  103. end
  104. function dlg_98_5(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. conversation = CreateConversation()
  107. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger006.mp3", "", "", 370779524, 2237372107, Spawn)
  108. AddConversationOption(conversation, "Of course!", "dlg_98_6")
  109. AddConversationOption(conversation, "Not right now.")
  110. StartConversation(conversation, NPC, Spawn, "A creature that large could only hide in a few places. Perhaps you'd help out by investigating a few of these places?")
  111. end
  112. function dlg_98_6(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. conversation = CreateConversation()
  115. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger007.mp3", "", "", 1729927705, 3759911339, Spawn)
  116. AddConversationOption(conversation, "I'll be back.", "dlg_98_7")
  117. StartConversation(conversation, NPC, Spawn, "Excellent. Here's a scroll for you. It has a list of some areas that shouldn't be too difficult for you to reach on your own. Take a quick look around, then come back and let me know what you find out.")
  118. end
  119. function dlg_107_1(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger014.mp3", "", "", 3537512118, 3683878271, Spawn)
  123. AddConversationOption(conversation, "Thanks!")
  124. StartConversation(conversation, NPC, Spawn, "Fortunately, I have several copies of it. If anyone finds them, they appear to be simple travelogues, so no harm done!")
  125. end
  126. function dlg_108_1(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger009.mp3", "", "", 3308883973, 1803706282, Spawn)
  130. AddConversationOption(conversation, "Why's that?", "dlg_108_2")
  131. StartConversation(conversation, NPC, Spawn, "No? That's disappointing, to say the least. We did receive one more report while you were gone, but it's not particularly credible.")
  132. end
  133. function dlg_108_2(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger010.mp3", "", "", 2776180591, 2107105431, Spawn)
  137. AddConversationOption(conversation, "If the Grender were inside the city, someone would sound the alarm.", "dlg_108_3")
  138. StartConversation(conversation, NPC, Spawn, "The report indicates that the Grender is in Kelethin! That's just absurd. And yet, how else would a creature like this be able to affect saplings and other young creatures so close to our home?")
  139. end
  140. function dlg_108_3(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger011.mp3", "", "", 2655458455, 91161091, Spawn)
  144. AddConversationOption(conversation, "Well...there are some very large tree stumps.", "dlg_108_4")
  145. StartConversation(conversation, NPC, Spawn, "My thoughts exactly. It is possible, however unlikely, that the Grender's lair is beneath Kelethin itself. You don't recall seeing anything out of the ordinary? Anything that a creature could hide in?")
  146. end
  147. function dlg_108_4(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger012.mp3", "", "", 3801940384, 3412413593, Spawn)
  151. AddConversationOption(conversation, "I could check out these stumps for you.", "dlg_108_5")
  152. StartConversation(conversation, NPC, Spawn, "So you suspect the Grender is inside one of these stumps? Hm. This could be dangerous. Kelethin is linked to two of these stumps via bridges and platforms. If the Grender has a lair that close, we may have simply been searching for it too far away!")
  153. end
  154. function dlg_108_5(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/qst_kalamar_vesinger/qst_kalamar_vesinger013.mp3", "", "", 4194593417, 1620249668, Spawn)
  158. AddConversationOption(conversation, "I'll be thorough.", "dlg_108_6")
  159. StartConversation(conversation, NPC, Spawn, "Yes...yes, that would be excellent! Search the stumps carefully. It could be that the Grender is using some sort of magical device to concentrate his influence around the city. That would certainly explain why these diseased creatures have only been seen nearby.")
  160. end
  161. --[[ raw_conversations
  162. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_e032fc6a.mp3", "Fae Royal Messengers are also scouts, you know!", "", 2067512704, 3523424195, Spawn)
  163. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_6657ebe1.mp3", "Maps are so interesting, aren't they?", "", 3408257918, 268204611, Spawn)
  164. PlayFlavor(NPC, "voiceover/english/exp03_questvo/kalamar_vesinger/_exp03/exp03_cty_kelethin/quest/quest_kalamar_vesinger_maps_a5c2cc74.mp3", "Sometimes I like to come here just to see the new maps.", "", 2592389380, 2012943859, Spawn)
  165. --]]