9
3

corrupted_dryad_nuisance.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/SouthQeynos/corrupted_dryad_nuisance.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.16 02:05:30
  5. Script Purpose :
  6. Zone : SouthQeynos
  7. Quest Giver: Fredrick Losce
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must slay three corrupted dryads.", 3, 100, "I must go into the Oakmyst Forest and slay three of the corrupted dryads that plague the area.", 611, 8300004)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Oakmyst Forest")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver,"","","sniff", 0, 0, Player)
  21. Dialog.AddDialog( "I love walking through the Oakmyst forest, but in recent times corrupt dryads have taken over the area. These cretins love to ruin my walks. If you could rid the world of these horrid creatures, it would be a noble task indeed.")
  22. Dialog.AddVoiceover("voiceover/english/fredrick_losce/qey_south/fredricklosce001.mp3", 2839949411, 2971198506)
  23. Dialog.AddOption("Gladly. I'll take care of these dryads.")
  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)
  33. AddQuestStepChat(Quest, 2, "I should return to Fredrick Losce.", 1, "I should return to Fredrick at the Lion’s Mane Tavern and let him know the dryads have been dealt with.", 11, 2310108)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. UpdateQuestZone(Quest,"South Qeynos")
  36. UpdateQuestStepDescription(Quest, 1, "I have slain the corrupted dryads.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I have been to the Oakmyst Forest and killed three corrupted dryads at the request of Fredrick Losce")
  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, 2, "I told Fredrick the deed is done.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "Fredrick Losce was pleased that I have killed three corrupted dryads in the Oakmyst Forest.")
  43. UpdateQuestDescription(Quest, "I went into Oakmyst Forest and killed three corrupted dryads at the request of Fredrick Losce. The little things have been a nuisance for far too long.")
  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