TrainingWillGetYouEverywhere.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : training_will_get_you_everywhere.lua
  3. Script Purpose : Handles the quest, "Training Will Get You Everywhere"
  4. Script Author : Neatz09
  5. Script Date : 1/19/2019
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The Sprawl
  8. Quest Giver : Enforcer Kurdek
  9. Preceded by : None
  10. Followed by :
  11. --]]
  12. local Enforcer_Kurdek = 1260017
  13. local Trainer_Durbok = 1260016
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "Speak to Trainer Durbok", 1, "I need to speak to Trainer Durbok in the Sprawl, who is teaching combat to the Giantslayers. I can reach the Sprawl by using any of the bells in and around the City of Freeport.", 11, Trainer_Durbok)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is accepted
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have spoken to Trainer Durbok, who is displeased with the progress of the Giantslayers.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Trainer Durbok and must tell Enforcer Kurdek what I have learned.")
  30. AddQuestStepChat(Quest, 2, "Return to Enforcer Kurdek", 1, "I must return to Enforcer Kurdek in the Sprawl with my report. I can reach the Sprawl by using any of the bells in and around the City of Freeport.", 11, Enforcer_Kurdek)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I have returned to Enforcer Kurdek and told him what I learned from Trainer Durbok.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have reported back to Enforcer Kurdek.")
  37. UpdateQuestDescription(Quest, "I spoke with Trainer Durbok, who feels that the Giantslayers are not focused enough on their training. He feels that their leader, Brutemaster Tarden, is responsible for this failing. Enforcer Kurdek has been notified and is none too happy about it.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end