the_motley_merchant_manifest.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : Quests/CrowsRestingPlace/the_motley_merchant_manifest.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.04 06:10:54
  5. Script Purpose : Handles the quest, "The Motley Merchant Manifest"
  6. Zone : CrowsRestingPlace
  7. Quest Giver: Fippy Darkpaw the 4th
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Speak to Fippy", 1, "I need to pay attention to Fippy Darkpaw.", 11, 2020003)
  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/fippy_darkpaw,_the_4th/qey_catacomb_epic01/fippydarkpaw006.mp3", "", "", 2198522684, 4136693998, Player)
  19. AddConversationOption(conversation, "Fine. What's the task.", "task")
  20. StartConversation(conversation, QuestGiver, Player, "I'll make a deal with you, scuffler ... you perform a little task for me, and I'll feed you a few more crumbs to whet your appetite.")
  21. if not HasItem(Player, 9897) then
  22. GiveQuestItem(Quest, Player, "I listened to Fippy Darkpaw's instructions.", 9897)
  23. end
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "Spoke to Fippy.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I listened to Fippy Darkpaw's instructions.")
  34. AddQuestStep(Quest, 2, "Read all of the manifest", 1, 100, "I must read the entire Motley Merchant Manifest given to me by Fippy Darkpaw.", 11)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "Read all of the manifest.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I read the Motley Merchant Manifest.")
  40. AddQuestStepChat(Quest, 3, "Speak to G.P.", 1, "I must speak to a G.P. in a shop hinted at by the symbol in the manifest, a quill overlapping an ink jar.", 11, 2380003, 6600257)
  41. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "Spoke to Gornit Penwiggle.")
  45. UpdateQuestTaskGroupDescription(Quest, 3, "I had Gornit Penwiggle of the Qeynos Province District shop called Qeynos Linguistics sign the manifest.")
  46. AddQuestStepChat(Quest, 4, "Speak to P.B.", 1, "I must speak to a P.B. in one of the local establishments, the one hinted at by the symbol of a trinket being passed from one hand to another.", 11, 2340024, 6600239)
  47. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  48. end
  49. function Step4Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 4, "Spoke to Blagard.")
  51. UpdateQuestTaskGroupDescription(Quest, 4, "I had Proprietor Blagard of the Collector's Trove in the Qeynos Province District sign the manifest.")
  52. AddQuestStepChat(Quest, 5, "Speak to K.I.", 1, "I must speak to a K.I. in one of the local establishments, the one hinted at by a symbol of a fish swimming out of a mug of ale.", 11, 2350021, 6600220)
  53. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  54. end
  55. function Step5Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 5, "Spoke to Icemoore")
  57. UpdateQuestTaskGroupDescription(Quest, 5, "I had Icemoore of the Qeynos Province District tavern called Fish's Alehouse and Inn sign the manifest.")
  58. AddQuestStepChat(Quest, 6, "Speak to B.M.", 1, "I must speak to a B.M. in one of the local establishments, the one hinted at by the symbol of a mermaid holding a stein.", 11, 2210042, 6600287)
  59. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  60. end
  61. function Step6Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 6, "Spoke to Borden.")
  63. UpdateQuestTaskGroupDescription(Quest, 6, "I had Bartender Borden Mannus of the Qeynos Harbor tavern called The Mermaid's Lure sign the manifest.")
  64. AddQuestStepChat(Quest, 7, "Speak to P.I.", 1, "I must speak to a P.I. in one of the local establishments, the one hinted at by the symbol of dwarven warhammer inside a compass pointing eastward.", 11, 2220101, 5890362)
  65. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  66. end
  67. function Step7Complete(Quest, QuestGiver, Player)
  68. UpdateQuestStepDescription(Quest, 7, "Spoke to P.T. Irontoe.")
  69. UpdateQuestTaskGroupDescription(Quest, 7, "I had P.T. Irontoe of the North Qeynos tavern called Irontoe's East sign the manifest.")
  70. AddQuestStepChat(Quest, 8, "Speak to Fippy Darkpaw", 1, "I must return to the Down Below secret lair of Fippy Darkpaw and bring him the manifest.", 11, 2020003)
  71. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  72. end
  73. function QuestComplete(Quest, QuestGiver, Player)
  74. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  75. UpdateQuestStepDescription(Quest, 8, "Spoke to Fippy Darkpaw.")
  76. UpdateQuestTaskGroupDescription(Quest, 8, "I returned to the Down Below secret lair of Fippy Darkpaw.")
  77. UpdateQuestDescription(Quest, "I have supplied Fippy Darkpaw with the Motley Merchant Manifest. He has rewarded me and noted that should I attempt to report him to the Qeynos Guard he will have me framed as an associate of his illegal thieves band.")
  78. GiveQuestReward(Quest, Player)
  79. end
  80. function Reload(Quest, QuestGiver, Player, Step)
  81. if Step == 1 then
  82. Step1Complete(Quest, QuestGiver, Player)
  83. elseif Step == 2 then
  84. Step2Complete(Quest, QuestGiver, Player)
  85. elseif Step == 3 then
  86. Step3Complete(Quest, QuestGiver, Player)
  87. elseif Step == 4 then
  88. Step4Complete(Quest, QuestGiver, Player)
  89. elseif Step == 5 then
  90. Step5Complete(Quest, QuestGiver, Player)
  91. elseif Step == 6 then
  92. Step6Complete(Quest, QuestGiver, Player)
  93. elseif Step == 7 then
  94. Step7Complete(Quest, QuestGiver, Player)
  95. elseif Step == 8 then
  96. QuestComplete(Quest, QuestGiver, Player)
  97. end
  98. end