unnatural_lesson.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : unnatural_lesson.lua
  3. Script Purpose : Handles the quest, "Unnatural Lesson"
  4. Script Author : Dorbin
  5. Script Date : 5/4/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Qeynos
  8. Quest Giver : Lookout Venylle
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill six decaying skeletons.", 6, 100, "I need to find the mausoleum that rests on a small island just off Antonica near the gates of North Qeynos, and put to rest decaying skeleton's and risen protector's.", 611, 120450)
  14. AddQuestStepKill(Quest, 2, "I must kill risen protectors.", 6, 100, "I need to find the mausoleum that rests on a small island just off Antonica near the gates of North Qeynos, and put to rest decaying skeleton's and risen protector's.", 611, 120449)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. UpdateQuestZone(Quest,"Antonica")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is accepted
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have killed six decaying skeletons.")
  30. CheckProgress(Quest, QuestGiver, Player)
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have killed six risen protectors.")
  34. CheckProgress(Quest, QuestGiver, Player)
  35. end
  36. function CheckProgress(Quest, QuestGiver, Player)
  37. if QuestStepIsComplete(Player, 5516, 1) and QuestStepIsComplete(Player, 5517, 2) then
  38. UpdateQuestZone(Quest,"The Elddar Grove")
  39. UpdateQuestTaskGroupDescription(Quest, 1, "I've settled decaying skeleton's and risen protector's as Lookout Venylle had requested.")
  40. AddQuestStepChat(Quest, 3, "I must speak to Lookout Venylle in The Elddar Grove.", 1, "I must go to the Elddar Grove to inform Lookout Venylle about my success against the undead.", 0, 2070049)
  41. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  42. end
  43. end
  44. function QuestComplete(Quest, QuestGiver, Player)
  45. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  46. UpdateQuestStepDescription(Quest, 3, "I reported my deed to Lookout Venylle.")
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I reported to Lookout Venylle about destroying the unanatural dangers in Antonica.")
  48. UpdateQuestDescription(Quest, "I've put to rest the decaying skeletons and risen protectors that Lookout Venylle had requested. Venylle told me that this was but one of many lessons to come, I have a feeling she's right.")
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. Step1Complete(Quest, QuestGiver, Player)
  54. elseif Step == 2 then
  55. Step2Complete(Quest, QuestGiver, Player)
  56. elseif Step ==3 then
  57. CheckProgress(Quest, QuestGiver, Player)
  58. end
  59. end