9
3

JhanaDoZyth.lua 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. --[[
  2. Script Name : SpawnScripts/Darklight/JhanaDoZyth.lua
  3. Script Purpose : Jhana Do'Zyth
  4. Script Author : Cynnar
  5. Script Date : 2015.07.15
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local AnAuthorityOnHate = 125
  9. local ProwlerAnnoyance = 128
  10. local AFerociousInconvenience = 129
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, ProwlerAnnoyance)
  13. ProvidesQuest(NPC, AFerociousInconvenience)
  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, AnAuthorityOnHate) and not HasCompletedQuest(Spawn, AnAuthorityOnHate) then
  22. SetStepComplete(Spawn, AnAuthorityOnHate, 1)
  23. end
  24. if HasCompletedQuest(Spawn, AFerociousInconvenience) then
  25. Quest2Chat_3(NPC, Spawn)
  26. elseif HasQuest(Spawn, AFerociousInconvenience) and GetQuestStep(Spawn, AFerociousInconvenience) == 1 then
  27. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana011.mp3", "", "", 3939930942, 3221492064, Spawn)
  28. AddConversationOption(conversation, "I'm still hunting the beast. Where should I look for it?", "Quest2Chat_2")
  29. StartConversation(conversation, NPC, Spawn, "Did you find the pack leader of the dusk prowlers?")
  30. elseif HasQuest(Spawn, AFerociousInconvenience) and GetQuestStep(Spawn, AFerociousInconvenience) == 2 then
  31. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana011.mp3", "", "", 3939930942, 3221492064, Spawn)
  32. AddConversationOption(conversation, "The beast has been slain.", "Quest2Chat_3")
  33. StartConversation(conversation, NPC, Spawn, "Did you find the pack leader of the dusk prowlers?")
  34. elseif HasCompletedQuest(Spawn, ProwlerAnnoyance) and not HasQuest(Spawn, AFerociousInconvenience) and not HasCompletedQuest(Spawn, AFerociousInconvenience) then
  35. Quest2Chat_0(NPC, Spawn)
  36. elseif HasQuest(Spawn, ProwlerAnnoyance) and GetQuestStep(Spawn, ProwlerAnnoyance) == 2 then
  37. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana005.mp3", "", "", 2396106128, 3585430075, Spawn)
  38. AddConversationOption(conversation, "Their numbers have been greatly reduced.", "Quest2Chat_0")
  39. StartConversation(conversation, NPC, Spawn, "Have you removed the dusk prowlers from the area?")
  40. elseif HasQuest(Spawn, ProwlerAnnoyance) and GetQuestStep(Spawn, ProwlerAnnoyance) == 1 then
  41. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana005.mp3", "", "", 2396106128, 3585430075, Spawn)
  42. AddConversationOption(conversation, "Not yet.", "Quest1Chat_1")
  43. StartConversation(conversation, NPC, Spawn, "Have you removed the dusk prowlers from the area?")
  44. elseif not HasCompletedQuest(Spawn, AnAuthorityOnHate) and not HasQuest(Spawn, AnAuthorityOnHate) then
  45. PlayFlavor(NPC, "voiceover/english/neriak/jhana_do_zyth/darklight_wood/quest/hates_envy/qst_jhana_too_low_ee52f282.mp3", "", "", 1579540723, 4221550003, Spawn)
  46. StartConversation(conversation, NPC, Spawn, "Maybe you could help me... if you were a little bit stronger.")
  47. elseif not HasQuest(Spawn, ProwlerAnnoyance) then
  48. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana001.mp3", "", "", 2468334286, 695035654, Spawn)
  49. AddConversationOption(conversation, "What is it you want?", "Quest1Chat_0")
  50. AddConversationOption(conversation, "I seek to serve Neriak in any way I can.", "Quest1Chat_0")
  51. AddConversationOption(conversation, "I cannot help at this time.", "PlayerEmote_no")
  52. StartConversation(conversation, NPC, Spawn, "Ah, the hero of Hate's Envy stands before us! Isn't he quite the specimen, Mother? Pellendra has informed us of your successful efforts to stop the Sablevein menace and the Thexians who were behind it. Now we'd like you to help us.")
  53. end
  54. end
  55. function PlayerEmote_no(NPC, Spawn)
  56. PlayFlavor(Spawn, "", "", "no", 0, 0, Player)
  57. end
  58. -----------------------------------------------------------------------------------
  59. -- QUEST 1 Chat
  60. -----------------------------------------------------------------------------------
  61. function Quest1Chat_0(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana003.mp3", "", "agree", 1064695588, 175136461, Spawn)
  65. AddConversationOption(conversation, "I'm up to the task!", "QuestOffer_ProwlerAnnoyance")
  66. AddConversationOption(conversation, "I am not up to this task.")
  67. StartConversation(conversation, NPC, Spawn, "With the recent Sablevein attacks from the east, the dusk prowlers have been forced nearer to Hate's Envy. Now they impede our progress into a Thexian burial chamber we wish to investigate. I need you to cull a number of these prowlers so we can gain access to the caves.")
  68. end
  69. function Quest1Chat_1(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(Spawn, "", "", "no", 0, 0, Player)
  73. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana007.mp3", "", "tapfoot", 1258715663, 4051557607, Spawn)
  74. AddConversationOption(conversation, "Very well")
  75. StartConversation(conversation, NPC, Spawn, "I thought my directions were clear. Do not return until you've slain the dusk prowlers.")
  76. end
  77. function QuestOffer_ProwlerAnnoyance(NPC, Spawn)
  78. OfferQuest(NPC, Spawn, ProwlerAnnoyance)
  79. end
  80. -----------------------------------------------------------------------------------
  81. -- QUEST 2 Chat
  82. -----------------------------------------------------------------------------------
  83. function Quest2Chat_0(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. SetStepComplete(Spawn, ProwlerAnnoyance, 2)
  87. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana006.mp3", "", "", 2179526819, 2808298057, Spawn)
  88. AddConversationOption(conversation, "What do you have in mind this time?", "Quest2Chat_1")
  89. AddConversationOption(conversation, "Forget it. I'm finished helping you.", "PlayerEmote_no")
  90. StartConversation(conversation, NPC, Spawn, "Wonderful, " .. GetName(Spawn) .. ". Knowing that, I have no doubt in your ability to help me once more.")
  91. end
  92. function Quest2Chat_1(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. conversation = CreateConversation()
  95. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana008.mp3", "", "", 2954723683, 1591713165, Spawn)
  96. AddConversationOption(conversation, "I will remove the pack leader.", "QuestOffer_AFerociousInconvenience")
  97. AddConversationOption(conversation, "Good luck with that.", "PlayerEmote_no")
  98. StartConversation(conversation, NPC, Spawn, "While you were indeed successful in removing several of the dusk prowlers from outside the Thexian tomb, it appears their pack leader has moved inside the cave and made it his den. He must be exterminated at once!")
  99. end
  100. function Quest2Chat_2(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana013.mp3", "", "tapfoot", 2892144271, 4226558009, Spawn)
  104. AddConversationOption(conversation, "I will return.")
  105. StartConversation(conversation, NPC, Spawn, "As I mentioned earlier, the pack leader has moved into the cave just west from Hate's Envy. When you find the beast, slay it!")
  106. end
  107. function Quest2Chat_3(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. SetStepComplete(Spawn, AFerociousInconvenience, 2)
  111. PlayFlavor(NPC, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana012.mp3", "", "", 3216838749, 637919977, Spawn)
  112. AddConversationOption(conversation, "As you wish.")
  113. StartConversation(conversation, NPC, Spawn, "Fine work, " .. GetName(Spawn) .. ". Fine work indeed. Mother's work can begin at once. I suggest speaking with her if you have not already.")
  114. end
  115. function QuestOffer_AFerociousInconvenience(NPC, Spawn)
  116. OfferQuest(NPC, Spawn, AFerociousInconvenience)
  117. end