9
3

a_frontiersladys_task.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Speak to Sighard Sayer.", 1, "I must run to Sayer's Outfitters in Antonica and speak to Sighard Sayer.", 11, 120283)
  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/verona/antonica/verona002.mp3", "", "", 4018838958, 826695955, Player)
  19. AddConversationOption(conversation, "I will find Sighard and see that he gets the note.")
  20. StartConversation(conversation, QuestGiver, Player, "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.")
  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, "Spoke to Sighard Sayer.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I made it to Sayer's Outfitters and spoke to Sighard.")
  31. AddQuestStepChat(Quest, 2, "Speak to Dancer.", 1, "I must return to Dancer near the Qeynos Hills Claymore in Antonica.", 364, 120410)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "Spoke to Dancer.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Dancer near the Qeynos Hills Claymore in Antonica.")
  37. 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)
  38. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  39. end
  40. function Step3Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "Inspected the dummy.")
  42. UpdateQuestTaskGroupDescription(Quest, 3, "I placed the arrow onto the dummy with a green arrow painted on it found in Archer Woods.")
  43. AddQuestStepChat(Quest, 4, "Speak to Dancer.", 1, "I must return to Dancer near the Qeynos Hills Claymore in Antonica.", 11, 120410)
  44. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  48. UpdateQuestStepDescription(Quest, 4, "Spoke to Dancer.")
  49. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Dancer near the Qeynos Hills Claymore in Antonica.")
  50. 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.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. QuestComplete(Quest, QuestGiver, Player)
  62. end
  63. end