destroy_the_undead.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/TheCryptofBetrayal/destroy_the_undead.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.29 09:10:30
  5. Script Purpose :
  6. Zone : TheCryptofBetrayal
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "Eliminate the undead in the Crypt of Betrayal.", 30, 100, "I have an uncontrollable urge to destroy the undead here in the Crypt of Betrayal.", 611, 2010006, 2010029, 2010039, 2010010, 2010027, 2010046, 2010012, 2010019, 2010018, 2010014, 2010023, 2010022, 2010021, 2010024, 2010028, 2010031, 2010008, 2010007, 2010040, 2010041, 2010017)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I've destroyed another of the undead.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "The urge to eliminate the undead has left me.")
  30. UpdateQuestDescription(Quest, "After eliminating many of the undead in the Crypt of Betrayal the urge to destroy them left me.")
  31. GiveQuestReward(Quest, Player)
  32. if HasItem(Player, 13568) then -- Sullied Doll(Item)
  33. RemoveItem(Player, 13568)
  34. end
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end