9
3

becoming_a_shaman.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_shaman.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 02:09:47
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to find the building where the spirits dwell.", 1, "I need to find the residence of the spirits. I get the feeling it has already drawn the attention of curious felines.", 11, 1)
  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 found the dwelling place of the spirits.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found the residence the spirits are haunting.")
  27. AddQuestStepKill(Quest, 2, "I need to subdue the spirits.", 1, 100, "I need to subdue the rebellious spirits.", 611, 1)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I subdued the spirits.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I subdued the spirits.")
  33. AddQuestStepChat(Quest, 3, "I need to return to Priest Kelian.", 1, "I should return to Priest Kelian and let him know the spirits were subdued.", 11, 1440466)
  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 spoke to Priest Kelian.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke to Priest Kelian.")
  40. UpdateQuestDescription(Quest, "I subdued the rebellious spirits. They are now mine to control. I have emerged as a master of the spirit world. I am a Shaman.")
  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