arrows_for_fanthis.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/TheElddarGrove/arrows_for_fanthis.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.08 07:05:27
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Pathfinder Fanthis
  8. Preceded by: None
  9. Followed by: Nightbow's Deposit
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I'm picking up arrows from Master Archer Nightbow.", 1, "I must pick up Fanthis' arrows from Master Archer Nightbow in the Elddar Grove.", 11, 2070011)
  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/patrolman_fanthis/qey_elddar/patrolmanfanthis001.mp3", "", "agree", 1998841979, 1465122374, Player)
  19. AddConversationOption(conversation, "I'll return with your arrows shortly.")
  20. StartConversation(conversation, QuestGiver, Player, "I ordered two dozen arrows. Let armsdealer Nightbow you're picking them up for me, and bring them to me immediately.")
  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've picked up the arrows from Master Archer Nightbow.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've retrieved the arrows Fanthis requested from Master Archer Nightbow.")
  31. AddQuestStepChat(Quest, 2, "I need to deliver these arrows to Pathfinder Fanthis.", 1, "I need to deliver these arrows to Pathfinder Fanthis in the Elddar Grove.", 403, 2070080)
  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've delivered the arrows to Fanthis.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the arrows to Fanthis from Master Archer Nightbow.")
  38. UpdateQuestDescription(Quest, "I restocked Patrolman Fanthis' supply of arrows with the assistance of the local bowyer, Aysabelle Nightbow. To see such a display of courtesy between shop keeper and customer is wonderful in these times.")
  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