9
3

the_art_of_combat_evil.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/OutpostOverlord/the_art_of_combat_evil.lua
  3. Script Purpose : Handles the quest, "The Art of Combat"
  4. Script Author : Scatman (Updated by Cynnar 2018.09.16 09:09:47)
  5. Script Date : 2008.09.04
  6. Zone : Outpost of the Overlord
  7. Quest Giver: Tayil N'Velex
  8. Preceded by: None
  9. Followed by: Seaside Stew (seaside_stew.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Freeportian Cloth Mitts
  13. -- Freeportian Leather Gloves
  14. -- Freeportian Studded Gloves
  15. -- Freeportian Plated Gauntlets
  16. AddQuestStepChat(Quest, 1, "I need to speak with Trainer Darg Frostwind at Combat Clearing, northwest of Tayil N'Velex.", 1, "I need to speak with Darg Frostwind. He will train me in the ways of combat.", 0, 2780045)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToDarg")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex035.mp3", "", "", 613247670, 1228791827, Player)
  23. AddConversationOption(conversation, "Thanks.")
  24. StartConversation(conversation, QuestGiver, Player, "In case you forgot, I've written down his name and location in your quest journal.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_talkedToDarg(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have spoken with Darg Frostwind.")
  30. AddQuestStepKill(Quest, 2, "I need to defeat a sparring partner in combat. There are several sparring partners just north of Trainer Darg Frostwind.", 1, 100, "I need to speak with Darg Frostwind. He will train me in the ways of combat.", 611, 2780002,2780000,2780001)
  31. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedSparringPartner")
  32. end
  33. function step2_complete_killedSparringPartner(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have defeated a sparring partner in combat.")
  35. AddQuestStepChat(Quest, 3, "I need to speak with Trainer Darg Frostwind again.", 1, "I need to speak with Darg Frostwind. He will train me in the ways of combat.", 0, 2780045)
  36. AddQuestStepCompleteAction(Quest, 3, "step3_complete_talkedToDarg")
  37. end
  38. function step3_complete_talkedToDarg(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I have spoken to Sergeant Darg Frostwind.")
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I have defeated a sparring partner in combat.")
  41. AddQuestStepChat(Quest, 4, "I need to return to Tayil N'Velex.", 1, "Now that I have completed my combat training I should speak with Tayil N'Velex.", 0, 2780038)
  42. AddQuestStepCompleteAction(Quest, 4, "step4_complete_talkToTayil")
  43. end
  44. function step4_complete_talkToTayil(Quest, QuestGiver, Player)
  45. UpdateQuestDescription(Quest, "I have learned some of the basics of combat from Trainer Darg Frostwind at the Outpost of the Overlord. Hopefully this knowledge helps me serve Freeport and uncover the trouble here.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. step1_complete_talkedToDarg(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. step2_complete_killedSparringPartner(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. step3_complete_talkedToDarg(Quest, QuestGiver, Player)
  55. end
  56. end
  57. function Deleted(Quest, QuestGiver, Player)
  58. end