9
3

freedom.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : Quests/Antonica/freedom.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.16 02:05:23
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I should check the old Tomb of Varsoon to see if I can find a key to open this lock.", 6, "I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 11, 363.13, -19.49, -662.83, 12)
  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 found the Tomb, and when I did, I thought I heard a snapping sound coming from the chained bundle.")
  26. AddQuestStep(Quest,2,"I should inspect the chained bundle again.",1, 100,"I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 1010)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "The lock disarmed near the old Tomb of Varsoon!")
  31. AddQuestStepKill(Quest, 3, "I should now kill the crabs of Antonica and gather their claws to try to saw through the leather straps on the chained bundle.", 5, 100, "I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 76, 120687, 120118,120610,120417)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I've found a number of different crab claws. Hopefully they might help to cut away the straps binding the chains.")
  36. AddQuestStep(Quest,4,"Use the claws on the chained bundle.",1, 100,"I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 1010)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I've managed to cut the leather straps on the chained bundle.")
  41. AddQuestStepKill(Quest, 5, "I need to kill the Dark Coven conjurors to see if they have any kind of device that can cut through steel chains.", 1, 50, "I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 26, 120182)
  42. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  43. end
  44. function Step5Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 5, "I've found something called an Arcane Saw. I hope this will do the trick.")
  46. AddQuestStep(Quest,6,"Use the arcane saw on the chained bundle.",1, 100,"I may be able to find out what is hidden beneath all of the chains if I take the extra effort to break them open.", 1010)
  47. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 6, "I've found that hidden inside the chained bundle was the legendary maul, Freedom.")
  52. UpdateQuestTaskGroupDescription(Quest, 1, "I've found that hidden inside the chained bundle was the legendary maul, Freedom.")
  53. UpdateQuestDescription(Quest, "I've destroyed all of the chains that were hiding away Freedom, the legendary maul.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. Step4Complete(Quest, QuestGiver, Player)
  65. elseif Step == 5 then
  66. Step5Complete(Quest, QuestGiver, Player)
  67. elseif Step == 6 then
  68. QuestComplete(Quest, QuestGiver, Player)
  69. end
  70. end