9
3

letter_for_hunter_forestdeep.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/TheForestRuins/letter_for_hunter_forestdeep.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.02.21 03:02:34
  5. Script Purpose :
  6. Zone : TheForestRuins
  7. Quest Giver: Outrider Vaughn
  8. Preceded by: Vaughn's Stuff
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Deliver the letter to hunter Forestdeep", 1, "I need to deliver a letter to a hunter named Forestdeep in the Qeynos Province District.", 1223, 2370002)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. UpdateQuestZone(Quest, "The Willow Wood")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/outlander_vaughn/qey_adv02_ruins/quests/outlander_dakota/outlander_dakota004.mp3", "", "", 3189315384, 2954944318, Player)
  20. AddConversationOption(conversation, "I'll deliver this letter for you to the Willow Wood.")
  21. StartConversation(conversation, QuestGiver, Player, "I need you to take this letter to Hunter Forestdeep. You'll find him in the Willow Wood village.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I've delivered the letter to hunter Forestdeep")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered the letter to hunter Forestdeep.")
  33. UpdateQuestDescription(Quest, "I delivered the letter Outlander Vaughn had given me. The hunter was glad to receive the letter.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end