DeadlyLegacy.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : Quests/Freeport/DeadlyLegacy.lua
  3. Script Purpose : Handles the quest, "Deadly Legacy"
  4. Script Author : premierio015
  5. Script Date : 18.08.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Freeport
  8. Quest Giver : Sneel Vaylin
  9. Preceded by : None
  10. Followed by : Battle of Wits (574)
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Collect the writing slates", 5, 100, "I should look for the writing slates the ratonga have handed down through our history. There should be some in Temple Street, if I look there.", 371)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I know. I'll return once I have the slates. Farewell until then.")
  20. StartConversation(conversation, QuestGiver, Player, "Yes. Remember, we have tried to warn the other races of the threat from the roekillik in the past. There's nothing stopping them from wiping us all out if we do nothing. As ignorant as the other races are, we cannot survive if they do not, and the only thing between the roekillik and all of Norrath is us.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "")
  30. AddQuestStepChat(Quest, 2, "Return the slates to Sneel in Freeport", 1, "I should look for the writing slates the ratonga have handed down through our history. There should be some in Temple Street, if I look there.", 11, 5590218)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to find the slates, and it seems that they've been damaged intentionally. It looks like the Roekillik might be closer than we thought.")
  36. AddQuestStepChat(Quest, 3, "Speak with Salla", 1, "I should speak with the frightened ratonga in Freeport. I should be able to find them in the shadowy places of the city.", 11, 5590445)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I was able to speak to the fightened ratonga, and have found out some disturbing information.")
  41. AddQuestStepChat(Quest, 4, "Speak with Cles", 1, "I should speak with the frightened ratonga in Freeport. I should be able to find them in the shadowy places of the city.", 11, 5590268)
  42. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  43. end
  44. function Step4Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 4, "")
  46. AddQuestStepChat(Quest, 5, "Speak with Feepsin", 1, "I should speak with the frightened ratonga in Freeport. I should be able to find them in the shadowy places of the city.", 11, 5590095)
  47. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  48. end
  49. function Step5Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 5, "")
  51. UpdateQuestTaskGroupDescription(Quest, 2, "I was able to speak to the fightened ratonga, and have found out some disturbing information.")
  52. AddQuestStepChat(Quest, 6, "I should return to Sneel, and tell him what his associates had to say.", 1, "It seems that Sneel's friends believe the roekillik are here in Freeport. I should report what they said to me to Sneel, over near the Academy of Arcane Science library.", 11, 5590218)
  53. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  54. end
  55. function Step6Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 6, "")
  57. AddQuestStep(Quest, 7, "I must root out the false roekillik in the streets of Freeport.", 3, 100, "It seems that Sneel's friends believe the roekillik are here in Freeport. I should report what they said to me to Sneel, over near the Academy of Arcane Science library.", 2482)
  58. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  59. end
  60. function Step7Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 7, "")
  62. AddQuestStepChat(Quest, 8, "Return to Sneel in Freeport, and report the roekillik followers", 1, "It seems that Sneel's friends believe the roekillik are here in Freeport. I should report what they said to me to Sneel, over near the Academy of Arcane Science library.", 11, 5590218)
  63. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  64. end
  65. function QuestComplete(Quest, QuestGiver, Player)
  66. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  67. UpdateQuestStepDescription(Quest, 8, "")
  68. UpdateQuestTaskGroupDescription(Quest, 3, "I found some false roekillik, and defeated them. Sneel believes there may be some merit to what his friends had to say. This might not bode well for any of us.")
  69. UpdateQuestDescription(Quest, "I eliminated some of the false roekillik who showed up in Freeport, trying to frighten others with their charade. However, their arrival in the city is a stark reminder to us - the roekillik are still out there, and they would like nothing more than to find a way into the cities of Norrath.")
  70. GiveQuestReward(Quest, Player)
  71. end
  72. function Reload(Quest, QuestGiver, Player, Step)
  73. if Step == 1 then
  74. Step1Complete(Quest, QuestGiver, Player)
  75. elseif Step == 2 then
  76. Step2Complete(Quest, QuestGiver, Player)
  77. elseif Step == 3 then
  78. Step3Complete(Quest, QuestGiver, Player)
  79. elseif Step == 4 then
  80. Step4Complete(Quest, QuestGiver, Player)
  81. elseif Step == 5 then
  82. Step5Complete(Quest, QuestGiver, Player)
  83. elseif Step == 6 then
  84. Step6Complete(Quest, QuestGiver, Player)
  85. elseif Step == 7 then
  86. Step7Complete(Quest, QuestGiver, Player)
  87. elseif Step == 8 then
  88. QuestComplete(Quest, QuestGiver, Player)
  89. end
  90. end