9
3

stop_the_mischievous_tricksters.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/SouthQeynos/stop_the_mischievous_tricksters.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.16 03:05:03
  5. Script Purpose :
  6. Zone : SouthQeynos
  7. Quest Giver: Knight-Lieutenant Ilga 2310017
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must slay some bog faeries in the Peat Bog.", 10, 100, "I haven't quite driven the malicious faeries of the Peat Bog back yet.", 611, 8290002,8290003,8290052,8290008,8290009,8290010,8290013,8290014,8290011,8290012,8290017,8290018,8290019,8290053,8290044)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"The Peat Bog")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have slain some bog faeries.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "Trudging through the Peat Bog was the worst part of my faerie hunting. I certainly hope the villagers appreciate my troubles.")
  28. UpdateQuestZone(Quest,"South Qeynos")
  29. AddQuestStepChat(Quest, 2, "I must report my success to Knight-Lieutenant Ilgar.", 1, "Knight-Lieutenant Ilgar should noticed a difference in fairy disruptions. He patrols in South Qeynos.", 611, 2310017)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I have reported back to Ilgar.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "Knight-Lieutenant Ilgar was pleased to note there has been a reduction in fairy reports and paid me for my service.")
  36. UpdateQuestDescription(Quest, "Well, I've managed to drive the faeries back, and keep them from playing pranks on the villagers of Nettleville and Starcrest Commune. I am happy I could be of assistance to these poor folk, even if it came at the cost of the lives of a few of the bog's more mischievous residents.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete (Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end