9
3

gathering_elddar_leaves.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to gather Elddar leaves for Scribe Bleemeb.", 10, "I need to gather leaves from the base of the greatest Elddar tree in the grove.", 199, 663.74 -9.72 -373.53)
  13. AddQuestStepCompleteAction(Quest, 1, "LeavesGathered")
  14. UpdateQuestZone(Quest, "The Eldarr Grove")
  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 LeavesGathered(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I've gathered the Elddar leaves for Scribe Bleemeb.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered a bundle of leaves from the base of the great Elddar tree for Bleemeb.")
  29. AddQuestStepChat(Quest, 2, "I need to return to Scribe Bleemeb.", 10, "I've gathered leaves from the base of the greatest Elddar tree and need to return.", 199, 2360055, 2360045)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. UpdateQuestZone(Quest, "Castleview Hamlet")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've returned to Scribe Bleemeb.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned with a bundle of leaves from the base of the great Elddar tree for Bleemeb.")
  36. 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.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. LeavesGathered(Quest, QuestGiver, Player)
  42. end
  43. if Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end