a_time_for_fighting.lua 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/Graystone/a_time_for_fighting.lua
  3. Script Purpose : Handles the quest, "A Time for Fighting"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : Graystone Yard
  7. Quest Giver: Burk Stoneshatter
  8. Preceded by: None
  9. Followed by: Late Shipment (late_shipment.lua)
  10. --]]
  11. local ATIMEFORFIGHTING = 289
  12. function Init(Quest)
  13. -- Ring of the Graystone Mystics
  14. -- Ring of the Graystone Brawlers
  15. AddQuestStepChat(Quest, 1, "I need to pick a fight with Marus Donoval. I need should make a joke about the smell of his feet. Burk says he should be in the tavern.", 1, "Burk has given me a list of people, their locations, and insults meant to goad them into fighting me.", 0, 2350035)
  16. AddQuestStepChat(Quest, 2, "I need to pick a fight with Angus Fallowfur. I should make a joke about his baldness. Burk says he should be behind the armory, on the corner closest to the docks.", 1, "Burk has given me a list of people, their locations, and insults meant to goad them into fighting me.", 0, 2350009)
  17. AddQuestStepChat(Quest, 3, "I need to pick a fight with Dunda Frostgrip. I should make mention of Mav Boilfist near her. Burk says I can find her just south-west of the scribe's shop.", 1, "Burk has given me a list of people, their locations, and insults meant to goad them into fighting me.", 0, 2350047)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_completed_talkedToMarus")
  19. AddQuestStepCompleteAction(Quest, 2, "step2_completed_talkedToAngus")
  20. AddQuestStepCompleteAction(Quest, 3, "step3_completed_talkedToDunda")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. conversation = CreateConversation()
  25. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/burk_stoneshatter/qey_village03/quests/burk_stoneshatter/burk_stoneshatter013a.mp3", "", "", 1501046701, 172770081, Player)
  26. AddConversationOption(conversation, "All right. I will return.")
  27. StartConversation(conversation, QuestGiver, Player, "Return to me once you've fought them all.")
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function step1_completed_talkedToMarus(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have picked a fight with Marus Donoval.")
  33. if QuestIsComplete(Player, ATIMEFORFIGHTING) then
  34. insultsGiven(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function step2_completed_talkedToAngus(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I have picked a fight with Angus Fallowfur.")
  39. if QuestIsComplete(Player, ATIMEFORFIGHTING) then
  40. insultsGiven(Quest, QuestGiver, Player)
  41. end
  42. end
  43. function step3_completed_talkedToDunda(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "I have picked a fight with Dunda Frostgrip.")
  45. if QuestIsComplete(Player, ATIMEFORFIGHTING) then
  46. insultsGiven(Quest, QuestGiver, Player)
  47. end
  48. end
  49. function insultsGiven(Quest, QuestGiver, Player)
  50. UpdateQuestTaskGroupDescription(Quest, 1, "I have started fights with all of the people Burk suggested.")
  51. AddQuestStepChat(Quest, 4, "I need to return to Burk Stoneshatter near the docks.", 1, "I should return to Burk now that I've been in a few fights.", 0, 2350007)
  52. AddQuestStepCompleteAction(Quest, 4, "quest_complete")
  53. end
  54. function quest_complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 4, "I have spoken with Burk Stoneshatter.")
  56. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Burk.")
  57. UpdateQuestDescription(Quest, "I have gotten into three fights around Graystone Yard at the suggestion of Burk Stoneshatter.")
  58. GiveQuestReward(Quest, Player)
  59. end
  60. function Reload(Quest, QuestGiver, Player, Step)
  61. if Step == 1 then
  62. step1_completed_talkedToMarus(Quest, QuestGiver, Player)
  63. elseif Step == 2 then
  64. step2_completed_talkedToAngus(Quest, QuestGiver, Player)
  65. elseif Step == 3 then
  66. step3_completed_talkedToDunda(Quest, QuestGiver, Player)
  67. end
  68. end