9
3

disrupting_haoaeran_rituals.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/TimorousDeep/disrupting_haoaeran_rituals.lua
  3. Script Purpose : Handles the quest, "Disrupting Haoaeran Rituals"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Primary Conzuk Zum'Ha
  8. Preceded by: Disrupting Haoaeran Studies (disrupting_haoaeran_studies.lua)
  9. Followed by: Further Assistance to Chrykori Island (further_assistance_to_chrykori_island.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Earring of Zum'Ha
  13. -- Ritualist's Skullcap
  14. -- Timeworn Necklace
  15. AddQuestStepKill(Quest, 1, "I need to interrupt the Haoaeran rituals being performed south of the Timeworn Pools.", 1, 100, ".", 611, 2630090)
  16. AddQuestStepCompleteAction(Quest, 1, "step1_complete_interruptedRituals")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(Player, "voiceover/english/rok_questvo/primary_conzuk_zum_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zumha/zumha005.mp3", "", "", 3636164534, 195709571, Player)
  22. AddConversationOption(conversation, "I will be as swift as I can.")
  23. StartConversation(conversation, QuestGiver, Player, "And be swift about it! There's obviously far more to the spiroc than we had thought. The more " .. GetName(Spawn) .. ". we give the Haoaerans to experiment with artifacts of power, the more likely they are to turn this power against us -- effectively!")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function step1_complete_interruptedRituals(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have slain the power infused Haoaeran.")
  29. AddQuestStepChat(Quest, 2, "I need to return to Primary Zum'Ha.", 1, ".", 0, 2630042)
  30. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  31. end
  32. function quest_complete(Quest, QuestGiver, Player)
  33. UpdateQuestDescription(Quest, "I have stopped the strange ritual.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. step1_complete_interruptedRituals(Quest, QuestGiver, Player)
  39. end
  40. end