9
3

TheMysteriousMissingShipment.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : the_mysterious_missing_shipment.lua
  3. Script Purpose : Handles the quest, "The Mysterious Missing Shipment"
  4. Script Author : premierio015
  5. Script Date : 13.11.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Brandus Levine
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I should speak to Nethet about Brandus's shipment", 1, "Brandus directed me to an individual named Nethet who frequents the City of Freeport gates in the Commonlands.", 11, 331135)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "brandus_levine/commonlands/quests/brandus_levine/brandus_levine007.mp3", "", "", 3066832295, 2286961802, Player)
  20. AddConversationOption(conversation, "I know.")
  21. StartConversation(conversation, QuestGiver, Player, "Watch your coin around his type.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have asked Nethet if he knows anything about Brandus' shipment.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have asked Nethet if he knows anything about Brandus' shipment.")
  32. AddQuestStep(Quest, 2, "I need to complete Nethet's tasks for more information", 1, 100, "Brandus directed me to an individual named Nethet who frequents the City of Freeport gates in the Commonlands.", 11)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I have helped Nethet. His information was very useful.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken to Nethet and done everything he asked before he finally gave up the information I was looking for.")
  38. AddQuestStepChat(Quest, 3, "I need to return to Brandus", 1, "I should return to Brandus and let him know that it is the Dervish Cutthroats that have his shipment, and his sorcerer.", 11, 330149)
  39. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 3, "I have told Brandus the Dervish have his cargo.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I have told Brandus that his shipment is being held by the Dervish Cutthroats. He did not seem to be happy with the news.")
  45. UpdateQuestDescription(Quest, "I found the ''shipment'' Brandus was referring to. He has been selling refugees back to a captain in the Far Seas Trading Company with their memories erased or altered.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. QuestComplete(Quest, QuestGiver, Player)
  55. end
  56. end