--[[ Script Name : Quests/MultipleZones/lore_and_legend_shadowed_man.lua Script Author : AussieGlen Script Date : 2022.01.01 01:01:37 Script Purpose : Zone : MultipleZones Quest Giver: Preceded by: None Followed by: --]] function Init(Quest) AddQuestStepKillByRace(Quest, 1, "I need to find a shadowman spirit.", 1, 35, "I must locate several shadowman body parts.", 2516, 283) AddQuestStepKillByRace(Quest, 2, "I need to find a shadowman shadowed heart.", 1, 25, "I must locate several shadowman body parts.", 2516, 283) AddQuestStepKillByRace(Quest, 3, "I need to find a shadowman collected darkness.", 1, 10, "I must locate several shadowman body parts.", 2516, 283) AddQuestStep(Quest, 4, "I need to find and study a shadowman aspect of shadow.", 1, 100, "I must locate several shadowman body parts.", 11) AddQuestStep(Quest, 5, "I need to find and study a shadowman vortex ripple.", 1, 100, "I must locate several shadowman body parts.", 11) AddQuestStep(Quest, 6, "I need to find and study a shadowman void kernel.", 1, 100, "I must locate several shadowman body parts.", 11) AddQuestStep(Quest, 7, "I need to find and study a shadowman swirling shadow.", 1, 100, "I must locate several shadowman body parts.", 11) AddQuestStep(Quest, 8, "I need to find and study a shadowman planar fiber.", 1, 100, "I must locate several shadowman body parts.", 11) AddQuestStepCompleteAction(Quest, 1, "Step1Complete") AddQuestStepCompleteAction(Quest, 2, "Step2Complete") AddQuestStepCompleteAction(Quest, 3, "Step3Complete") AddQuestStepCompleteAction(Quest, 4, "Step4Complete") AddQuestStepCompleteAction(Quest, 5, "Step5Complete") AddQuestStepCompleteAction(Quest, 6, "Step6Complete") AddQuestStepCompleteAction(Quest, 7, "Step7Complete") AddQuestStepCompleteAction(Quest, 8, "Step8Complete") end function Accepted(Quest, QuestGiver, Player) end function Declined(Quest, QuestGiver, Player) end function quest_complete(Quest, QuestGiver, Player) end function Reload(Quest, QuestGiver, Player, Step) if Step == 1 then Step1Complete(Quest, QuestGiver, Player) elseif Step == 2 then Step2Complete(Quest, QuestGiver, Player) elseif Step == 3 then Step3Complete(Quest, QuestGiver, Player) elseif Step == 4 then Step4Complete(Quest, QuestGiver, Player) elseif Step == 5 then Step5Complete(Quest, QuestGiver, Player) elseif Step == 6 then Step6Complete(Quest, QuestGiver, Player) elseif Step == 7 then Step7Complete(Quest, QuestGiver, Player) elseif Step == 8 then Step8Complete(Quest, QuestGiver, Player) end end function CheckProgress(Quest, QuestGiver, Player) if QuestStepIsComplete(Player, 5409, 1) and QuestStepIsComplete(Player, 5409, 2) and QuestStepIsComplete(Player, 5409, 3) and QuestStepIsComplete(Player, 5409, 4) and QuestStepIsComplete(Player, 5409, 5) and QuestStepIsComplete(Player, 5409, 6) and QuestStepIsComplete(Player, 5409, 7) and QuestStepIsComplete(Player, 5409, 8) then QuestIsComplete(Quest, QuestGiver, Player) end end function Step1Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 1, "I have found a shadowman spirit.") CheckProgress(Quest, QuestGiver, Player) end function Step2Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 2, "I have found a shadowman shadowed heart.") CheckProgress(Quest, QuestGiver, Player) end function Step3Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 3, "I have found a shadowman collected darkness.") CheckProgress(Quest, QuestGiver, Player) end function Step4Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 4, "I have found and studied a shadowman aspect of shadow.") CheckProgress(Quest, QuestGiver, Player) end function Step5Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 5, "I have found and studied a shadowman vortex ripple.") CheckProgress(Quest, QuestGiver, Player) end function Step6Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 6, "I have found and studied a shadowman void kernel.") CheckProgress(Quest, QuestGiver, Player) end function Step7Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 7, "I have found and studied a shadowman swirling shadow.") CheckProgress(Quest, QuestGiver, Player) end function Step8Complete(Quest, QuestGiver, Player) UpdateQuestStepDescription(Quest, 8, "I have found and studied a shadowman planar fiber.") CheckProgress(Quest, QuestGiver, Player) end function QuestIsComplete(Quest, QuestGiver, Player) UpdateQuestTaskGroupDescription(Quest, 1, "I have located all of the necessary shadowman body parts.") UpdateQuestDescription(Quest, "I have learned the secrets of the shadowman.") GiveQuestReward(Quest, Player) end