FileylAlyylharil.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. --[[
  2. Script Name : SpawnScripts/Darklight/FileylAlyylharil.lua
  3. Script Purpose : Fileyl Alyylharil
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. Arasai = 17
  9. QUEST_1 = 80
  10. QUEST_2 = 81
  11. QUEST_3 = 82
  12. QUEST_4 = 83
  13. function spawn(NPC)
  14. ProvidesQuest(NPC, QUEST_1)
  15. ProvidesQuest(NPC, QUEST_2)
  16. ProvidesQuest(NPC, QUEST_3)
  17. ProvidesQuest(NPC, QUEST_4)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. conversation = CreateConversation()
  25. if HasCompletedQuest(Spawn, QUEST_1) then
  26. if HasCompletedQuest(Spawn, QUEST_2) then
  27. if HasCompletedQuest(Spawn, QUEST_3) then
  28. if HasCompletedQuest(Spawn, QUEST_4) then
  29. HelloAgain(NPC, Spawn)
  30. elseif HasQuest(Spawn, QUEST_4) then
  31. HelloAgain(NPC, Spawn)
  32. else
  33. LeavingHateAnytimeSoon(NPC, Spawn, conversation)
  34. end
  35. elseif HasQuest(Spawn, QUEST_3) then
  36. TalkToMeLater(NPC, Spawn)
  37. else
  38. DidYouCollectWeeds(NPC, Spawn, conversation)
  39. end
  40. elseif HasQuest(Spawn, QUEST_2) then
  41. DidYouCollectWeeds(NPC, Spawn, conversation)
  42. else
  43. DoYouHaveThePelts(NPC, Spawn, conversation)
  44. end
  45. elseif HasQuest(Spawn, QUEST_1) then
  46. DoYouHaveThePelts(NPC, Spawn, conversation)
  47. else
  48. if GetRace(Spawn) == Arasai then
  49. OneOfYou(NPC, Spawn, conversation)
  50. else
  51. NewToHatesEnvy(NPC, Spawn, conversation)
  52. end
  53. end
  54. --[[
  55. if convo==8 then
  56. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl100.mp3", "", "", 197775186, 684715500, Spawn)
  57. AddConversationOption(conversation, "I found this pelt that you might be interested in.", "dlg_8_1")
  58. AddConversationOption(conversation, "Nope.")
  59. StartConversation(conversation, NPC, Spawn, "I guess you'll be leaving soon, eh?")
  60. end
  61. if convo==9 then
  62. end
  63. if convo==11 then
  64. end
  65. if convo==13 then
  66. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl004.mp3", "", "", 3186146596, 1953587154, Spawn)
  67. AddConversationOption(conversation, "Yes.", "dlg_13_1")
  68. StartConversation(conversation, NPC, Spawn, "Do you have the pelts?")
  69. end
  70. if convo==16 then
  71. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl008.mp3", "", "", 3278232788, 3073634729, Spawn)
  72. AddConversationOption(conversation, "Yes, I did. Here you go.", "dlg_16_1")
  73. StartConversation(conversation, NPC, Spawn, "Did you collect the weeds?")
  74. end
  75. if convo==19 then
  76. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl011.mp3", "", "", 1920696283, 4232876553, Spawn)
  77. AddConversationOption(conversation, "Maybe, why?", "dlg_19_1")
  78. StartConversation(conversation, NPC, Spawn, "Hello again. Leaving Hate's Envy anytime soon?")
  79. end--]]
  80. end
  81. ---------------------------------------------------------------------------------------------
  82. -- QUEST 1
  83. ---------------------------------------------------------------------------------------------
  84. function NewToHatesEnvy(NPC, Spawn, conversation)
  85. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl000.mp3", "", "", 3623847893, 3999510628, Spawn)
  86. AddConversationOption(conversation, "Yes.", "dlg_3_1")
  87. StartConversation(conversation, NPC, Spawn, "Hello. New to Hate's Envy?")
  88. end
  89. function dlg_3_1(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl001.mp3", "", "", 3801739584, 171673650, Spawn)
  93. AddConversationOption(conversation, "What work do you have?", "dlg_3_2")
  94. StartConversation(conversation, NPC, Spawn, "I thought so, you had that look about you. I'm not sure if you're familiar with the way things work around here, but in general Hate's Envy tends to attract people looking for work. Immigration laws in Neriak have relaxed somewhat lately, and Hate's Envy has reaped the benefits of that. For someone like me, that means a large labor force. Which is, I imagine, why you're speaking with me--for work.")
  95. end
  96. function dlg_3_2(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl002.mp3", "", "", 648997851, 4053921867, Spawn)
  100. AddConversationOption(conversation, "All right.", "OfferQuest1")
  101. AddConversationOption(conversation, "I'm not interested.")
  102. StartConversation(conversation, NPC, Spawn, "I don't think it matters much to you. It will earn you money, that's what's important. I've got it on good authority that the mayor is looking to clear out the dusk prowlers. Now, this is good, because they've been nothing but trouble since they got here. But it's also bad, because the more of them there are around the easier it is to get their pelts. Without pelts, I don't make any money. Thus, I need you to go collect some pelts for me.")
  103. end
  104. function OneOfYou(NPC, Spawn, conversation)
  105. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl000_arasai.mp3", "", "", 2813168737, 3167084012, Spawn)
  106. AddConversationOption(conversation, "One of me?", "dlg_2_1")
  107. StartConversation(conversation, NPC, Spawn, "Ah, it's one of... you.")
  108. end
  109. function dlg_2_1(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl001_arasai.mp3", "", "", 1120312592, 2814949135, Spawn)
  113. AddConversationOption(conversation, "Distaste?", "dlg_2_2")
  114. StartConversation(conversation, NPC, Spawn, "Yes. One of you. One of Cristanos' chosen. You will get special treatment if you travel to Neriak. But don't worry, for each unearned right the Queen drapes about your shoulders, the distaste some have for you will only increase.")
  115. end
  116. function dlg_2_2(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl002_arasai.mp3", "", "", 69953400, 3339174619, Spawn)
  120. AddConversationOption(conversation, "Very well.", "dlg_2_3")
  121. AddConversationOption(conversation, "I am no slave.")
  122. StartConversation(conversation, NPC, Spawn, "You are not Teir'Dal, you are but our slave. Keeping that in mind at all times will make your time spent in our company all the easier. Forget it and, well, there are some who need little excuse to start trouble, especially with one of you.")
  123. end
  124. function dlg_2_3(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl003_arasai.mp3", "", "", 2450188832, 1514540923, Spawn)
  128. AddConversationOption(conversation, "What work?", "OfferQuest1")
  129. StartConversation(conversation, NPC, Spawn, "And talking like that will only hasten your demise. If you're looking for acceptance, go find Queen Cristanos. If you're looking for work, then you'll find it here.")
  130. end
  131. function OfferQuest1(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. OfferQuest(NPC, Spawn, QUEST_1)
  134. end
  135. function DoYouHaveThePelts(NPC, Spawn, conversation)
  136. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl004.mp3", "", "", 3186146596, 1953587154, Spawn)
  137. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  138. AddConversationOption(conversation, "Yes.", "dlg_7_1")
  139. else
  140. AddConversationOption(conversation, "Not yet.")
  141. end
  142. StartConversation(conversation, NPC, Spawn, "Do you have the pelts?")
  143. end
  144. function dlg_7_1(NPC, Spawn)
  145. if HasQuest(Spawn, QUEST_1) then
  146. SetStepComplete(Spawn, QUEST_1, 2)
  147. end
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl005.mp3", "", "", 2096271371, 3465768991, Spawn)
  151. AddConversationOption(conversation, "What work?", "dlg_7_2")
  152. StartConversation(conversation, NPC, Spawn, "Perfect. These are fine. As promised here's your payment. Keep working for me and I'll be sure to put in a good word for you with my political contacts in Neriak. I do have more work if you're interested.")
  153. end
  154. -------------------------------------------------------------------------------------
  155. -- QUEST 2
  156. --------------------------------------------------------------------------------------
  157. function dlg_7_2(NPC, Spawn)
  158. FaceTarget(NPC, Spawn)
  159. conversation = CreateConversation()
  160. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl006.mp3", "", "", 3456710239, 1509006332, Spawn)
  161. AddConversationOption(conversation, "I can do that.", "OfferQuest2")
  162. AddConversationOption(conversation, "This doesn't sound like something I'd be interested in.")
  163. StartConversation(conversation, NPC, Spawn, "I use the Malkaen Weed that grows around here as part of a curing process. The process takes a very large amount of the weed, though. Fortunately, nobody ever sells the stuff since it's lying around everywhere. As such, it's dirt cheap or free, you just have to have someone to collect it. Which is what I'd like you to do.")
  164. end
  165. function OfferQuest2(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. OfferQuest(NPC, Spawn, QUEST_2)
  168. end
  169. function DidYouCollectWeeds(NPC, Spawn, conversation)
  170. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl008.mp3", "", "", 3278232788, 3073634729, Spawn)
  171. if (HasCompletedQuest(Spawn, QUEST_2) and not HasCompletedQuest(Spawn, QUEST_3)) or (HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2) then
  172. AddConversationOption(conversation, "Yes, I did. Here you go.", "dlg_9_1")
  173. else
  174. AddConversationOption(conversation, "Not yet.")
  175. end
  176. StartConversation(conversation, NPC, Spawn, "Did you collect the weeds?")
  177. end
  178. function dlg_9_1(NPC, Spawn)
  179. if HasQuest(Spawn, QUEST_2) then
  180. SetStepComplete(Spawn, QUEST_2, 2)
  181. end
  182. FaceTarget(NPC, Spawn)
  183. conversation = CreateConversation()
  184. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl009.mp3", "", "", 3832374147, 290832441, Spawn)
  185. AddConversationOption(conversation, "I can bring it to her.", "OfferQuest3")
  186. AddConversationOption(conversation, "I do mind, actually.")
  187. StartConversation(conversation, NPC, Spawn, "Good, good. I can get to work on more orders now. On that note, I've completed an order and need it delivered. Do you mind running it to the customer for me? The order is for Danya Halfmoon, she's usually outside at her anvil, just west of here. Yah, I'd do it but... well she's been quite annoying lately.")
  188. end
  189. ---------------------------------------------------------------------------------------------
  190. -- QUEST 3
  191. ---------------------------------------------------------------------------------------------
  192. function OfferQuest3(NPC, Spawn)
  193. FaceTarget(NPC, Spawn)
  194. OfferQuest(NPC, Spawn, QUEST_3)
  195. end
  196. function TalkToMeLater(NPC, Spawn)
  197. FaceTarget(NPC, Spawn)
  198. Say(NPC, "Talk to me later, I'm busy right now.", Spawn)
  199. end
  200. ---------------------------------------------------------------------------------------------
  201. -- QUEST 4
  202. ---------------------------------------------------------------------------------------------
  203. function LeavingHateAnytimeSoon(NPC, Spawn, conversation)
  204. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl011.mp3", "", "", 1920696283, 4232876553, Spawn)
  205. AddConversationOption(conversation, "Maybe, why?", "dlg_11_1")
  206. StartConversation(conversation, NPC, Spawn, "Hello again. Leaving Hate's Envy anytime soon?")
  207. end
  208. function dlg_11_1(NPC, Spawn)
  209. FaceTarget(NPC, Spawn)
  210. conversation = CreateConversation()
  211. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl012.mp3", "", "", 245191252, 630199436, Spawn)
  212. AddConversationOption(conversation, "I'd be interested.", "dlg_11_2")
  213. StartConversation(conversation, NPC, Spawn, "I have another delivery for you. This time the order needs to be delivered west of T'Vatar Post, which is north of here. Interested?")
  214. end
  215. function dlg_11_2(NPC, Spawn)
  216. FaceTarget(NPC, Spawn)
  217. conversation = CreateConversation()
  218. PlayFlavor(NPC, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl013.mp3", "", "", 240477682, 62641979, Spawn)
  219. AddConversationOption(conversation, "I understand.", "OfferQuest4")
  220. AddConversationOption(conversation, "I'd rather not.")
  221. StartConversation(conversation, NPC, Spawn, "It's for Dirzdia T'Zauvirr. She asked for it to be delivered near the southern bridge that crosses the Searing Tendril. That's the river that flows from the Smoldering Lake. To get there, follow the path out of Hate's Envy. When you hit T'Vatar Post, go west. When the fork splits, follow it left.")
  222. end
  223. function OfferQuest4(NPC, Spawn)
  224. FaceTarget(NPC, Spawn)
  225. OfferQuest(NPC, Spawn, QUEST_4)
  226. end
  227. function HelloAgain(NPC, Spawn)
  228. FaceTarget(NPC, Spawn)
  229. Say(NPC, "Hello Again.", Spawn)
  230. end