GeldraniAZhiTel.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/GeldraniAZhiTel.lua
  3. Script Purpose : Geldrani A'Zhi'Tel
  4. Script Author : jakejp
  5. Script Date : 2018.06.13
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local EmptyVial = 46457
  9. local FilledVial = 7641
  10. local ADimLight = 306
  11. local DiggingInTheYard = 313
  12. local AStrangeMix = 314
  13. function spawn(NPC)
  14. ProvidesQuest(NPC, ADimLight)
  15. ProvidesQuest(NPC, DiggingInTheYard)
  16. ProvidesQuest(NPC, AStrangeMix)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. if HasCompletedQuest(Spawn, ADimLight) == false and HasQuest(Spawn, ADimLight) == false and CanReceiveQuest(Spawn, ADimLight) then
  25. -- Offer A Dim Light if not completed or started
  26. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_001.mp3", "", "", 1446762141, 4155654886, Spawn)
  27. AddConversationOption(conversation, "Okay, I'll bite. What is it you have been researching?", "dlg_9_1")
  28. AddConversationOption(conversation, "It sounds like you are doing just fine, then. Farewell to you.")
  29. StartConversation(conversation, NPC, Spawn, "The Arasai can take their destiny into their own hands. My research has led me here, and I am so close to completion that I can taste success.")
  30. elseif GetQuestStep(Spawn, ADimLight) == 1 then
  31. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_001.mp3", "", "", 1446762141, 4155654886, Spawn)
  32. AddConversationOption(conversation, "Unfortunately, I haven't found one of the orbs yet, but I will.")
  33. StartConversation(conversation, NPC, Spawn, "The mystics will be carrying the luminescent orbs. Have you confronted them?")
  34. elseif GetQuestStep(Spawn, ADimLight) == 2 then
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1048.mp3", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "I have, and I was able to find one of the orbs for you.", "dlg_2_1")
  37. StartConversation(conversation, NPC, Spawn, "The mystics will be carrying the luminescent orbs. Have you confronted them?")
  38. elseif HasCompletedQuest(Spawn, DiggingInTheYard) == false and HasQuest(Spawn, DiggingInTheYard) == false and CanReceiveQuest(Spawn, DiggingInTheYard) then
  39. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_006.mp3", "", "", 2140158429, 3749106797, Spawn)
  40. AddConversationOption(conversation, "If I were looking for this soil, where might I find it?", "GiveDiggingInTheYard")
  41. AddConversationOption(conversation, "Get a shovel, then. I need to be going.")
  42. StartConversation(conversation, NPC, Spawn, "Now, in order to conduct my experiment, I need a couple of elements that can be found within the Butcherblock Mountains. First, I will need a pile of soil. The soil I need can be found just below the surface, a few feet down. The kobolds, in their savage fervor, will occasionally dig some of this soil up from what would otherwise be rock-solid impacted dirt. See if you can find some of these piles of pure soil.")
  43. elseif GetQuestStep(Spawn, DiggingInTheYard) == 1 then
  44. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "The soil is well-guarded, but I will return with it soon.")
  46. StartConversation(conversation, NPC, Spawn, "I will need the soil as soon as possible. Did you find it yet?")
  47. elseif GetQuestStep(Spawn, DiggingInTheYard) == 2 then
  48. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "I found the soil you were asking for.", "dlg_8_1")
  50. StartConversation(conversation, NPC, Spawn, "I will need the soil as soon as possible. Did you find it yet?")
  51. elseif HasCompletedQuest(Spawn, AStrangeMix) == false and HasQuest(Spawn, AStrangeMix) == false and CanReceiveQuest(Spawn, AStrangeMix) then
  52. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  53. AddConversationOption(conversation, "This vial doesn't seem like it would hold much. This is all you need?", "GiveAStrangeMix")
  54. AddConversationOption(conversation, "You can find someone else to fetch your water.")
  55. StartConversation(conversation, NPC, Spawn, "As I'm sure you can well imagine, in order to plant a mystical seedling, you need water that is itself mystical in nature. There is a pool of water not far from here that will provide me with the water I need. The pool within the nearby druid rings absorbs much of the latent magic properties of that ancient place, and will be perfect for what I need. Please take this vial, and fill it with the water you find there.")
  56. elseif GetQuestStep(Spawn, AStrangeMix) == 1 then
  57. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  58. AddConversationOption(conversation, "No, I have not collected it yet. I will return.")
  59. StartConversation(conversation, NPC, Spawn, "Were you able to find the water I need?")
  60. elseif GetQuestStep(Spawn, AStrangeMix) == 2 then
  61. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  62. AddConversationOption(conversation, "Yes, I have it right here.", "dlg_13_1")
  63. StartConversation(conversation, NPC, Spawn, "Were you able to find the water I need?")
  64. elseif HasCompletedQuest(Spawn, AStrangeMix) then
  65. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  66. Say(NPC, "My research will shape the direction of fate for all Arasai one day. Remember this.")
  67. end
  68. end
  69. function dlg_2_1(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. SetStepComplete(Spawn, ADimLight, 2)
  73. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_005.mp3", "", "", 3939464934, 409091383, Spawn)
  74. AddConversationOption(conversation, "Let's see what you would be having me do first.", "dlg_2_2")
  75. StartConversation(conversation, NPC, Spawn, "Ah, there we are. Now be careful with that, they are quite fragile, and can be easily disrupted. Ah, yes, this will do perfectly. You did a fine job retrieving this, and there is still more to be done. I trust I can rely on your help for a bit longer, yes?")
  76. end
  77. function dlg_3_1(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_007.mp3", "", "", 4076175152, 3212649291, Spawn)
  81. AddConversationOption(conversation, "I will see what I can do.", "dlg_3_2")
  82. StartConversation(conversation, NPC, Spawn, "Who knows what those curs are digging for, but in the end, they are doing the hard work for me, anyway. Bring me as much of the soil as you can find.")
  83. end
  84. function dlg_8_1(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_008.mp3", "", "", 1548158395, 1047801679, Spawn)
  88. AddConversationOption(conversation, "Umm... sure. Seedling? I thought you had some dim ball of light.", "dlg_8_2")
  89. StartConversation(conversation, NPC, Spawn, "I had little doubt you would return with the soil I needed. Yes, everything is coming together nicely. All I need is the water, and I can plant the seedling. Isn't this exciting?")
  90. end
  91. function dlg_8_2(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. SetStepComplete(Spawn, DiggingInTheYard, 2)
  95. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_009.mp3", "", "", 172858727, 2005436455, Spawn)
  96. AddConversationOption(conversation, "Fine by me.", "dlg_8_3")
  97. StartConversation(conversation, NPC, Spawn, "Yes, well, I would explain it, but I'm certain it would not make much sense to you. Now, if you're still willing, I have one more thing that needs to be gathered, and you can be on your way if you choose.")
  98. end
  99. function dlg_8_3(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  103. AddConversationOption(conversation, "This vial doesn't seem like it would hold much. This is all you need?", "GiveAStrangeMix")
  104. AddConversationOption(conversation, "You can find someone else to fetch your water.")
  105. StartConversation(conversation, NPC, Spawn, "As I'm sure you can well imagine, in order to plant a mystical seedling, you need water that is itself mystical in nature. There is a pool of water not far from here that will provide me with the water I need. The pool within the nearby druid rings absorbs much of the latent magic properties of that ancient place, and will be perfect for what I need. Please take this vial, and fill it with the water you find there.")
  106. end
  107. function dlg_9_1(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_002.mp3", "", "", 1171507334, 3736299581, Spawn)
  111. AddConversationOption(conversation, "Perhaps. What is it you need to have done?", "dlg_9_2")
  112. AddConversationOption(conversation, "I've got enough to deal with at the present. Good day to you.")
  113. StartConversation(conversation, NPC, Spawn, "I believe I've found a... well, an energy source that could prove quite helpful if we learn how to properly harness it. I've been running some studies back in Darklight Wood, and the trail of my findings has led me here. I'm wondering if you might be able to lend me some assistance.")
  114. end
  115. function dlg_9_2(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_003.mp3", "", "", 46316574, 116030881, Spawn)
  119. AddConversationOption(conversation, "Hmm... well, it sounds simple enough. If the pay is worth it, I'll see if I can get one of these orbs for you.", "GiveADimLight")
  120. AddConversationOption(conversation, "This doesn't sound like it's worth my time. I need to be going.")
  121. StartConversation(conversation, NPC, Spawn, "It's quite simple, really. The energy manifests itself as a small, floating luminescent light. The Yarpsnarl mystics have found a way to entrap these orbs, and they use them as charms, completely unaware as to what it is they actually have. It's probably easiest to just gather one of the orbs from the Yarpsnarl, rather than trying to catch one yourself.")
  122. end
  123. function dlg_13_1(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_012.mp3", "", "", 739319511, 2263918899, Spawn)
  127. AddConversationOption(conversation, "Control their destiny? What exactly is it you are doing here?", "dlg_13_2")
  128. StartConversation(conversation, NPC, Spawn, "Ah, here is the water. I now have the ingredients I need to cultivate the seedling, and see if my research was indeed accurate. If so, this could mean a good deal to the Arasai people, and their ability to control their destiny.")
  129. end
  130. function dlg_13_2(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. SetStepComplete(Spawn, AStrangeMix, 2)
  134. PlayFlavor(NPC, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_013.mp3", "", "", 3301309951, 3942968739, Spawn)
  135. AddConversationOption(conversation, "Your rudeness will earn you no friends, Arasai. There might be others interested in what is happening here, so tread lightly.", "dlg_13_3")
  136. StartConversation(conversation, NPC, Spawn, "That is none of your concern! You have done what I asked and received your payment for your services. Now be off with you - I have much work to do.")
  137. end
  138. function GiveADimLight(NPC, Spawn)
  139. OfferQuest(NPC, Spawn, ADimLight)
  140. end
  141. function GiveDiggingInTheYard(NPC, Spawn)
  142. OfferQuest(NPC, Spawn, DiggingInTheYard)
  143. end
  144. function GiveAStrangeMix(NPC, Spawn)
  145. OfferQuest(NPC, Spawn, AStrangeMix)
  146. end