AnAuthorityonHate.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Quests/Darklight/AnAuthorityonHate.lua
  3. Script Purpose : Handles the quest, "An Authority on Hate"
  4. Script Author : Cynnar
  5. Script Date : 7/27/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Pellandra D'Xatyl
  9. Preceded by : Reclaiming the Sablevein Tear (ReclaimingtheSableveinTear.lua)
  10. Followed by : Prowler Annoyance (ProwlerAnnoyance.lua)
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak with Jhana Do'Zyth inside Hate's Envy Townhall", 1, "I need to enter Hate's Envy Townhall and speak with the mayor's daughter, Jhana Do'Zyth.", 11, 340027)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function QuestComplete(Quest, QuestGiver, Player)
  17. UpdateQuestDescription(Quest, "I entered Hate's Envy Town Hall and spoke with the mayor's daughter, Jhana Do'Zyth.")
  18. GiveQuestReward(Quest, Player)
  19. end
  20. function Reload(Quest, QuestGiver, Player, Step)
  21. if Step == 1 then
  22. QuestComplete(Quest, QuestGiver, Player)
  23. end
  24. end
  25. function Accepted(Quest, QuestGiver, Player)
  26. FaceTarget(QuestGiver, Player)
  27. conversation = CreateConversation()
  28. PlayFlavor(QuestGiver, "pellandra_d_xatyl/darklight_wood/hates_envy/pellandra_revamp/pellandra026.mp3", "", "bow", 3700065629, 2247447219, Player)
  29. AddConversationOption(conversation, "Praise Innoruuk!")
  30. StartConversation(conversation, QuestGiver, Player, "You fight well, " .. GetName(Player) .. ". May your enemies come to know your name and fear it. The Dark Father looks upon you favorably.")
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end