9
3

stop_the_mischievous_tricksters.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Peat Bog")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "","", "agree", 0, 0,Player)
  21. Dialog.AddDialog("There's always payment for services rendered to the city. You needn't worry about that! We encourage citizens to perform kind acts of their own will, but everyone needs to eat. Teach those unruly fairies a lesson and keep them away from the locals. Understand?")
  22. Dialog.AddVoiceover("voiceover/english/lieutenant_ilgar/qey_south/lieutenantilgar001.mp3",3441933918, 932340693)
  23. Dialog.AddOption("Yes sir!")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have slain some bog faeries.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "Trudging through the Peat Bog was the worst part of my faerie hunting. I certainly hope the villagers appreciate my troubles.")
  35. UpdateQuestZone(Quest,"South Qeynos")
  36. 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)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 1, "I have reported back to Ilgar.")
  42. UpdateQuestTaskGroupDescription(Quest, 1, "Knight-Lieutenant Ilgar was pleased to note there has been a reduction in fairy reports and paid me for my service.")
  43. 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.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete (Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end