high_shaman_of_the_rockpaw.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/Caves/high_shaman_of_the_rockpaw.lua
  3. Script Purpose : Handles the quest, "High Shaman of the Rockpaw"
  4. Script Author : Scatman
  5. Script Date : 2009.10.18
  6. Zone : The Caves
  7. Quest Giver: Consul Bree
  8. Preceded by: Elements of a Ritual (elements_of_a_ritual.lua)
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(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, 6922)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledZenDurath")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. -- summoning staff
  19. if not HasItem(Player, 11850) then
  20. SummonItem(Player, 11850, 1)
  21. end
  22. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/consul_bree/qey_adv03_caves/quests/bree/bree_015a.mp3", "", "", 3288361383, 1793249646, Player)
  23. AddConversationOption(conversation, "I understand.")
  24. StartConversation(conversation, QuestGiver, Player, "And be careful. Zen'Durath will not be pleased to see you.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Step1_Complete_KilledZenDurath(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 2, "I have slain High Shaman Zen'Durath.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Consul Bree.", 1, "I need to summon Zen'Durath and take his head.", 0, 1970010)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- High Shaman's head
  35. while HasItem(Player, 6922) do
  36. RemoveItem(Player, 6922)
  37. end
  38. UpdateQuestStepDescription(Quest, 2, "I have spoken with Consul Bree.")
  39. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain Zen'Durath.")
  40. UpdateQuestDescription(Quest, "I have slain Zen'Durath.")
  41. local Emma = GetSpawn(Player, 1970012)
  42. local Delsun = GetSpawn(Player, 1970011)
  43. if Emma ~= nil then
  44. PlayFlavor(Emma, "voiceover/english/tutorial_revamp/emma_torque/qey_adv03_caves/qst_emma_quest_series_done_564c6b5f.mp3", "Great job!", "cheer", 2428113896, 1601999227, Player)
  45. end
  46. if Delsun ~= nil then
  47. PlayFlavor(Delsun, "voiceover/english/tutorial_revamp/lieutenant_delsun/qey_adv03_caves/qst_delsun_quest_series_done_4827769e.mp3", "You make Qeynos proud, soldier.", "salute", 523058466, 3752111752, Player)
  48. end
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. Step1_Complete_KilledZenDurath(Quest, QuestGiver, Player)
  54. end
  55. end