ProwlerAnnoyance.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : ProwlerAnnoyance.lua
  3. Script Purpose : Handles the quest, "Prowler Annoyance"
  4. Script Author : Cynnar
  5. Script Date : 7/27/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Jhana Do'Zyth
  9. Preceded by : An Authority on Hate (AnAuthorityonHate.lua)
  10. Followed by : A Ferocious Inconvenience (AFerociousInconvenience.lua)
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill several dusk prowlers", 5, 100, "Jhana Do'Zyth has asked me to cull a number of the dusk prowlers found northeast of Hate's Envy.", 96, 340054)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have slain a number of dusk prowlers")
  18. AddQuestStepChat(Quest, 2, "Return to Jhana Do'Zyth", 1, "Jhana Do'Zyth has asked me to cull a number of the dusk prowlers found northeast of Hate's Envy.", 11, 340027)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I have fulfilled Jhana's request by culling a number of dusk prowlers.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. Step1Complete(Quest, QuestGiver, Player)
  28. elseif Step == 2 then
  29. QuestComplete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. FaceTarget(QuestGiver, Player)
  34. conversation = CreateConversation()
  35. PlayFlavor(QuestGiver, "jhana_do_zyth/darklight_wood/hates_envy/jhana_revamp/jhana004.mp3", "", "", 2033106753, 62697825, Player)
  36. AddConversationOption(conversation, "I will return once the deed is done.")
  37. StartConversation(conversation, QuestGiver, Player, "Excellent, Ayeecaith. I eagerly await your return.")
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end