9
3

gathering_elddar_leaves.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/gathering_elddar_leaves.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.29 05:01:25
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Scribe Bleemeb
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to gather Elddar leaves for Scribe Bleemeb.", 15, "I need to gather leaves from the base of the greatest Elddar tree in the grove.", 199, 663.74, -9.72, -373.53,207 )
  14. AddQuestStepCompleteAction(Quest, 1, "LeavesGathered")
  15. UpdateQuestZone(Quest, "The Eldarr Grove")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("It is, it is! FrroOAK! She needs someone to fetch some leaves from the base of the tallest Eldarr tree. Say! I figured thou would'st do nicely for that. Why doth thou head over to the Eldarr grove and pick her up some leaves. Thou'st can't miss the tree! It has elves in it.")
  21. Dialog.AddVoiceover("voiceover/english/scribe_bleemeb/qey_village04/qst_scribebleemeb002.mp3",1766321211,1856541681)
  22. PlayFlavor(QuestGiver, "", "", "agree", 0,0 , Player)
  23. Dialog.AddOption("I'll return with some of the Elddar leaves.")
  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 LeavesGathered(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've gathered the Elddar leaves for Scribe Bleemeb.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered a bundle of leaves from the base of the great Elddar tree for Bleemeb.")
  36. UpdateQuestZone(Quest, "Castleview Hamlet")
  37. AddQuestStepChat(Quest, 2, "I need to return to Scribe Bleemeb.", 1, "I've gathered leaves from the base of the greatest Elddar tree and need to return.", 199, 2360055, 2360045)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I've returned to Scribe Bleemeb.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned with a bundle of leaves from the base of the great Elddar tree for Bleemeb.")
  43. UpdateQuestDescription(Quest, "I've gone ahead and returned all the leaves I found around the base of the great Elddar tree to Scribe Bleemeb. It seems that Yanari will have enough for her next research forray.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. LeavesGathered(Quest, QuestGiver, Player)
  49. end
  50. if Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end