9
3

oakhearts_report.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/TheElddarGrove/oakhearts_report.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.10 12:05:49
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Pathfinder Oakheart
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Rysian Gladewalker.", 1, "I must deliver a patrol report to Rysian Gladewalker in the great elddar tree, Arbos.", 11, 2070040)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/pathfinder_oakheart/qey_elddar/pathfinderoakheart001.mp3", "", "thanks", 3085379068, 1503460173, Player)
  19. AddConversationOption(conversation, "I'll go find him.")
  20. StartConversation(conversation, QuestGiver, Player, "Ah, thank you! My order will always remember your help from this. Now, hurry and take this report to Master Gladewalker. Look for the largest tree in the grove. Its name is Arbos. It is the last true living Elddar tree. You'll find Master Gladewalker there.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I spoke with Rysian Gladewalker.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the patrol report to Rysian Gladewalker.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Pathfinder Oakheart.", 1, "I must notify Pathfinder Oakheart his report was submitted.", 11, 2070056)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I returned to Pathfinder Oakheart.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've notified Pathfinder Oakheart his report was submitted.")
  38. UpdateQuestDescription(Quest, "I delivered the daily patrol report to Rysian Gladewalker, at Pathfinder Oakheart request. Oakheart was relieved he didn't have to diminish his resources to deliver the report.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end