meteoric_hoop.lua 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : Quests/Antonica/meteoric_hoop.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.16 03:05:09
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to gather a lot of ink from the octopi in Antonica.", 20, 100, "If I'm going to shape this meteor chunk, I'm going to have to put forth some extra effort.", 1207, 120032,120085 ,120193,120194)
  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 been able to gather enough ink to use on the meteor chunk.")
  26. AddQuestStep(Quest,2,"I should apply this ink to the meteor chunk now.",1, 100,"If I'm going to shape this meteor chunk, I'm going to have to put forth some extra effort.", 146)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've applied the ink and made the chunk a lot darker.")
  31. AddQuestStepHarvest(Quest, 3, "I need to harvest some Sandwashed Rock to make a hoop.", 1, 100, "I need to harvest a lot of Sandwashed Rock to make a hoop.", 1186, 121172)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I've been able to gather the rock I'll need.")
  36. AddQuestStep(Quest,4,"Compare the harvested rock to the meteor chunk.",1, 100,"If I'm going to shape this meteor chunk, I'm going to have to put forth some extra effort.", 146)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. --
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I've compared the meteor chunk to the harvested stones.")
  42. AddQuestStepKill(Quest, 5, "I need to kill Cavemaw tunnelers.", 1, 100, "Now I need to find a small rock hammer from the Cavemaw tunnelers.", 2262, 120290)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "I've found a small rock hammer.")
  47. AddQuestStep(Quest,6,"I should use the small rock hammer on the meteor chunk to craft it into something useful.",1, 100,"Now I need to find a small rock hammer from the Cavemaw tunnelers.", 146)
  48. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  49. end
  50. function QuestComplete(Quest, QuestGiver, Player)
  51. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  52. UpdateQuestStepDescription(Quest, 6, "I've been able to take the meteor chunk I found and turn it into a nice Meteoric Hoop.")
  53. UpdateQuestDescription(Quest, "I've been able to take the meteor chunk I found and turn it into a nice Meteoric Hoop.")
  54. UpdateQuestDescription(Quest, "I've been able to take the meteor chunk I found and turn it into a nice Meteoric Hoop.")
  55. GiveQuestReward(Quest, Player)
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1Complete(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2Complete(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. Step3Complete(Quest, QuestGiver, Player)
  64. elseif Step == 4 then
  65. Step4Complete(Quest, QuestGiver, Player)
  66. elseif Step == 5 then
  67. Step5Complete(Quest, QuestGiver, Player)
  68. elseif Step == 6 then
  69. QuestComplete(Quest, QuestGiver, Player)
  70. end
  71. end