Reinforcements.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Reinforcements.lua
  3. Script Purpose : Handles the quest, "Reinforcements"
  4. Script Author : Shatou
  5. Script Date : 1/8/2020
  6. Script Notes :
  7. Zone : Caves
  8. Quest Giver : Lieutenant Dawson
  9. Preceded by : A Final Foe
  10. Followed by : A Lack of Information (in the Caves)
  11. --]]
  12. local CONSUL_BREE_ID = 1970004
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I must report to Consul Bree in The Caves.", 1, "I must report to Consul Bree in The Caves to help in the defense of Qeynos.", 11, CONSUL_BREE_ID)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function QuestComplete(Quest, QuestGiver, Player)
  18. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  19. UpdateQuestStepDescription(Quest, 1, "I have spoken with Consul Bree.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Consul Bree.")
  21. UpdateQuestDescription(Quest, "I have spoken with Consul Bree.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Reload(Quest, QuestGiver, Player, Step)
  25. if Step == 1 then
  26. QuestComplete(Quest, QuestGiver, Player)
  27. end
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is accepted
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end