9
3

ancient_kite_shield.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/Antonica/ancient_kite_shield.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.16 03:05:30
  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 need to go to Crater Pond and find the perfect spot to wash the dirt from the shield.", 12, "If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 11, 85, -24, 502, 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 rinsed a lot of dirt from the shield.")
  26. AddQuestStep(Quest,2,"I should inspect the shield again.",1, 100,"If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 2268)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've inspected the shield after washing it.")
  31. AddQuestStepKill(Quest, 3, "I need to kill lowland badgers in Antonica for their bristled fur.", 3, 75, "If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 1095, 120213,120157 )
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I've gathered a lot fur from the lowland badgers.")
  36. AddQuestStep(Quest,4,"I should use the badger fur on the shield.",1, 100,"If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 2268)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I've nearly cleaned most of the shield.")
  41. AddQuestStepKill(Quest, 5, "I need to gather the acidic poison from the earthcrawlers in Antonica.", 5, 100, "If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 2510, 120121)
  42. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  43. end
  44. function Step5Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 5, "I've gathered enough of the poison to clean the shield off.")
  46. AddQuestStep(Quest,6,"I should use crawler acid to remove the last of the caked dirt on the shield.",1, 100,"If I'm going to clean this shield and return to working condition, I'll need to put some effort into it.", 2268)
  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 cleaned all off the dirt from the Ancient Kite Shield.")
  52. UpdateQuestTaskGroupDescription(Quest, 1, "I've cleaned all off the dirt from the Ancient Kite Shield.")
  53. UpdateQuestDescription(Quest, "I've cleaned the dirt off of the shield and now have a usable Ancient Kite Shield.")
  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