Reaping.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Darklight/Reaping.lua
  3. Script Purpose : Handles the quest, "Reaping" (152)
  4. Script Author : Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Laexyra Y'Barriath
  9. Preceded by : A Friendly Reminder
  10. Followed by : Condemned
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Collect spirits from the rangers and cadavers south of T'Vatar Post", 5, 100, "I need to trap the spirits of the soldiers in the field south of T'Vatar Post.", 2516)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the spirits for Laexyra Y'Barriath")
  18. AddQuestStepChat(Quest, 2, "Bring the spirits back to Laexyra Y'Barriath", 1, "I need to trap the spirits of the soldiers in the field south of T'Vatar Post.", 2516, 340075)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. RemoveItem(Player, 48173)
  23. UpdateQuestDescription(Quest, "I have trapped the spirits for Laexyra Y'Barriath.")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Reload(Quest, QuestGiver, Player, Step)
  27. if Step == 1 then
  28. Step1Complete(Quest, QuestGiver, Player)
  29. elseif Step == 2 then
  30. QuestComplete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function Accepted(Quest, QuestGiver, Player)
  34. if HasItem(Player, 48173) == false then
  35. SummonItem(Player, 48173, 1)
  36. end
  37. FaceTarget(QuestGiver, Player)
  38. conversation = CreateConversation()
  39. Say(QuestGiver, "Return to me when you've trapped them.")
  40. end
  41. function Declined(Quest, QuestGiver, Player)
  42. -- Add dialog here for when the quest is declined
  43. end