delivery_from_sayers_outfitters.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. --[[
  2. Script Name : Quests/Antonica/delivery_from_sayers_outfitters.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.11 06:05:32
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: Battle with the Timberclaws
  9. Followed by: Vengeance for Marlea Sayer
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to Merchant Duffy near the gates of Qeynos. ", 1, "I must go towards the gates of Qeynos in Antonica and deliver a shipment to a merchant called Duffy.", 11, 120086)
  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 have a list of customers that just can't make it to Sayer's. Could you deliver their goods to them, and save me the trouble of sending one of my merchants and losing business?")
  20. Dialog.AddVoiceover("voiceover/english/sighard_sayer/antonica/sighardsayer003.mp3", 1632310512, 2700305313)
  21. Dialog.AddOption("Consider it done, Mr. Sayer. ")
  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 Duffy.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered a shipment to a merchant called Duffy.")
  33. AddQuestStepChat(Quest, 2, "Speak to Lord Quinn at the Keep of the Ardent Needle.", 1, "I must follow the great north road in Antonica to deliver a shipment to Lord Quinn at the Keep of the Ardent Needle.", 11, 120200)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "Spoke to Lord Quinn Clothspinner. ")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I made it to the keep of the Ardent Needle and found Lord Quinn.")
  39. AddQuestStep(Quest, 3, "Inspect Caltorsis Keep for the needles.", 1, 100, "Lord Quinn wants me to find something called Nerissa's Needles in the ruins of Caltorsis east of the Keep of the Ardent Needle.", 2176)
  40. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  41. end
  42. function Step3Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I found Nerissa Clothpinner's sewing kit. ")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I found a sewing kit called Nerissa's Needles in the ruins of Caltorsis.")
  45. AddQuestStepChat(Quest, 4, "Return to Lord Quinn Clothspinner.", 1, "I must take the sewing kit to Lord Quinn at the Keep of the Ardent Needle.", 648, 120200)
  46. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  47. end
  48. function Step4Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 4, "Gave Nerissa's sewing kit to Lord Quinn Clothspinner.")
  50. UpdateQuestTaskGroupDescription(Quest, 4, "I took the sewing kit to Lord Quinn at the Keep of the Ardent Needle.")
  51. AddQuestStepChat(Quest, 5, "Speak to Sighard at Sayer's Outfitters.", 1, "I must return to Sighard Sayer at Sayer's Outfitters. I will give him the payments for goods delivered.", 11, 120283)
  52. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  56. UpdateQuestStepDescription(Quest, 5, "Spoke to Sighard")
  57. UpdateQuestTaskGroupDescription(Quest, 5, "I gave the payments to Sighard Sayer.")
  58. UpdateQuestDescription(Quest, "After a long journey through the countryside of Antonica I finally delivered both shipments to their clients. Sayer paid me well for this deed. ")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1Complete(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2Complete(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3Complete(Quest, QuestGiver, Player)
  68. elseif Step == 4 then
  69. Step4Complete(Quest, QuestGiver, Player)
  70. elseif Step == 5 then
  71. QuestComplete(Quest, QuestGiver, Player)
  72. end
  73. end