TheHiddenNewHalasian.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : Quests/Freeport/TheHiddenNewHalasian.lua
  3. Script Purpose : Handles the quest, "The Hidden New Halasian"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 30.08.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Freeport
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak with Mikki Denune, near Dreadnaught's Plaza", 1, "I need to speak with the suspected traitors on the topics of New Halas and religion, in hopes that they’ll reveal themselves.", 11, 5590179)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "")
  27. AddQuestStepChat(Quest, 2, "Speak with Clan Chief Malachi Sleetsaber, near the guild hall in southern Freeport", 1, "I need to speak with the suspected traitors on the topics of New Halas and religion, in hopes that they’ll reveal themselves.", 11, 5590515)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "")
  32. AddQuestStepChat(Quest, 3, "Speak with Gerhild Maclennan, near The Emporium", 1, "I need to speak with the suspected traitors on the topics of New Halas and religion, in hopes that they’ll reveal themselves.", 11, 5590198)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "Gerhild Maclennan spoke of Erollisi Marr and New Halas!")
  37. AddQuestStepChat(Quest, 4, "Speak with Asbjorn Greyaxe, in the Jade Tiger's Den", 1, "I need to speak with the suspected traitors on the topics of New Halas and religion, in hopes that they’ll reveal themselves.", 11, 5590315)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "")
  42. UpdateQuestTaskGroupDescription(Quest, 1, "I believe that I flushed out the traitor, Gerhild Maclennan, by striking up a conversation about New Halas and religion.")
  43. AddQuestStepChat(Quest, 5, "Return to Selyse Brazenroot", 1, "I should return to Selyse Brazenroot, at the Freeport Militia House in the city of Freeport.", 11, 5590142)
  44. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  48. UpdateQuestStepDescription(Quest, 5, "")
  49. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Selyse Brazenroot, the barbarian mentor.")
  50. UpdateQuestDescription(Quest, "Selyse Brazenroot, the barbarian mentor in Freeport, appreciated my attempt to flush out the barbarian encouraging others to move from Freeport to New Halas, despite her doubts that I found the individual.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. Step4Complete(Quest, QuestGiver, Player)
  62. elseif Step == 5 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end