9
3

BargainingInBeggarsCourt.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : bargaining_in_beggars_court.lua
  3. Script Purpose : Handles the quest, "Bargaining in Beggar's Court"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 01.09.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. AddQuestStepLocation(Quest, 1, "Search the region for clues", 5, "I need to find out who it it that is encouraging barbarians to leave Freeport for New Halas inside Beggar's Court: Sweat-Stained Cobbles.", 11, 47.60, -7.00, 52.80)
  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, "I heard of a meeting being held in the northwestern common domicile.")
  27. AddQuestStepLocation(Quest, 2, "Investigate the meeting being held in the northwestern common domicile", 5 , "I need to find out who it it that is encouraging barbarians to leave Freeport for New Halas inside Beggar's Court: Sweat-Stained Cobbles.", 11, 51.18, 5.10, -31.55)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I found Clan Chief Malachi Sleetsaber's meeting.")
  32. AddQuestStep(Quest, 3, "Listen to Clan Chief Malachi Sleetsaber's speech", 1, 100, "I need to find out who it it that is encouraging barbarians to leave Freeport for New Halas inside Beggar's Court: Sweat-Stained Cobbles.", 11)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "Clan Chief Malachi Sleetsaber is the one encouraging barbarians to leave Freeport for New Halas.")
  38. AddQuestStepLocation(Quest, 4, "Find Chief Sleetsaber's home", 5, "I need to find a way to coerce Clan Chief Malachi Sleetsaber into recanting his speech. He must encourage barbarians to remain in Freeport, instead.", 11, -30.10, 2.50, -28.19)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I found Chief Sleetsaber's home and wife.")
  43. AddQuestStepChat(Quest, 5, "Threaten Hanne Sleetsaber", 1, "I need to find a way to coerce Clan Chief Malachi Sleetsaber into recanting his speech. He must encourage barbarians to remain in Freeport, instead.", 11, 111)
  44. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  45. end
  46. function Step5Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 5, "I threatened Hanne Sleetsaber and have slain their wolf pups.")
  48. AddQuestStepChat(Quest, 6, "Threaten Chief Sleetsaber", 1, "I need to find a way to coerce Clan Chief Malachi Sleetsaber into recanting his speech. He must encourage barbarians to remain in Freeport, instead.", 11, 5590515)
  49. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  50. end
  51. function Step6Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 6, "")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "Clan Chief Malachi Sleetsaber has seen the error of his ways and will now be encouraging barbarians to remain in Freeport.")
  54. AddQuestStep(Quest, 7, "Return to the northwestern common domicile to witness Clan Chief Malachi's speech", 1, 100, "Clan Chief Malachi Sleetsaber told me he was going to publicly praise Lucan.", 11)
  55. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  56. end
  57. function Step7Complete(Quest, QuestGiver, Player)
  58. UpdateQuestStepDescription(Quest, 7, "")
  59. UpdateQuestTaskGroupDescription(Quest, 3, "Clan Chief Malachi Sleetsaber publicly praised Lucan, and is now encouraging other barbarians to remain in Freeport.")
  60. AddQuestStepChat(Quest, 8, "Return to Selyse Brazenroot", 1, "I should return to Selyse Brazenroot, at the Freeport Militia House in the city of Freeport.", 11, 5590142)
  61. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  62. end
  63. function QuestComplete(Quest, QuestGiver, Player)
  64. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  65. UpdateQuestStepDescription(Quest, 8, "")
  66. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Selyse Brazenroot, the barbarian mentor.")
  67. UpdateQuestDescription(Quest, "Selyse Brazenroot, the barbarian mentor in Freeport, was proud to hear that I had identified the would-be betrayer as Clan Chief Malachi Sleetsaber, and cleaved some sense into him, convincing him to reverse his prior messages and use his charisma and title to convince our barbarian brethren to stay within Freeport, instead.")
  68. GiveQuestReward(Quest, Player)
  69. end
  70. function Reload(Quest, QuestGiver, Player, Step)
  71. if Step == 1 then
  72. Step1Complete(Quest, QuestGiver, Player)
  73. elseif Step == 2 then
  74. Step2Complete(Quest, QuestGiver, Player)
  75. elseif Step == 3 then
  76. Step3Complete(Quest, QuestGiver, Player)
  77. elseif Step == 4 then
  78. Step4Complete(Quest, QuestGiver, Player)
  79. elseif Step == 5 then
  80. Step5Complete(Quest, QuestGiver, Player)
  81. elseif Step == 6 then
  82. Step6Complete(Quest, QuestGiver, Player)
  83. elseif Step == 7 then
  84. Step7Complete(Quest, QuestGiver, Player)
  85. elseif Step == 8 then
  86. QuestComplete(Quest, QuestGiver, Player)
  87. end
  88. end