late_shipment.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : Quests/Graystone/late_shipment.lua
  3. Script Purpose : Handles the quest, "Late Shipment"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : Graystone Yard
  7. Quest Giver: Burk Stoneshatter
  8. Preceded by: A Time For Fighting (a_time_for_fighting.lua)
  9. Followed by: In the Drink (in_the_drink.lua)
  10. --]]
  11. -- Items
  12. local OVERFLOW_MANIFEST = 10268
  13. function Init(Quest)
  14. AddQuestStep(Quest, 1, "I should check the Overflow Manifest that Burk gave me to figure out where I might find the Graystone Courier.", 1, 100, "I need to figure out what has happened to Burk's package.", 0)
  15. AddQuestStepCompleteAction(Quest, 1, "step1_complete_inspectedManifest")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. -- Overflow Manifest
  21. if not HasItem(Player, OVERFLOW_MANIFEST, 1) then
  22. SummonItem(Player, OVERFLOW_MANIFEST, 1)
  23. end
  24. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/burk_stoneshatter/qey_village03/quests/burk_stoneshatter/burk_stoneshatter018.mp3", "", "", 2230644689, 1477811469, Player)
  25. AddConversationOption(conversation, "All right, I'll return soon.")
  26. StartConversation(conversation, QuestGiver, Player, "Hah hah hah! No, don't do that. Just see if he knows where my package is.")
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. end
  32. function step1_complete_inspectedManifest(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have read the Overflow Manifest.")
  34. AddQuestStepChat(Quest, 2, "I need to ask the Graystone Courier about Burk's shipment. I should check the locations given on the Overflow Manifest.", 1, "I need to figure out what has happened to Burk's package.", 0, 2350048)
  35. AddQuestStepCompleteAction(Quest, 2, "step2_complete_talkedToCourier")
  36. end
  37. function step2_complete_talkedToCourier(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I have questioned the Graystone Courier.")
  39. AddQuestStepChat(Quest, 3, "The courier doesn't have Burk's package, but suggested I talk to the Shipping Coordinator on the docks.", 1, "I need to figure out what has happened to Burk's package.", 0, 2350004)
  40. AddQuestStepCompleteAction(Quest, 3, "step3_complete_talkedToCoordinator")
  41. end
  42. function step3_complete_talkedToCoordinator(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I have spoken with the Shipping Coordinator")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with a number of people but I am still not sure what has happened to Burk's package.")
  45. -- Overflow Manifest
  46. while HasItem(Player, OVERFLOW_MANIFEST) do
  47. RemoveItem(Player, OVERFLOW_MANIFEST)
  48. end
  49. AddQuestStep(Quest, 4, "I need to check all 13 of the boxes and barrels on the docks to see if any of them are from Shipment #GG4QC", 13, 100, "The Shipping Coordinator has suggested that I check the shipment at the end of the docks for Burk's package.", 2285)
  50. AddQuestStepCompleteAction(Quest, 4, "step4_complete_inspectedBarrels")
  51. end
  52. function step4_complete_inspectedBarrels(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 4, "There are many shipments on the docks and they are all labeled. None of them appear to be shipment #GG4QC.")
  54. UpdateQuestTaskGroupDescription(Quest, 2, "I did not find Burk's package in the shipment on the docks.")
  55. AddQuestStepChat(Quest, 5, "Burk's shipment was not among the newer boxes, I should speak with the Shipping Coordinator again.", 1, "I still have not found Burk's package.", 0, 2350004)
  56. AddQuestStepCompleteAction(Quest, 5, "step5_complete_talkedToCoordinator")
  57. end
  58. function step5_complete_talkedToCoordinator(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 5, "I have spoken with the Shipping Coordinator.")
  60. AddQuestStepChat(Quest, 6, "The Shipping Coordinator has suggested I speak with the dock loader, Marus Donoval. He says he should be in the tavern.", 1, "I still have not found Burk's package.", 0, 2350035)
  61. AddQuestStepCompleteAction(Quest, 6, "step6_complete_talkedToMarus")
  62. end
  63. function step6_complete_talkedToMarus(Quest, QuestGiver, Player)
  64. UpdateQuestStepDescription(Quest, 6, "I have spoken with Marus Donoval.")
  65. AddQuestStepChat(Quest, 7, "Marus Donoval thinks some crates may have fallen into the water. I should speak with the Shipping Coordinator about this.", 1, "I still have not found Burk's package.", 0, 2350004)
  66. AddQuestStepCompleteAction(Quest, 7, "quest_complete")
  67. end
  68. function quest_complete(Quest, QuestGiver, Player)
  69. UpdateQuestStepDescription(Quest, 7, "I have spoken with the Shipping Coordinator.")
  70. UpdateQuestTaskGroupDescription(Quest, 3, "I believe I may know what happened to Burk's package.")
  71. UpdateQuestDescription(Quest, "I have determined what has happened to Burk's missing shipment. I may be able to work with the Shipping Coordinator in the Graystone Yard to get it back.")
  72. GiveQuestReward(Quest, Player)
  73. end
  74. function Reload(Quest, QuestGiver, Player, Step)
  75. if Step == 1 then
  76. step1_complete_inspectedManifest(Quest, QuestGiver, Player)
  77. elseif Step == 2 then
  78. step2_complete_talkedToCourier(Quest, QuestGiver, Player)
  79. elseif Step == 3 then
  80. step3_complete_talkedToCoordinator(Quest, QuestGiver, Player)
  81. elseif Step == 4 then
  82. step4_complete_inspectedBarrels(Quest, QuestGiver, Player)
  83. elseif Step == 5 then
  84. step5_complete_talkedToCoordinator(Quest, QuestGiver, Player)
  85. elseif Step == 6 then
  86. step6_complete_talkedToMarus(Quest, QuestGiver, Player)
  87. end
  88. end