unfinished_breastplate.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : Quests/Blackburrow/unfinished_breastplate.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.24 03:07:39
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I'm going to need to kill Sabertooth miners in Blackburrow and collect the buckles to repair this armor.", 4, 100, "With a little effort, I believe I can transform this unfinished breastplate into something better.", 761, 170010)
  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've gathered a number of buckles.")
  26. AddQuestStepZoneLoc(Quest, 2, "I need to search the barrels in the brewery for another set of buckles.", 10, "With a little effort, I believe I can transform this unfinished breastplate into something better.", 760, 26, -39, 63, 17)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've found another set of buckles.")
  31. AddQuestStepKill(Quest, 3, "I need to kill the gnoll commander Nantglas to see if he has any rivets", 1, 100, "With a little effort, I believe I can transform this unfinished breastplate into something better.", 645, 170050)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I've collected some rivets from the gnoll commander")
  36. AddQuestStepZoneLoc(Quest, 4, "I need to salvage some more rivets from the Collapsed Everfrost Tunnel", 10, "With a little effort, I believe I can transform this unfinished breastplate into something better.", 645, -92, 0, -92, 17)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I've collected some rivets from the Tunnel")
  41. AddQuestStepKill(Quest, 5, "I want to see how the armor holds up against some gnolls.", 15, 100, "With a little effort, I believe I can transform this unfinished breastplate into something better.", 11, 170017, 170040, 170014, 170023, 170003, 170035, 170083, 170026, 170044, 170019, 170041, 170029, 170022, 170057, 170051, 170018, 170010, 170042, 170002, 170032, 170031, 170043, 170004, 170033, 170039, 170030, 170086, 170056, 170046, 170038, 170027, 170084, 170050, 170028, 170085, 170011)
  42. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  43. end
  44. function QuestComplete(Quest, QuestGiver, Player)
  45. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  46. UpdateQuestStepDescription(Quest, 5, "I've tested the mail.")
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to change the unfinished breastplate into some Gnawed Mail.")
  48. if HasItem(Player, 3825) then -- an unfinished breastplate
  49. RemoveItem(Player, 3825)
  50. end
  51. UpdateQuestDescription(Quest, "Applying a little bit of effort, I've been able to change the unfinished breastplate into some Gnawed Mail. <br> <br>")
  52. GiveQuestReward(Quest, Player)
  53. end
  54. function Reload(Quest, QuestGiver, Player, Step)
  55. if Step == 1 then
  56. Step1Complete(Quest, QuestGiver, Player)
  57. elseif Step == 2 then
  58. Step2Complete(Quest, QuestGiver, Player)
  59. elseif Step == 3 then
  60. Step3Complete(Quest, QuestGiver, Player)
  61. elseif Step == 4 then
  62. Step4Complete(Quest, QuestGiver, Player)
  63. elseif Step == 5 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end