ServingThePrimeHealer.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/VerminsSnye/ServingThePrimeHealer.lua
  3. Script Purpose : Handles the quest, "Serving the Prime Healer"
  4. Script Author : premierio015
  5. Script Date : 17.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Vermin's Snye
  8. Quest Giver : Brother Garvis
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect twenty grave scorpius' venom sacs.", 20, 100, "I need to collect venom sacs from some of the grave scorpius and giant burrowers here in the Vermin's Snye for Brother Garvis.", 1151, 2000003)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have all the grave scorpius' venom sacs I need.")
  27. AddQuestStepKill(Quest, 2, "I need to collect ten giant burrower venom sacs.", 10, 100, "I need to collect venom sacs from some of the grave scorpius and giant burrowers here in the Vermin's Snye for Brother Garvis.", 201, 2000004)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have all the giant burrower venom sacs I need.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the venom sacs.")
  33. AddQuestStepChat(Quest, 3, "I need to return to Brother Garvis.", 1, "I need to take these venom sacs back to Brother Garvis in the Vermin's Snye.", 11, 2000002)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "I returned to Brother Garvis.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the venom sacs to Brother Garvis.")
  40. UpdateQuestDescription(Quest, "It was a long and hard job but I was able to do the work Brother Garvis asked me to perform. The venom sacs will go a long way in creating serums to heal the poisoned and sick.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2Complete(Quest, QuestGiver, Player)
  48. elseif Step == 3 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end