SselnylDoZyth.lua 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. --[[
  2. Script Name : SpawnScripts/Darklight/SselnylDoZyth.lua
  3. Script Purpose : Sselnyl Do'Zyth <Mayor>
  4. Script Author : Cynnar
  5. Script Date : 2015.08.17
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ProwlerAnnoyance = 128
  9. local NoUndeadGoesUnturned = 134
  10. local ThexianTaint = 135
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, NoUndeadGoesUnturned)
  13. ProvidesQuest(NPC, ThexianTaint)
  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 not HasCompletedQuest(Spawn, ProwlerAnnoyance) then
  22. StartConversation(conversation, NPC, Spawn, "Leave me be!")
  23. elseif not HasCompletedQuest(Spawn, ThexianTaint) and GetQuestStep(Spawn, ThexianTaint) == 3 then
  24. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  25. StartConversation(conversation, NPC, Spawn, "Speak with Ginwyss D'Arkenett at T'Vatar Post at once.")
  26. elseif not HasCompletedQuest(Spawn, ThexianTaint) and GetQuestStep(Spawn, ThexianTaint) == 1 then
  27. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl010.mp3", "", "", 3344473082, 763160610, Spawn)
  28. AddConversationOption(conversation, "I am about to embark.")
  29. StartConversation(conversation, NPC, Spawn, "Why haven't you completed your mission yet?")
  30. elseif HasCompletedQuest(Spawn, NoUndeadGoesUnturned) and not HasCompletedQuest(Spawn, ThexianTaint) then
  31. ChatQuest_1_5(NPC, Spawn)
  32. elseif not HasCompletedQuest(Spawn, NoUndeadGoesUnturned) and GetQuestStep(Spawn, NoUndeadGoesUnturned) == 2 then
  33. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl006.mp3", "", "", 2949301327, 3473298486, Spawn)
  34. AddConversationOption(conversation, "I have the remains here.", "ChatQuest_1_5")
  35. StartConversation(conversation, NPC, Spawn, "Did you find them?")
  36. elseif not HasCompletedQuest(Spawn, NoUndeadGoesUnturned) and GetQuestStep(Spawn, NoUndeadGoesUnturned) == 1 then
  37. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl006.mp3", "", "", 2949301327, 3473298486, Spawn)
  38. AddConversationOption(conversation, "Not yet...", "ChatQuest_1_4")
  39. StartConversation(conversation, NPC, Spawn, "Did you find them?")
  40. elseif not HasQuest(Spawn, NoUndeadGoesUnturned) and not HasCompletedQuest(Spawn, NoUndeadGoesUnturned) then
  41. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl001.mp3", "", "", 2870732726, 2209042878, Spawn)
  42. AddConversationOption(conversation, "I have been working hard.", "ChatQuest_1_1")
  43. StartConversation(conversation, NPC, Spawn, "Ah, " .. GetName(Spawn) .. ". Your name has made the rounds.")
  44. elseif HasCompletedQuest(Spawn, NoUndeadGoesUnturned) and HasCompletedQuest(Spawn, ThexianTaint) then
  45. PlayFlavor(NPC, "", "", "bow", 0, 0, Spawn)
  46. StartConversation(conversation, NPC, Spawn, "Your help has been much appreciated!")
  47. end
  48. end
  49. function ChatQuest_1_1(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl002.mp3", "", "", 1862425876, 99259733, Spawn)
  53. AddConversationOption(conversation, "What work is that?", "ChatQuest_1_2")
  54. StartConversation(conversation, NPC, Spawn, "I am well aware of this. You have done much for Hate's Envy, and we are quite thankful. I have additional work for you, however.")
  55. end
  56. function ChatQuest_1_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl003.mp3", "", "smirk", 1447042899, 779642311, Spawn)
  60. AddConversationOption(conversation, "Go on.", "ChatQuest_1_3")
  61. StartConversation(conversation, NPC, Spawn, "Jhana has mentioned your work in clearing the path to the Thexian burial chamber. Inside I have reason to believe a once powerful Thexian Dragoon-General has been laid to rest there.")
  62. end
  63. function ChatQuest_1_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl004.mp3", "", "", 3800789963, 3276371466, Spawn)
  67. AddConversationOption(conversation, "I'll return with the remains at once.", "QuestOffer_NoUndeadGoesUnturned")
  68. AddConversationOption(conversation, "I cannont assist at this time.")
  69. StartConversation(conversation, NPC, Spawn, "I want you to enter the cave and bring me the remains of the fallen Dragoon-General. Once I have the remains, we can put the next part of my plan in motion.")
  70. end
  71. function ChatQuest_1_4(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl008.mp3", "", "", 107641320, 435607180, Spawn)
  75. AddConversationOption(conversation, "I'll return soon.")
  76. StartConversation(conversation, NPC, Spawn, "Do not return until you have found the remains of the Thexian Dragoon-General.")
  77. end
  78. function ChatQuest_1_5(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. SetStepComplete(Spawn, NoUndeadGoesUnturned, 2)
  82. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl007.mp3", "", "", 1506804081, 4126548148, Spawn)
  83. AddConversationOption(conversation, "What do you intend to do with them?", "QuestChat_1_1")
  84. StartConversation(conversation, NPC, Spawn, "Well... Aren't these just lovely? It's quite remarkable how a once fierce warrior has now been reduced to mere scraps. We shall find use for them, however.")
  85. end
  86. function QuestOffer_NoUndeadGoesUnturned(NPC, Spawn)
  87. OfferQuest(NPC, Spawn, NoUndeadGoesUnturned)
  88. end
  89. function QuestChat_1_1(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl009.mp3", "", "", 2231372796, 2001694414, Spawn)
  93. AddConversationOption(conversation, "What can you tell me about the Thexians?", "QuestChat_1_2")
  94. StartConversation(conversation, NPC, Spawn, "All in good time, " .. GetName(Spawn) .. ". In short, we're going to use them against the Thexians found near the Wellspring of Nightmares. They were reported to us by the Dread Guard. I would like to take them out before the Dread Guard have a chance to get to them to earn a bit of favor with Cristanos.")
  95. end
  96. function QuestChat_1_2(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl012.mp3", "", "", 739520586, 1273216737, Spawn)
  100. AddConversationOption(conversation, "Go on.", "QuestChat_1_3")
  101. StartConversation(conversation, NPC, Spawn, "They are but insects that bite in the night, " .. GetName(Spawn) .. ". The Thexians do not recognize Cristanos as the ruler of Neriak and seek to steal the throne. They creep into the Darklight Wood and attempt to make it their own. They will fail. For now, they are attempting to harness the spirits trapped within the Wellspring of Nightmares to do their bidding.")
  102. end
  103. function QuestChat_1_3(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl013.mp3", "", "", 3807512050, 1047350728, Spawn)
  107. AddConversationOption(conversation, "How will I do that?", "QuestChat_1_4")
  108. StartConversation(conversation, NPC, Spawn, "By placing a vexing curse on the remains you gathered for me, I intend for you to disrupt the Thexians' attempt to control the spirits and turn them against our enemy.")
  109. end
  110. function QuestChat_1_4(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl014.mp3", "", "", 1429242287, 2342006533, Spawn)
  114. AddConversationOption(conversation, "I will do this at once!", "QuestChat_1_5")
  115. StartConversation(conversation, NPC, Spawn, "Your mission is comprised of two parts. First, you must exterminate a number of the spirits that the Thexians have already tainted. Second, you must take the vex-runed remains and toss them into the Wellspring of Nightmares. Doing this will befoul their ritual and cause them great harm.")
  116. end
  117. function QuestChat_1_5(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl015.mp3", "", "", 2064460761, 4053677356, Spawn)
  121. AddConversationOption(conversation, "I will not fail you.", "QuestOffer_ThexianTaint")
  122. AddConversationOption(conversation, "I must decline.")
  123. StartConversation(conversation, NPC, Spawn, "Once you've put an end to the ritual, bring news of your success to Ginwyss D'Arkenett at T'Vatar Post. She will be quite happy to receive it. You can get to the Wellspring of Nightmares and the Thexians by taking the road east out of Hate's Envy. Following that road further will lead you to T'Vatar Post.")
  124. end
  125. function QuestOffer_ThexianTaint(NPC, Spawn)
  126. OfferQuest(NPC, Spawn, ThexianTaint)
  127. end