9
3

HighShamanOfTheRockpaw.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : HighShamanoftheRockpaw.lua
  3. Script Purpose : Handles the quest, "High Shaman of the Rockpaw"
  4. Script Author : Shatou
  5. Script Date : 1/5/2020
  6. Script Notes :
  7. Zone : Caves
  8. Quest Giver :
  9. Preceded by : Elements of a Ritual
  10. Followed by : none
  11. --]]
  12. local HIGH_SHAMAN_ZEN_DURATH_ID = 1970058
  13. local HEAD_OF_HIGH_SHAMAN_ID = 8063
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "I need to take the summoning staff to the large skull on the level just above Consul Bree. Once there I need to place the staff in the skull to summon the High Shaman.", 1, 100, "I need to summon Zen'Durath and take his head.", 1220, HIGH_SHAMAN_ZEN_DURATH_ID)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have slain High Shaman Zen'Durath.")
  20. GiveQuestItem(Quest, Player, "", HEAD_OF_HIGH_SHAMAN_ID)
  21. AddQuestStepChat(Quest, 2, "I need to return to Consul Bree.", 1, "I need to summon Zen'Durath and take his head.", 11)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 2, "I have spoken with Consul Bree.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain Zen'Durath.")
  28. UpdateQuestDescription(Quest, "I have slain Zen'Durath.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. Step1Complete(Quest, QuestGiver, Player)
  34. elseif Step == 2 then
  35. QuestComplete(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function Accepted(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is accepted
  40. end
  41. function Declined(Quest, QuestGiver, Player)
  42. -- Add dialog here for when the quest is declined
  43. end