BrultenHiltstill.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/BrultenHiltstill.lua
  3. Script Purpose : Brulten Hiltstill
  4. Script Author : jakejp
  5. Script Date : 2018.06.05
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local SeekingBrultenHiltstill = 270
  9. local TheKoboldAndTheBeautiful = 276
  10. local MuckflickMessageIntercepted = 277
  11. local SeekingTheKilnkors = 278
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, TheKoboldAndTheBeautiful)
  14. ProvidesQuest(NPC, MuckflickMessageIntercepted)
  15. ProvidesQuest(NPC, SeekingTheKilnkors)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if HasQuest(Spawn, SeekingBrultenHiltstill) then
  24. -- Start first quest (Add if you don't do this quest from start zone)
  25. -- Add Conversation to complete that side quest
  26. SetStepComplete(Spawn, SeekingBrultenHiltstill, 1)
  27. if HasCompletedQuest(Spawn, TheKoboldAndTheBeautiful) == false and HasQuest(Spawn, TheKoboldAndTheBeautiful ) == false and CanReceiveQuest(Spawn, TheKoboldAndTheBeautiful) then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "I'm " .. GetName(Spawn).. ". Where am I?", "dlg_5_1")
  30. StartConversation(conversation, NPC, Spawn, "There really is nothing like the smell of the earth here in these mountains. One can almost taste the gems and minerals wafting up from the ground... Oh, ahoy there young one. You look new to these parts. Tell me, who might you be?")
  31. end
  32. elseif HasCompletedQuest(Spawn, TheKoboldAndTheBeautiful) == false and HasQuest(Spawn, TheKoboldAndTheBeautiful ) == false and CanReceiveQuest(Spawn, TheKoboldAndTheBeautiful) then
  33. -- Offer The Kobold And The Beautiful if not completed or started
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "I'm " .. GetName(Spawn).. ". Where am I?", "dlg_5_1")
  36. StartConversation(conversation, NPC, Spawn, "There really is nothing like the smell of the earth here in these mountains. One can almost taste the gems and minerals wafting up from the ground... Oh, ahoy there young one. You look new to these parts. Tell me, who might you be?")
  37. elseif GetQuestStep(Spawn, TheKoboldAndTheBeautiful) == 1 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "I'm going. I'm going!")
  40. StartConversation(conversation, NPC, Spawn, "Friend, you return too soon! Kobolds lurk in every corner of these lands. You must slay more still! Go now!")
  41. elseif GetQuestStep(Spawn, TheKoboldAndTheBeautiful) == 2 then
  42. Say(Player, "TEST")
  43. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "I have slain several kobolds, though I'm sure more will take their place.", "Option2")
  45. StartConversation(conversation, NPC, Spawn, "The yapping... It's stopped. I judge you were successful then?")
  46. --StartConversation(conversation, NPC, Spawn, "The yapping... It's stopped. I judge you were successful then?")
  47. elseif HasCompletedQuest(Spawn, MuckflickMessageIntercepted) == false and HasQuest(Spawn, MuckflickMessageIntercepted) == false and CanReceiveQuest(Spawn, MuckflickMessageIntercepted) then
  48. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "I have slain several kobolds, though I'm sure more will take their place.", "Option2_b")
  50. StartConversation(conversation, NPC, Spawn, "The yapping... It's stopped. I judge you were successful then?")
  51. elseif GetQuestStep(Spawn, MuckflickMessageIntercepted) == 1 then
  52. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  53. AddConversationOption(conversation, "I shall return.")
  54. StartConversation(conversation, NPC, Spawn, "Well?! Where's the note. Go on, those runners have been seen running between the various camps between here and Kaladim.")
  55. elseif GetQuestStep(Spawn, MuckflickMessageIntercepted) == 2 then
  56. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "Here's the note.", "dlg_12_1")
  58. StartConversation(conversation, NPC, Spawn, "You return, and by the look on your face, you were triumphant. Here, let me see the note you acquired.")
  59. elseif HasCompletedQuest(Spawn, SeekingTheKilnkors) == false and HasQuest(Spawn, SeekingTheKilnkors) == false and CanReceiveQuest(Spawn, SeekingTheKilnkors) then
  60. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "The Kilnkor brothers? Where can I find them?", "dlg_12_2")
  62. AddConversationOption(conversation, "Nah, forget it. I've done more than enough. I'll be on my way.")
  63. StartConversation(conversation, NPC, Spawn, "Ack, this is what I feared. It is encrypted... or at least written in a language not familiar to these weary old eyes. This note's meaning is beyond me. You'll need to take this to my superiors, the Kilnkor brothers.")
  64. elseif GetQuestStep(Spawn, MuckflickMessageIntercepted) == 1 then
  65. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  66. Say(NPC, "Your help is much appreciated. Go speak with Jonedorn Kilnkor if you haven't already.")
  67. elseif HasCompletedQuest(Spawn, SeekingTheKilnkors) == true then
  68. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  69. Say(NPC, "Your help is much appreciated. Go speak with Jonedorn Kilnkor if you haven't already.")
  70. end
  71. end
  72. function dlg_2_1(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "Go on.", "dlg_2_2")
  77. StartConversation(conversation, NPC, Spawn, "Head west for a bit, past the goblin camps and head south until you see the dwarven outpost. The Kilnkor brothers run the show there, working with the Irontoe Brigade.")
  78. end
  79. function dlg_2_2(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "I'm on my way! Good day and good luck.", "dlg_2_3")
  84. StartConversation(conversation, NPC, Spawn, "Find Jonedorn Kilnkor first. Give him this note and tell him where you got it. He'll be sure to help.")
  85. end
  86. function dlg_5_1(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "How do you mean?", "dlg_5_2")
  91. StartConversation(conversation, NPC, Spawn, "You've just set foot in Butcherblock Mountains, the beloved homeland of the dwarves... Though since I last traversed these peaks, these mountains have changed in ways this old dwarf would never have imagined.")
  92. end
  93. function dlg_5_2(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  97. AddConversationOption(conversation, "Where did they come from?", "dlg_5_3")
  98. StartConversation(conversation, NPC, Spawn, "Kobolds, terrible drooling heathens who dare to claim the almighty Brell as their maker have recently made their way to the surface and have infested these beautiful mountains with their presence.")
  99. end
  100. function dlg_5_3(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  104. AddConversationOption(conversation, "Kobolds, in the home of the dwarves? How?", "dlg_5_4")
  105. StartConversation(conversation, NPC, Spawn, "It saddens me to say, but it appears the kobolds have sprung forth from the halls of Kaladim itself!")
  106. end
  107. function dlg_5_4(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  111. AddConversationOption(conversation, "What can I do?", "dlg_5_5")
  112. AddConversationOption(conversation, "Okay. Well, I'll be going now. No sense involving myself in matters of violence.")
  113. StartConversation(conversation, NPC, Spawn, "I've no time to explain now... We must act now before the kobolds around us organize themselves and attack!")
  114. end
  115. function dlg_5_5(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  119. AddConversationOption(conversation, "It would be an honor!", "GiveTheKoboldAndTheBeautiful")
  120. AddConversationOption(conversation, "I shall take joy in the slaughter of each and every one of the beasts I kill!", "GiveTheKoboldAndTheBeautiful")
  121. AddConversationOption(conversation, "Drooling heathens?! Forget it!")
  122. StartConversation(conversation, NPC, Spawn, "The loose bands of kobold camps in these woods here seem to be slowly assembling into a larger and more organized force. An army no doubt meant to challenge the resistance of dwarves who have constructed outposts here in the Butcherblock Mountains. I need you to whittle down their forces as best you can so that we might stymie their effort and buy my brethren more time as they prepare to make their counter-attack!")
  123. end
  124. function dlg_12_1(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. SetStepComplete(Spawn, MuckflickMessageIntercepted, 2)
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "The Kilnkor brothers? Where can I find them?", "dlg_12_2")
  130. AddConversationOption(conversation, "Nah, forget it. I've done more than enough. I'll be on my way.")
  131. StartConversation(conversation, NPC, Spawn, "Ack, this is what I feared. It is encrypted... or at least written in a language not familiar to these weary old eyes. This note's meaning is beyond me. You'll need to take this to my superiors, the Kilnkor brothers.")
  132. end
  133. function dlg_12_2(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  137. AddConversationOption(conversation, "Go on.", "dlg_12_3")
  138. StartConversation(conversation, NPC, Spawn, "Head west for a bit, past the goblin camps and head south until you see the dwarven outpost. The Kilnkor brothers run the show there, working with the Irontoe Brigade.")
  139. end
  140. function dlg_12_3(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  144. AddConversationOption(conversation, "I'm on my way! Good day and good luck.", "GiveSeekingTheKilnkors")
  145. StartConversation(conversation, NPC, Spawn, "Find Jonedorn Kilnkor first. Give him this note and tell him where you got it. He'll be sure to help.")
  146. end
  147. function dlg_22_1(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  151. AddConversationOption(conversation, "How do you mean?", "dlg_22_2")
  152. StartConversation(conversation, NPC, Spawn, "You've just set foot in Butcherblock Mountains, the beloved homeland of the dwarves... Though since I last traversed these peaks, these mountains have changed in ways this old dwarf would never have imagined.")
  153. end
  154. function dlg_22_2(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  158. AddConversationOption(conversation, "Where did they come from?", "dlg_22_3")
  159. StartConversation(conversation, NPC, Spawn, "Kobolds, terrible drooling heathens who dare to claim the almighty Brell as their maker have recently made their way to the surface and have infested these beautiful mountains with their presence.")
  160. end
  161. function dlg_22_3(NPC, Spawn)
  162. FaceTarget(NPC, Spawn)
  163. conversation = CreateConversation()
  164. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  165. AddConversationOption(conversation, "Kobolds, in the home of the dwarves? How?", "dlg_22_4")
  166. StartConversation(conversation, NPC, Spawn, "It saddens me to say, but it appears the kobolds have sprung forth from the halls of Kaladim itself!")
  167. end
  168. function dlg_22_4(NPC, Spawn)
  169. FaceTarget(NPC, Spawn)
  170. conversation = CreateConversation()
  171. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  172. AddConversationOption(conversation, "What can I do?", "dlg_22_5")
  173. AddConversationOption(conversation, "Ok, well I'll be going now. No sense involving myself in matters of violence.")
  174. StartConversation(conversation, NPC, Spawn, "I've no time to explain now... We must act now before the kobolds around us organize themselves and attack!")
  175. end
  176. function dlg_22_5(NPC, Spawn)
  177. FaceTarget(NPC, Spawn)
  178. conversation = CreateConversation()
  179. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  180. AddConversationOption(conversation, "It would be an honor!", "dlg_22_6")
  181. AddConversationOption(conversation, "I shall take joy in the slaughter of each and every one of the beasts I kill!")
  182. AddConversationOption(conversation, "Drooling heathens?! Forget it!")
  183. StartConversation(conversation, NPC, Spawn, "The loose bands of kobold camps in these woods here seem to be slowly assembling into a larger and more organized force. An army no doubt meant to challenge the resistance of dwarves who have constructed outposts here in the Butcherblock Mountains. I need you to whittle down their forces as best you can so that we might stymie their effort and buy my brethren more time as they prepare to make their counter-attack!")
  184. end
  185. function dlg_22_6(NPC, Spawn)
  186. FaceTarget(NPC, Spawn)
  187. conversation = CreateConversation()
  188. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  189. AddConversationOption(conversation, "I'm off!", "dlg_22_7")
  190. AddConversationOption(conversation, "I don't have a blade, but thanks for the well wishes!")
  191. StartConversation(conversation, NPC, Spawn, "Good. Now just up ahead are scores of kobold camps. Go and slay at least twenty kobolds. That should thin their ranks enough to stall any assault they have planned. Go swiftly, and may Brell guide your blade!")
  192. end
  193. function Option2(NPC, Spawn)
  194. FaceTarget(NPC, Spawn)
  195. local conversation = CreateConversation()
  196. SetStepComplete(Spawn, TheKoboldAndTheBeautiful, 2)
  197. AddConversationOption(conversation, "Any clues as to who or what could be responsible?", "Option9")
  198. StartConversation(conversation, NPC, Spawn, "Aye, there always seem to be more no matter how many we slay. Someone must be organizing the camps into effective fighting forces.")
  199. end
  200. function Option2_b(NPC, Spawn)
  201. FaceTarget(NPC, Spawn)
  202. local conversation = CreateConversation()
  203. SetStepComplete(Spawn, TheKoboldAndTheBeautiful, 2)
  204. AddConversationOption(conversation, "Any clues as to who or what could be responsible?", "Option9")
  205. StartConversation(conversation, NPC, Spawn, "Aye, there always seem to be more no matter how many we slay. Someone must be organizing the camps into effective fighting forces.")
  206. end
  207. function Option9(NPC, Spawn)
  208. FaceTarget(NPC, Spawn)
  209. local conversation = CreateConversation()
  210. AddConversationOption(conversation, "Go on.", "Option10")
  211. StartConversation(conversation, NPC, Spawn, "The other evening, as I was investigating the kobolds' behavior, I happened upon a most unexpected sort of meeting...")
  212. end
  213. function Option10(NPC, Spawn)
  214. FaceTarget(NPC, Spawn)
  215. local conversation = CreateConversation()
  216. AddConversationOption(conversation, "Then what happened?", "Option11")
  217. StartConversation(conversation, NPC, Spawn, "A troop of goblins, larger and more sinister than the ones I've seen near the coast, emerged from the darkness. I expected a battle between them and the kobolds, but instead I saw the two parties discuss some matter in a tongue I could not quite decipher.")
  218. end
  219. function Option11(NPC, Spawn)
  220. FaceTarget(NPC, Spawn)
  221. local conversation = CreateConversation()
  222. AddConversationOption(conversation, "Perhaps if I intercepted a message from one of the Muckflick runners, we could learn more about their plans.", "Option3")
  223. AddConversationOption(conversation, "Giant, kobold-loving goblins? Hmm, I think I'll be on my way then.")
  224. StartConversation(conversation, NPC, Spawn, "The goblins, uh, Muckflicks I think they're called, have established themselves here in the mountains. There they wait for messages from their runners and continue to plot with the Yarpsnarls.")
  225. end
  226. function Option3(NPC, Spawn)
  227. FaceTarget(NPC, Spawn)
  228. local conversation = CreateConversation()
  229. AddConversationOption(conversation, "I'll be back before you know it!", "GiveMuckflickMessageIntercepted")
  230. StartConversation(conversation, NPC, Spawn, "That's a great idea! Go, slay one of their runners and bring back the message it carries. Perhaps we can learn more.")
  231. end
  232. function GiveTheKoboldAndTheBeautiful(NPC, Spawn)
  233. OfferQuest(NPC, Spawn, TheKoboldAndTheBeautiful)
  234. end
  235. function GiveMuckflickMessageIntercepted(NPC, Spawn)
  236. OfferQuest(NPC, Spawn, MuckflickMessageIntercepted)
  237. end
  238. function GiveSeekingTheKilnkors(NPC, Spawn)
  239. OfferQuest(NPC, Spawn, SeekingTheKilnkors)
  240. end