the_art_of_combat.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/QueensColony/the_art_of_combat.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Handles the quest, "The Art of Combat"
  6. Zone : The Queens Colony
  7. Quest Giver: Murrar Shar
  8. Preceded by: None
  9. Followed by: A Presence of Evil
  10. --]]
  11. function Init(Quest)
  12. -- Qeynosian Cloth Mitts
  13. -- Qeynosian Leather Gloves
  14. -- Qeynosian Studded Gloves
  15. -- Qeynosian Plated Gauntlets
  16. AddQuestStepChat(Quest, 1, "I need to speak to Trainer Hayl McGuinness at the Training Grounds northwest of Murrar Shar.", 1, "I need to learn about combat from Trainer Hayl McGuinness.", 0, 2530070)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkToHayl")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. if QuestGiver ~= nil then
  21. if GetDistance(Player, QuestGiver) < 30 then
  22. FaceTarget(QuestGiver, Player)
  23. conversation = CreateConversation()
  24. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/murrar_shar/tutorial_island02_revamp/quests/citizenship/murrarshar/murrarshar032.mp3", "", "", 80247345, 2680267873, Player)
  25. AddConversationOption(conversation, "Thanks.")
  26. StartConversation(conversation, QuestGiver, Player, "Good luck.")
  27. end
  28. end
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function step1_complete_talkToHayl(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have spoken with Hayl McGuinness.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Hayl McGuinness.")
  35. AddQuestStep(Quest, 2, "I need to defeat a sparring partner in combat. There are several sparring partners just north of Trainer Hayl McGuinness.", 1, 100, "I need to learn about combat from Trainer Hayl McGuinness.", 11, 0, 2530070)
  36. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedSparringPartner")
  37. end
  38. function step2_complete_killedSparringPartner(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have defeated a sparring partner in combat.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I have defeated a sparring partner in combat.")
  41. AddQuestStepChat(Quest, 3, "I should speak with Trainer Hayl McGuinness and tell him of my victory.", 1, "I need to learn about combat from Trainer Hayl McGuinness.", 0, 2530070)
  42. AddQuestStepCompleteAction(Quest, 3, "step3_complete_talkToHayl")
  43. end
  44. function step3_complete_talkToHayl(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 3, "I have spoken to Sergeant Hayl McGuinness.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I have won a match against one of the sparring partners.")
  47. AddQuestStepChat(Quest, 4, "I should tell Murrar that my training was successful.", 1, "I should return to Murrar Shar to show that I am ready for my next challenege.", 0, 2530076)
  48. AddQuestStepCompleteAction(Quest, 4, "step4_complete_talkToMurrar")
  49. end
  50. function step4_complete_talkToMurrar(Quest, QuestGiver, Player)
  51. -- UpdateQuestDescription(Quest, "I have learned some of the basics of combat from Trainer Hayl McGuinness at the Queen's Colony. Hopefully this knowledge helps me serve Qeynos and uncover the trouble here.")
  52. -- UpdateQuestTaskGroupDescription(Quest, "I have reported back to Murrar Shar.")
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. step1_complete_talkToHayl(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. step2_complete_killedSparringPartner(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. step3_complete_talkToHayl(Quest, QuestGiver, Player)
  62. end
  63. end