a_frontiersladys_task.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : Quests/Antonica/a_frontiersladys_task.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.09 04:05:34
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to Sighard Sayer.", 1, "I must run to Sayer's Outfitters in Antonica and speak to Sighard Sayer.", 11, 120283)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("I prefer the term frontierslady, but who am I to argue with a legendary adventurer. Please take this note to Sighard Sayer, proprietor of Sayer's Outfitters, the frontier trading post just to the north of here.")
  20. Dialog.AddVoiceover("voiceover/english/verona/antonica/verona002.mp3", 4018838958, 826695955)
  21. Dialog.AddOption("I will find Sighard and see that he gets the note.")
  22. Dialog.Start()
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "Spoke to Sighard Sayer.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I made it to Sayer's Outfitters and spoke to Sighard.")
  33. AddQuestStepChat(Quest, 2, "Speak to Dancer.", 1, "I must return to Dancer near the Qeynos Hills Claymore in Antonica.", 364, 120410)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "Spoke to Dancer.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Dancer near the Qeynos Hills Claymore in Antonica.")
  39. AddQuestStep(Quest, 3, "Inspect the dummy.", 1, 100, "I must place the arrow onto the training dummy with a green arrow painted on it found in Archer Woods.", 11)
  40. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  41. end
  42. function Step3Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "Inspected the dummy.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I placed the arrow onto the dummy with a green arrow painted on it found in Archer Woods.")
  45. AddQuestStepChat(Quest, 4, "Speak to Dancer.", 1, "I must return to Dancer near the Qeynos Hills Claymore in Antonica.", 11, 120410)
  46. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  50. UpdateQuestStepDescription(Quest, 4, "Spoke to Dancer.")
  51. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Dancer near the Qeynos Hills Claymore in Antonica.")
  52. UpdateQuestDescription(Quest, "I performed some errands for the outlander named Dancer. She would not mention what it was all about, but it was very curious.")
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. Step1Complete(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. Step2Complete(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. Step3Complete(Quest, QuestGiver, Player)
  62. elseif Step == 4 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end