ArozikSkyKi.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/ArozikSkyKi.lua
  3. Script Purpose : Arozik Sky'Ki <Chrykori Secondary>
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_FROM_CONZUK = 114
  9. QUEST_FROM_MAKKI = 120
  10. QUEST_1 = 126
  11. QUEST_2 = 127
  12. QUEST_3 = 128
  13. QUEST_4 = 129
  14. QUEST_5 = 130
  15. function spawn(NPC)
  16. ProvidesQuest(NPC, QUEST_1)
  17. ProvidesQuest(NPC, QUEST_2)
  18. ProvidesQuest(NPC, QUEST_3)
  19. ProvidesQuest(NPC, QUEST_4)
  20. ProvidesQuest(NPC, QUEST_5)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. if HasQuest(Spawn, QUEST_FROM_CONZUK) and GetQuestStep(Spawn, QUEST_FROM_CONZUK) == 1 then
  29. AddConversationOption(conversation, "Primary Zum'Ha directed me to report to you.", "dlg_42_1")
  30. end
  31. if HasQuest(Spawn, QUEST_FROM_MAKKI) and GetQuestStep(Spawn, QUEST_FROM_MAKKI) == 1 then
  32. AddConversationOption(conversation, "Tertiary Mak'Ki told me to give you this. It will rust metal with ease.", "dlg_33_1")
  33. end
  34. if HasCompletedQuest(Spawn, QUEST_1) then
  35. if HasCompletedQuest(Spawn, QUEST_2) then
  36. if HasCompletedQuest(Spawn, QUEST_3) then
  37. if HasCompletedQuest(Spawn, QUEST_4) then
  38. if HasCompletedQuest(Spawn, QUEST_5) then
  39. Say(NPC, "All is done with me.", Spawn)
  40. elseif HasQuest(Spawn, QUEST_5) then
  41. Say(NPC, "All is done with me.", Spawn)
  42. else
  43. DidYouGetGlyph(NPC, Spawn, conversation)
  44. end
  45. elseif HasQuest(Spawn, QUEST_4) then
  46. DidYouGetGlyph(NPC, Spawn, conversation)
  47. else
  48. DidYouGetTheirOrders(NPC, Spawn, conversation)
  49. end
  50. elseif HasQuest(Spawn, QUEST_3) then
  51. DidYouGetTheirOrders(NPC, Spawn, conversation)
  52. else
  53. DidYouFindHim(NPC, Spawn, conversation)
  54. end
  55. elseif HasQuest(Spawn, QUEST_2) then
  56. DidYouFindHim(NPC, Spawn, conversation)
  57. else
  58. DidYouRetrieveGlands(NPC, Spawn, conversation)
  59. end
  60. elseif HasQuest(Spawn, QUEST_1) then
  61. DidYouRetrieveGlands(NPC, Spawn, conversation)
  62. else
  63. IAmASarnakDude(NPC, Spawn, conversation)
  64. end
  65. end
  66. --------------------------------------------------------------------------------------------------
  67. -- QUEST_FROM_CONZUK
  68. --------------------------------------------------------------------------------------------------
  69. function dlg_42_1(NPC, Spawn)
  70. SetStepComplete(Spawn, QUEST_FROM_CONZUK, 1)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki001.mp3", "", "", 2731024115, 325818484, Spawn)
  74. if not HasCompletedQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_1) then
  75. AddConversationOption(conversation, "What would you have me do?", "dlg_33_2")
  76. end
  77. AddConversationOption(conversation, "I must be going.", "dlg_42_2")
  78. StartConversation(conversation, NPC, Spawn, "Ah, good. I could use the extra help. The spiroc are tireless troubles.")
  79. end
  80. --------------------------------------------------------------------------------------------------
  81. -- QUEST_FROM_MAKKI
  82. --------------------------------------------------------------------------------------------------
  83. function dlg_33_1(NPC, Spawn)
  84. SetStepComplete(Spawn, QUEST_FROM_MAKKI, 1)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki004.mp3", "", "", 2310635873, 1729195062, Spawn)
  88. if not HasCompletedQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_1) then
  89. AddConversationOption(conversation, "Do you have any tasks for me?", "dlg_33_2")
  90. end
  91. AddConversationOption(conversation, "You're welcome.")
  92. StartConversation(conversation, NPC, Spawn, "Interesting... I have someone who can put this to good use. Thank you.")
  93. end
  94. --------------------------------------------------------------------------------------------------
  95. -- QUEST 1
  96. --------------------------------------------------------------------------------------------------
  97. function IAmASarnakDude(NPC, Spawn, conversation)
  98. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki000.mp3", "", "", 1029312588, 3834902833, Spawn)
  99. AddConversationOption(conversation, "Do you have any tasks for me?", "dlg_33_2")
  100. AddConversationOption(conversation, "I must be going.")
  101. StartConversation(conversation, NPC, Spawn, "I am Secondary Arozik Sky'Ki. It is my duty to watch over Trythec Loft. Think twice before considering causing any trouble. What brings you here?")
  102. end
  103. function dlg_33_2(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki002.mp3", "", "", 2992171556, 1387787250, Spawn)
  107. AddConversationOption(conversation, "All right.", "OfferQuest1")
  108. StartConversation(conversation, NPC, Spawn, "Tasks, yes. I have found that the Haoaerans coat the tips of their weapons with the venom of the skittering monitors found in the area. While they haven't refined the process, it is still woefully effective. I've seen soldiers die from wounds that should barely keep them in bed. We've been working on anti-venom, but we need more samples. I need you to go and collect some of their poison glands for me.")
  109. end
  110. function OfferQuest1(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. OfferQuest(NPC, Spawn, QUEST_1)
  113. end
  114. function DidYouRetrieveGlands(NPC, Spawn, conversation)
  115. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki006.mp3", "", "", 2299189023, 2896390985, Spawn)
  116. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  117. AddConversationOption(conversation, "Yes.", "dlg_37_1")
  118. else
  119. AddConversationOption(conversation, "Not yet.")
  120. end
  121. StartConversation(conversation, NPC, Spawn, "Did you retrieve the poison glands? I have valuable soldiers dying from flesh wounds as we speak.")
  122. end
  123. function dlg_37_1(NPC, Spawn)
  124. if HasQuest(Spawn, QUEST_1) then
  125. SetStepComplete(Spawn, QUEST_1, 2)
  126. end
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki007.mp3", "", "", 3008546705, 626017614, Spawn)
  130. AddConversationOption(conversation, "Is there anything else I can do?", "dlg_37_2")
  131. StartConversation(conversation, NPC, Spawn, "Perfect, we appreciate this, as I am sure you will appreciate it if you ever find one of your wounds stinking of their infection.")
  132. end
  133. --------------------------------------------------------------------------------------------------------------------------------
  134. -- QUEST 2
  135. --------------------------------------------------------------------------------------------------------------------------------
  136. function dlg_37_2(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki008.mp3", "", "", 2472992114, 554256464, Spawn)
  140. AddConversationOption(conversation, "I will go look for him.", "OfferQuest2")
  141. StartConversation(conversation, NPC, Spawn, "I believe I can use you again, yes. I've been waiting for a scout to report back. As time drags on, however, I'm beginning to think something may have happened to him. Travel into the jungle area to the south and see if you can find him. Should you find only his remains, bring back his log book; it would help me compensate for his loss.")
  142. end
  143. function OfferQuest2(NPC, Spawn)
  144. FaceTarget(NPC, Spawn)
  145. OfferQuest(NPC, Spawn, QUEST_2)
  146. end
  147. function DidYouFindHim(NPC, Spawn, conversation)
  148. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki010.mp3", "", "", 525384220, 185678564, Spawn)
  149. if (HasCompletedQuest(Spawn, QUEST_2) and not HasCompletedQuest(Spawn, QUEST_3)) or (HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2) then
  150. AddConversationOption(conversation, "Only the leftover pieces, but here is his journal.", "dlg_43_1")
  151. else
  152. AddConversationOption(conversation, "Not yet.")
  153. end
  154. StartConversation(conversation, NPC, Spawn, "Well, what do you have to report? Did you find him?")
  155. end
  156. function dlg_43_1(NPC, Spawn)
  157. if HasQuest(Spawn, QUEST_2) then
  158. SetStepComplete(Spawn, QUEST_2, 2)
  159. end
  160. FaceTarget(NPC, Spawn)
  161. conversation = CreateConversation()
  162. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki011.mp3", "", "", 2921045796, 192965595, Spawn)
  163. AddConversationOption(conversation, "I will wait.", "dlg_42_2")
  164. StartConversation(conversation, NPC, Spawn, "Unfortunate. He was a good soldier, and we will not easily replace him. Give me a moment to read over his notes. We may still take something from his loss...")
  165. end
  166. ---------------------------------------------------------------------------------------------------------------------
  167. -- QUEST 3
  168. ---------------------------------------------------------------------------------------------------------------------
  169. function dlg_42_2(NPC, Spawn)
  170. FaceTarget(NPC, Spawn)
  171. conversation = CreateConversation()
  172. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki012.mp3", "", "", 3273605735, 2364983222, Spawn)
  173. AddConversationOption(conversation, "Yes.", "OfferQuest3")
  174. StartConversation(conversation, NPC, Spawn, "Interesting... he believes the Haoaerans are planning something big, but wasn't able to obtain a copy of their orders. Some of them went into the jungled area for a meeting, but he apparently couldn't get close enough to observe them. " .. GetName(Spawn) .. ". I need you to travel back into the jungle and obtain orders from one of the Haoaerans. We must know what they are plotting.")
  175. end
  176. function OfferQuest3(NPC, Spawn)
  177. FaceTarget(NPC, Spawn)
  178. OfferQuest(NPC, Spawn, QUEST_3)
  179. end
  180. function DidYouGetTheirOrders(NPC, Spawn, conversation)
  181. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki014.mp3", "", "", 2065400668, 430864702, Spawn)
  182. if (HasCompletedQuest(Spawn, QUEST_3) and not HasCompletedQuest(Spawn, QUEST_4)) or (HasQuest(Spawn, QUEST_3) and GetQuestStep(Spawn, QUEST_3) == 2) then
  183. AddConversationOption(conversation, "Yes.", "GotOrders")
  184. else
  185. AddConversationOption(conversation, "Not yet.")
  186. end
  187. StartConversation(conversation, NPC, Spawn, "Did you get their orders?")
  188. end
  189. function GotOrders(NPC, Spawn)
  190. if HasQuest(Spawn, QUEST_3) then
  191. SetStepComplete(Spawn, QUEST_3, 2)
  192. end
  193. FaceTarget(NPC, Spawn)
  194. conversation = CreateConversation()
  195. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki015.mp3", "", "", 1539951072, 947658939, Spawn)
  196. AddConversationOption(conversation, "Ok.", "dlg_0_2")
  197. StartConversation(conversation, NPC, Spawn, "Good. Give me a moment to read over these--gah, nevermind. They're encoded. Mm... my scout mentioned that this might be an issue. Wait a minute as I look it up.")
  198. end
  199. --------------------------------------------------------------------------------------------------------------------------------------------
  200. -- QUEST 4
  201. --------------------------------------------------------------------------------------------------------------------------------------------
  202. function dlg_0_2(NPC, Spawn)
  203. FaceTarget(NPC, Spawn)
  204. conversation = CreateConversation()
  205. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki016.mp3", "", "", 741363640, 1740435446, Spawn)
  206. AddConversationOption(conversation, "I can do that.", "OfferQuest4")
  207. StartConversation(conversation, NPC, Spawn, "Ok. The decryption key we need to read this should be carried by a Haoaeran turf-hunter. They gather near here, just to the southwest. Retrieve a decoder glyph from one of them, and then we should be able to figure out what is going on.")
  208. end
  209. function OfferQuest4(NPC, Spawn)
  210. FaceTarget(NPC, Spawn)
  211. OfferQuest(NPC, Spawn, QUEST_4)
  212. end
  213. function DidYouGetGlyph(NPC, Spawn, conversation)
  214. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki018.mp3", "", "", 1968421684, 1745825812, Spawn)
  215. if (HasCompletedQuest(Spawn, QUEST_4) and not HasCompletedQuest(Spawn, QUEST_5)) or (HasQuest(Spawn, QUEST_4) and GetQuestStep(Spawn, QUEST_4) == 2) then
  216. AddConversationOption(conversation, "Yes, I did.", "dlg_2_1")
  217. else
  218. AddConversationOption(conversation, "Not yet.")
  219. end
  220. StartConversation(conversation, NPC, Spawn, "Did you get the glyph?")
  221. end
  222. function dlg_2_1(NPC, Spawn)
  223. if HasQuest(Spawn, QUEST_4) then
  224. SetStepComplete(Spawn, QUEST_4, 2)
  225. end
  226. FaceTarget(NPC, Spawn)
  227. conversation = CreateConversation()
  228. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki019.mp3", "", "", 1167277602, 213920823, Spawn)
  229. AddConversationOption(conversation, "All right.", "dlg_2_2")
  230. StartConversation(conversation, NPC, Spawn, "Good work. Decoding this shouldn't take very long now that we have this.")
  231. end
  232. --------------------------------------------------------------------------------------------------------------------------------------------
  233. -- QUEST 5
  234. --------------------------------------------------------------------------------------------------------------------------------------------
  235. function dlg_2_2(NPC, Spawn)
  236. FaceTarget(NPC, Spawn)
  237. conversation = CreateConversation()
  238. PlayFlavor(NPC, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki020.mp3", "", "", 2912129697, 3874774240, Spawn)
  239. AddConversationOption(conversation, "I will go find him.", "OfferQuest5")
  240. StartConversation(conversation, NPC, Spawn, "This isn't good... the Haoaerans are plotting a full-scale attack on Thulwun Station East. I... it may have already happened. I need you to report to Tertiary Dih'Ha. You can find him above Pyrrin Roost, the Haoaeran village to our west. At the western end of Pyrrin Roost there are ladders set up that will enable you to scale the wall up to Thulwun Station East. Climbing these ladders will lead you to Tertiary Dih'Ha.")
  241. end
  242. function OfferQuest5(NPC, Spawn)
  243. FaceTarget(NPC, Spawn)
  244. OfferQuest(NPC, Spawn, QUEST_5)
  245. end