SmugglersSecrets.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : smugglers_secrets.lua
  3. Script Purpose : Handles the quest, "Smugglers' Secrets"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 07.01.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Receive the courier costume from Tiff", 1, "Tiff cannot personally investigate the outpost, any longer.", 11, 330213)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayAnimation(QuestGiver, 11882)
  20. AddConversationOption(conversation, "I can do that.")
  21. StartConversation(conversation, QuestGiver, Player, "Clues, of course! Who is funding 'em. What're they shippin'. That kinda' stuff.")
  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 been given the courier costume from Tiff.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Tiff.")
  32. GiveQuestItem(Quest, Player, "I have spoken to Tiff.", 130009)
  33. AddQuestStep(Quest, 2, "With the courier costume on, I should investigate the Blackshield Smugglers' outpost", 1, 100, "I am to go investigate who and what is funding the growth of the Blackshield Smugglers.", 11)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "The smugglers mistook me for the actual courier!")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "The smugglers mistook me for the actual courier, and gave me a scroll to deliver.")
  39. GiveQuestItem(Quest, Player, "The smugglers mistook me for the actual courier, and gave me a scroll to deliver.", 9263)
  40. AddQuestStepChat(Quest, 3, "I expect Tiff will be rather pleased with this scroll", 1, "I should return to Tiff with this scroll, right away!", 11, 330213)
  41. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "Tiff was unable to open the scroll.")
  45. UpdateQuestTaskGroupDescription(Quest, 3, "Tiff was unable to open the magically sealed scroll, but she was able to place a tracking potion on it.")
  46. AddQuestStepChat(Quest, 4, "I need to meet whatever shady character shows at the Pride Lake rendezvous while still wearing the courier costume", 1, "I am to deliver the scroll to Pride Lake, so that Tiff can track the scroll's destination.", 11, 330296)
  47. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  48. end
  49. function Step4Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 4, "I gave the sealed scroll to the shady Dark Elf that appeared at the rendezvous point.")
  51. UpdateQuestTaskGroupDescription(Quest, 4, "I gave the sealed scroll to the shady Dark Elf that appeared at the rendezvous point.")
  52. AddQuestStepChat(Quest, 5, "I should return to Tiff", 1, "I hope Tiff is satisfied with my delivery.", 11, 330213)
  53. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  54. end
  55. function QuestComplete(Quest, QuestGiver, Player)
  56. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  57. UpdateQuestStepDescription(Quest, 5, "I spoke to Tiff.")
  58. UpdateQuestTaskGroupDescription(Quest, 5, "Although the mystery was not solved, I survived the delivery and Tiff rewarded me for the help I was able to provide.")
  59. UpdateQuestDescription(Quest, "Although the mystery behind the Blackshield Smugglers' growth was not solved, I survived the task and Tiff rewarded me for the help I was able to provide.")
  60. GiveQuestReward(Quest, Player)
  61. end
  62. function Reload(Quest, QuestGiver, Player, Step)
  63. if Step == 1 then
  64. Step1Complete(Quest, QuestGiver, Player)
  65. elseif Step == 2 then
  66. Step2Complete(Quest, QuestGiver, Player)
  67. elseif Step == 3 then
  68. Step3Complete(Quest, QuestGiver, Player)
  69. elseif Step == 4 then
  70. Step4Complete(Quest, QuestGiver, Player)
  71. elseif Step == 5 then
  72. QuestComplete(Quest, QuestGiver, Player)
  73. end
  74. end