bronas_guard_check.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : bronas_guard_check.lua
  3. Script Purpose : Handles the quest, "Brona's Guard Check"
  4. Script Author : torsten
  5. Script Date : 11.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Slaver Brona
  9. Preceded by : Brona's Thralls
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to check the gate in Big Bend", 20, "I'm supposed to check all of the gates that lead into the city.", 11, -2, 3, -67, 134)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I've checked the gate in Big Bend")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I've checked the gate in Big Bend")
  19. AddQuestStepLocation(Quest, 2, "I need to check the gate in Longshadow Alley", 20, "I'm supposed to check all of the gates that lead into the city.", 11, 13, 3, 67, 138)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I've checked the gate in Longshadow Alley")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I've checked the gate in Longshadow Alley")
  25. AddQuestStepLocation(Quest, 3, "I need to check the gate in Scale Yard", 20, "I'm supposed to check all of the gates that lead into the city.", 11, -4, -5, -6, 139)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I've checked the gate in Scale Yard")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I've checked the gate Scale Yard")
  31. AddQuestStepLocation(Quest, 4, "I need to check the gate in Stonestair Byway", 20, "I'm supposed to check all of the gates that lead into the city.", 11, 6, -4, -94, 166)
  32. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  33. end
  34. function Step4Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 4, "I've checked the gate in Stonestair Byway")
  36. UpdateQuestTaskGroupDescription(Quest, 4, "I've checked the gate in Stonestair Byway")
  37. AddQuestStepLocation(Quest, 5, "I need to check the gate in Temple Street", 20, "I'm supposed to check all of the gates that lead into the city.", 11, 18, 2, 24, 136)
  38. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  39. end
  40. function Step5Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 5, "I've checked the gate in Temple Street")
  42. UpdateQuestTaskGroupDescription(Quest, 5, "I've checked all of the gates leading into the city.")
  43. AddQuestStepChat(Quest, 6, "I should return to Slaver Brona.", 1, "I should return to Slaver Brona.", 11, 1340030)
  44. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. UpdateQuestDescription(Quest, "It was easy enough work, but that Brona is up to something and I've unwittingly helped her. I wonder what she is trying to accomplish.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Accepted(Quest, QuestGiver, Player)
  51. -- Add dialog here for when the quest is accepted
  52. end
  53. function Declined(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is declined
  55. end
  56. function Deleted(Quest, QuestGiver, Player)
  57. -- Remove any quest specific items here when the quest is deleted
  58. end
  59. function Reload(Quest, QuestGiver, Player, Step)
  60. if Step == 1 then
  61. Step1Complete(Quest, QuestGiver, Player)
  62. elseif Step == 2 then
  63. Step2Complete(Quest, QuestGiver, Player)
  64. elseif Step == 3 then
  65. Step3Complete(Quest, QuestGiver, Player)
  66. elseif Step == 4 then
  67. Step4Complete(Quest, QuestGiver, Player)
  68. elseif Step == 5 then
  69. Step5Complete(Quest, QuestGiver, Player)
  70. elseif Step == 6 then
  71. QuestComplete(Quest, QuestGiver, Player)
  72. end
  73. end