9
3

Condemned.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Darklight/Condemned.lua
  3. Script Purpose : Handles the quest, "Condemned"
  4. Script Author : Cynnar
  5. Script Date : 9/1/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Laexyra Y'Barriath
  9. Preceded by : Reaping
  10. Followed by : Continuing Assistance , Report to Zezas
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Release these spirits near the Wellspring of Nightmares", 1, 100, "Laexyra Y'Barriath wants me to trap the spirits I captured in the Wellspring of Nightmares.", 2516)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have released the spirits, condemning them to a perpetual nightmare")
  18. AddQuestStepChat(Quest, 2, "Return to Laexyra Y'Barriath", 1, "Laexyra Y'Barriath wants me to trap the spirits I captured in the Wellspring of Nightmares.", 11, 340075)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I have returned to Laexyra Y'Barriath after trapping the spirits within the Wellspring of Nightmares.")
  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. if HasItem(Player, 48976) == false then
  34. SummonItem(Player, 48976, 1)
  35. end
  36. FaceTarget(QuestGiver, Player)
  37. conversation = CreateConversation()
  38. PlayFlavor(QuestGiver, "", "", "salute", 0, 0, Player)
  39. AddConversationOption(conversation, "All right.")
  40. StartConversation(conversation, QuestGiver, Player, "That works for me. Let me know how it goes.")
  41. end
  42. function Declined(Quest, QuestGiver, Player)
  43. -- Add dialog here for when the quest is declined
  44. end
  45. function Deleted(Quest, QuestGiver, Player)
  46. while HasItem(Player, 48976, 1) do
  47. RemoveItem(Player, 48976)
  48. end
  49. end