TalvraeTZyth.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/TalvraeTZyth.lua
  3. Script Purpose : Talvrae T'Zyth
  4. Script Author : jakejp
  5. Script Date : 2018.06.08
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TerratrodderChuck = 45400
  9. local ForTheDogs = 284
  10. local AMindOfMyOwn = 294
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, ForTheDogs)
  13. ProvidesQuest(NPC, AMindOfMyOwn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, SeekingBrultenHiltstill) then
  22. -- Start first quest (Add if you don't do this quest from start zone)
  23. -- Add Conversation to complete that side quest
  24. SetStepComplete(Spawn, SeekingBrultenHiltstill, 1)
  25. if HasCompletedQuest(Spawn, ForTheDogs) == false and HasQuest(Spawn, ForTheDogs ) == false and CanReceiveQuest(Spawn, ForTheDogs) then
  26. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_001.mp3", "", "", 4232138815, 4269349384, Spawn)
  27. AddConversationOption(conversation, "Is that so? And what would you rather be doing then, given the chance?", "dlg_8_1")
  28. AddConversationOption(conversation, "Well, this is the job you were given. Farewell.")
  29. StartConversation(conversation, NPC, Spawn, "Collecting samples. A coercer of my talents is sent to Faydwer to collect samples for magical research. This is work that should be relegated to students or apprentices. My abilities have far more practical and advantageous applications.")
  30. end
  31. elseif HasCompletedQuest(Spawn, ForTheDogs) == false and HasQuest(Spawn, ForTheDogs ) == false and CanReceiveQuest(Spawn, ForTheDogs) then
  32. -- Offer For the Dogs if not completed or started
  33. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_001.mp3", "", "", 4232138815, 4269349384, Spawn)
  34. AddConversationOption(conversation, "Is that so? And what would you rather be doing then, given the chance?", "dlg_8_1")
  35. AddConversationOption(conversation, "Well, this is the job you were given. Farewell.")
  36. StartConversation(conversation, NPC, Spawn, "Collecting samples. A coercer of my talents is sent to Faydwer to collect samples for magical research. This is work that should be relegated to students or apprentices. My abilities have far more practical and advantageous applications.")
  37. elseif GetQuestStep(Spawn, ForTheDogs) == 1 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "I have not found it all just yet. I will return.")
  40. StartConversation(conversation, NPC, Spawn, "Where is the terratrodder meat I need?")
  41. elseif GetQuestStep(Spawn, ForTheDogs) == 2 then
  42. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  43. AddConversationOption(conversation, "Right here.", "dlg_6_1")
  44. StartConversation(conversation, NPC, Spawn, "Where is the terratrodder meat I need?")
  45. elseif HasCompletedQuest(Spawn, AMindOfMyOwn) == false and HasQuest(Spawn, AMindOfMyOwn) == false and CanReceiveQuest(Spawn, AMindOfMyOwn) then
  46. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_006.mp3", "", "", 2533203842, 1528968842, Spawn)
  47. AddConversationOption(conversation, "I understand. What happens once they eat the food?", "dlg_7_1")
  48. AddConversationOption(conversation, "I have other things to do at the moment. Farewell.")
  49. StartConversation(conversation, NPC, Spawn, "There, I have completed my task, and now it is your turn. You want to take this bowl of food to the Yapsnarl camp, and place it nearby one of the kobolds there. Do not let him see you, or he will probably just ignore the dish and try to eat you instead... and if that happens, you probably deserve it. If no kobold comes to eat it, pick it back up and move it somewhere else. If one of them does not eat the food in here, you cannot run the test.")
  50. elseif GetQuestStep(Spawn, AMindOfMyOwn) == 1 then
  51. if HasItem(Spawn, TerratrodderChuck) == false then
  52. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  53. AddConversationOption(conversation, "The bait was lost. Might you have another?", "MoreBait")
  54. AddConversationOption(conversation, "I'm not quite finished yet. I will return soon.")
  55. StartConversation(conversation, NPC, Spawn, "Tell me how the experiment is going.")
  56. else
  57. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  58. AddConversationOption(conversation, "I'm not quite finished yet. I will return soon.")
  59. StartConversation(conversation, NPC, Spawn, "Tell me how the experiment is going.")
  60. end
  61. end
  62. --PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1047.mp3", "", "", 0, 0, Spawn)
  63. --AddConversationOption(conversation, "Right here.", "dlg_6_1")
  64. -- StartConversation(conversation, NPC, Spawn, "Where is the bear meat I need?")
  65. if convo==14 then
  66. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_006.mp3", "", "", 2533203842, 1528968842, Spawn)
  67. AddConversationOption(conversation, "I understand. What happens once they eat the food?", "dlg_14_1")
  68. AddConversationOption(conversation, "I have other things to do at the moment. Farewell.")
  69. StartConversation(conversation, NPC, Spawn, "There, I have completed my task, and now it is your turn. You want to take this bowl of food to the Yapsnarl camp, and place it nearby one of the kobolds there. Do not let him see you, or he will probably just ignore the dish and try to eat you instead... and if that happens, you probably deserve it. If no kobold comes to eat it, pick it back up and move it somewhere else. If one of them does not eat the food in here, you cannot run the test.")
  70. end
  71. if convo==15 then
  72. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "Everything seems to have gone as you predicted.", "dlg_15_1")
  74. StartConversation(conversation, NPC, Spawn, "Tell me how the experiment is going.")
  75. end
  76. if convo==23 then
  77. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  78. AddConversationOption(conversation, "Hulis sent me here. He said that you might be looking for some help.", "dlg_23_1")
  79. StartConversation(conversation, NPC, Spawn, "I don’t remember calling for you. What is it you need?")
  80. end
  81. end
  82. function dlg_6_1(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. SetStepComplete(Spawn, ForTheDogs, 2)
  86. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_005.mp3", "", "", 2314822935, 2368990546, Spawn)
  87. AddConversationOption(conversation, "As long as there's more pay, I'll be right here.")
  88. StartConversation(conversation, NPC, Spawn, "Ah, you have done well! This should be exactly what I need to execute the experiment... well, aside from a little more help from you, that is. Now, if you will excuse me a moment, I will prepare this for the next step in my plan.")
  89. end
  90. function dlg_7_1(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_007.mp3", "", "", 3385211924, 1859135719, Spawn)
  94. AddConversationOption(conversation, "Okay, so, feed this to a kobold, and it will suddenly follow me around? Are you sure about this?", "GiveAMindOfMyOwn")
  95. AddConversationOption(conversation, "I'm not sure I feel like hand-feeding kobolds at the moment. Farewell.")
  96. StartConversation(conversation, NPC, Spawn, "The food is enchanted to make the kobolds open to suggestion, and should make them follow your commands without question. Once a kobold has eaten the food, I want you to try to get him to attack and kill his own packmates. If he will do that, then I will know that I have complete control over the creature, and I will consider the experiment a success.")
  97. end
  98. function dlg_7_2(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_008.mp3", "", "", 1081612079, 3658293484, Spawn)
  102. AddConversationOption(conversation, "I see. Well then, I will return and let you know how things went.", "dlg_7_3")
  103. StartConversation(conversation, NPC, Spawn, "While I have no reason to question my own magic craft, I don't know how well the enchantment will work on what is essentially a simple creature. It might just go primal and attack everything nearby, or might just run off to the hills. I wouldn't attempt walking too far from the camp this time, as I don't know how long the enchantment will last.")
  104. end
  105. function dlg_8_1(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_002.mp3", "", "", 201730222, 3203333132, Spawn)
  109. AddConversationOption(conversation, "So I take it that you have a plan, then?", "dlg_8_2")
  110. AddConversationOption(conversation, "That may be true, but that's not your choice to make. Good luck with your work. Goodbye.")
  111. StartConversation(conversation, NPC, Spawn, "Well, I see the need for study. But why would we be picking flowers and collecting stones when we could be instead learning more about the lesser races and creatures that now inhabit this land. Who they are, what they live like... what their weaknesses are. This information would be far more useful to the Teir'Dal than the latent magic properties of flower petals.")
  112. end
  113. function dlg_8_2(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_003.mp3", "", "", 1922846233, 313729102, Spawn)
  117. AddConversationOption(conversation, "Sounds interesting. I might be willing to help, if there is pay involved. What is it you are proposing?", "GiveForTheDogs")
  118. AddConversationOption(conversation, "I'm not here to do your dirty work. Good day to you.")
  119. StartConversation(conversation, NPC, Spawn, "Indeed I do, but I will need help to execute it. You see, I still have my assigned work, and thanks to my... partner here, I can't really abandon my duties. However, if you could provide me with some assistance, we can together test a theory I have. I will need several pounds of bear meat to begin with. The meat needs to be fresh, so I would prefer if the meat came from nearby bears.")
  120. end
  121. function dlg_14_1(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_007.mp3", "", "", 3385211924, 1859135719, Spawn)
  125. AddConversationOption(conversation, "Okay, so, feed this to a kobold, and it will suddenly follow me around? Are you sure about this?", "dlg_14_2")
  126. AddConversationOption(conversation, "I'm not sure I feel like hand-feeding kobolds at the moment. Farewell.")
  127. StartConversation(conversation, NPC, Spawn, "The food is enchanted to make the kobolds open to suggestion, and should make them follow your commands without question. Once a kobold has eaten the food, I want you to try to get him to attack and kill his own packmates. If he will do that, then I will know that I have complete control over the creature, and I will consider the experiment a success.")
  128. end
  129. function dlg_14_2(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_008.mp3", "", "", 1081612079, 3658293484, Spawn)
  133. AddConversationOption(conversation, "I see. Well then, I will return and let you know how things went.", "dlg_14_3")
  134. StartConversation(conversation, NPC, Spawn, "While I have no reason to question my own magic craft, I don't know how well the enchantment will work on what is essentially a simple creature. It might just go primal and attack everything nearby, or might just run off to the hills. I wouldn't attempt walking too far from the camp this time, as I don't know how long the enchantment will last.")
  135. end
  136. function dlg_15_1(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_009.mp3", "", "", 2505068723, 2862902650, Spawn)
  140. AddConversationOption(conversation, "Err... thanks, I guess.", "dlg_15_2")
  141. StartConversation(conversation, NPC, Spawn, "So it worked then? Not that I had any doubt in my theory, but nonetheless I am glad to hear that it went as I expected. I will work on enhancing the enchantment further, but I can do that on my own. In the meantime, you served me well, and you can be proud of yourself for that. You may go now.")
  142. end
  143. function dlg_23_1(NPC, Spawn)
  144. FaceTarget(NPC, Spawn)
  145. conversation = CreateConversation()
  146. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  147. StartConversation(conversation, NPC, Spawn, "I see – Hulis is being a good little pet. Sending me some help when he knows I have no need of it, but just for my own convenience. Well, I guess since you are here, I can put you to some good. I’ve had just about enough of all of this menial work anyway.")
  148. end
  149. function dlg_23_2(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_001.mp3", "", "", 4232138815, 4269349384, Spawn)
  153. AddConversationOption(conversation, "Is that so? And what would you rather be doing then, given the chance?", "dlg_23_3")
  154. AddConversationOption(conversation, "Well, this is the job you were given. Farewell.")
  155. StartConversation(conversation, NPC, Spawn, "Collecting samples. A coercer of my talents is sent to Faydwer to collect samples for magical research. This is work that should be relegated to students or apprentices. My abilities have far more practical and advantageous applications.")
  156. end
  157. function dlg_23_3(NPC, Spawn)
  158. FaceTarget(NPC, Spawn)
  159. conversation = CreateConversation()
  160. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_002.mp3", "", "", 201730222, 3203333132, Spawn)
  161. AddConversationOption(conversation, "So I take it that you have a plan, then?", "dlg_23_4")
  162. AddConversationOption(conversation, "That may be true, but that's not your choice to make. Good luck with your work. Goodbye.")
  163. StartConversation(conversation, NPC, Spawn, "Well, I see the need for study. But why would we be picking flowers and collecting stones when we could be instead learning more about the lesser races and creatures that now inhabit this land. Who they are, what they live like... what their weaknesses are. This information would be far more useful to the Teir'Dal than the latent magic properties of flower petals.")
  164. end
  165. function dlg_23_4(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. conversation = CreateConversation()
  168. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_003.mp3", "", "", 1922846233, 313729102, Spawn)
  169. AddConversationOption(conversation, "Sounds interesting. I might be willing to help, if there is pay involved. What is it you are proposing?", "dlg_23_5")
  170. AddConversationOption(conversation, "I'm not here to do your dirty work. Good day to you.")
  171. StartConversation(conversation, NPC, Spawn, "Indeed I do, but I will need help to execute it. You see, I still have my assigned work, and thanks to my... partner here, I can't really abandon my duties. However, if you could provide me with some assistance, we can together test a theory I have. I will need several pounds of bear meat to begin with. The meat needs to be fresh, so I would prefer if the meat came from nearby bears.")
  172. end
  173. function dlg_23_5(NPC, Spawn)
  174. FaceTarget(NPC, Spawn)
  175. conversation = CreateConversation()
  176. PlayFlavor(NPC, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_004.mp3", "", "", 1310097835, 2111544733, Spawn)
  177. AddConversationOption(conversation, "I'm sure that I can. I'll gather the meat and return soon.", "dlg_23_6")
  178. StartConversation(conversation, NPC, Spawn, "I could not explain the details of exactly what I am doing to the likes of you, for I doubt you would understand it. The only parts important to you are the task, and the result. Can you handle that?")
  179. end
  180. function MoreBait(NPC, Spawn)
  181. FaceTarget(NPC, Spawn)
  182. conversation = CreateConversation()
  183. SummonItem(Spawn, TerratrodderChuck, 1)
  184. AddConversationOption(conversation, "I'll keep that in mind. Farewell.")
  185. StartConversation(conversation, NPC, Spawn, "I thought you might, so I kept some here with me for that eventuality. Now be more careful with this bowl. I do not have much more.")
  186. end
  187. function GiveForTheDogs(NPC, Spawn)
  188. OfferQuest(NPC, Spawn, ForTheDogs)
  189. end
  190. function GiveAMindOfMyOwn(NPC, Spawn)
  191. OfferQuest(NPC, Spawn, AMindOfMyOwn)
  192. end