becoming_a_brawler.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_brawler.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:21
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Korong Shatterjaw near the arena.", 1, "I need to find Korong Shatterjaw near the arena.", 11, 1)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I found Korong Shatterjaw.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found Korong Shatterjaw and spoke with him.")
  27. AddQuestStepChat(Quest, 2, "I need to speak to Korong inside the building.", 1, "I should meet Korong Shatterjaw in a room inside the Blood Haze Inn just west of where he was standing.", 11, 1)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I need to fight Korong's thugs!")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke to Korong inside the building.")
  33. AddQuestStepKill(Quest, 3, "I need to defeat all these thugs Korong is throwing at me!", 1, 100, "I need to fight off Korong's brawlers!", 11, 1)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I defeated Korong's thugs.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I defeated Korong's thugs.")
  39. AddQuestStepChat(Quest, 4, "I need to speak to Korong inside the building.", 1, "I need to speak to Korong.", 11, 1)
  40. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  44. UpdateQuestStepDescription(Quest, 4, "I spoke with Korong.")
  45. UpdateQuestTaskGroupDescription(Quest, 4, "I spoke with Korong.")
  46. UpdateQuestDescription(Quest, "I took on all of the Brawler's that Korong Shatterjaw threw at me and survived. He seemed somewhat impressed with my ability and said some day I should be ready to challenge him.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1Complete(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. Step2Complete(Quest, QuestGiver, Player)
  54. elseif Step == 3 then
  55. Step3Complete(Quest, QuestGiver, Player)
  56. elseif Step == 4 then
  57. QuestComplete(Quest, QuestGiver, Player)
  58. end
  59. end