12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --[[
- Script Name : Quests/Oakmyst/destroy_the_corruption.lua
- Script Purpose : Handles the quest, "Destroy the Corruption"
- Script Author : Scatman
- Script Date : 2009.05.09
-
- Zone : Oakmyst Forest
- Quest Giver: Scholar Neola
- Preceded by: Judgement of the Dryads (judgement_of_the_dryads.lua)
- Followed by: None
- --]]
- function Init(Quest)
- AddQuestStepKill(Quest, 1, "Find and defeat Rotweed.", 1, 100, "I must slay Rotweed. This being can be found in the Teardrop Cave in Oakmyst Forest.", 611, 1950029)
- AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledRotweed")
- end
- function Accepted(Quest, QuestGiver, Player)
- FaceTarget(QuestGiver, Player)
- conversation = CreateConversation()
-
- PlayFlavor(QuestGiver, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa002.mp3", "", "", 3988531876, 1061259431, Player)
- AddConversationOption(conversation, "What is Rotweed?", "WhatIsRotweed")
- AddConversationOption(conversation, "I will battle this Rotweed and return victorious.")
- StartConversation(conversation, QuestGiver, Player, "The evil calls itself Rotweed and lurks in the darkness of Teardrop Cave. It buries itself in the cave walls and exudes corruption upon this woodland. ")
- end
- function Declined(Quest, QuestGiver, Player)
- end
- function Step1_Complete_KilledRotweed(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I have found and defeated Rotweed .")
- UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the many creatures that made up Rotweed the plant fiend.")
- AddQuestStepChat(Quest, 2, "Speak to Empress Anassa.", 1, "I must return to speak to Empress Anassa in Oakmyst Forest.", 0, 1950050)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- end
- function QuestComplete(Quest, QuestGiver, Player)
- UpdateQuestDescription(Quest, "I encountered and defeated the twisted plant fiend Rotweed. Empress Anassa of the Oakmyst dryads was very appreciative.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Step1_Complete_KilledRotweed(Quest, QuestGiver, Player)
- end
- end
|