training_will_get_you_everywhere.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/TheSprawl/training_will_get_you_everywhere.lua
  3. Script Purpose : Handles the quest, "Training Will Get You Everywhere"
  4. Script Author : Scatman
  5. Script Date : 2009.07.25
  6. Zone : The Sprawl
  7. Quest Giver: Enforcer Kurdek
  8. Preceded by: None
  9. Followed by: Bullying the Bully (bullying_the_bully.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must find Trainer Durbok and ask him how his training of the Giantslayers is progressing.", 1, "I need to speak to Trainer Durbok, who is teaching combat to the Giantslayers.", 0, 1260027)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithDurbok")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/enforcer_kurdek/fprt_adv03_sprawl/quests/enforcer_kurdek020.mp3", "", "", 593639931, 1053980414, Player)
  19. AddConversationOption(conversation, "I'll be back when I have your information.")
  20. StartConversation(conversation, QuestGiver, Player, "Trainer Durbok can be found ahead and to the right. Just follow the path to the west and north. You'll pass a whole lot of Giantslayers, but don't let them intimidate you. Remember, you're on official Dreadnaught business!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_SpokeWithDurbok(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken to Trainer Durbok, who is displeased with the progress of the Giantslayers.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Trainer Durbok and must tell Enforcer Kurdek what I have learned.")
  27. AddQuestStepChat(Quest, 2, "I should return to Enforcer Kurdek near the gate to Big Bend.", 1, "I must return to Enforcer Kurdek with my report.", 0, 1260006)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have returned to Enforcer Kurdek and told him what I learned from Trainer Durbok.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have reported back to Enforcer Kurdek.")
  33. GiveQuestReward(Quest, Player)
  34. 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.")
  35. end
  36. function Reload(Quest, QuestGiver, Player)
  37. if Step == 1 then
  38. Step1_Complete_SpokeWithDurbok(Quest, QuestGiver, Player)
  39. end
  40. end