Code:
--[[ Boss - Shalazar
Shalazar is an evil warlock returned from the death and is now ready to take over all life in Azeroth!
~~End of Script Forenote
-- Viggo-xd, November 27th, 2008. ]]
function Shalazar_OnLeaveCombat (pUnit, Event)
pUnit:SendChatMessage(5, 0, "Flee you fitlhy scumbags!")
end
function Shalazar_Died (pUnit, Event)
pUnit:SendChatMessage(5, 0, "Azeroth .. will stil .. be .. mine ..! ")
end
function Shalazar_OnEnterCombat (pUnit, Event)
pUnit:SendChatMessage(5, 0, "Hahaha .. You really think you can match the true power of all demonic powers? Illidan is no match compared to me! I am the Shadow Lord Shalazar! Your destiny lies in my hands and .. woops! What is it i see in the future? Your death! Haha!")
end
function Shalazar_KilledTarget (pUnit, Event)
pUnit:SendChatMessage(5, 0, "That was just so hard! .. Oh my, i just love being sarcastic!")
end
function Shalazar_OnEnterCombat(pUnit,Event)
pUnit:RegisterEvent("Shalazar_Spell4", 15000, 1)
pUnit:RegisterEvent("Shalazar_Spell2", 20000,1)
pUnit:RegisterEvent("Shalazar_Spell3", 35000, 0)
pUnit:RegisterEvent("Shalazar_Spell", 25000, 0)
pUnit:RegisterEvent("Shalazar_Spell5", 30000, 0)
end
function Shalazar_Spell2(pUnit,Event)
if pUnit:GetHealthPct() > 20 then
pUnit:FullCastSpellOnTarget(57369,pUnit:GetMainTank())
end
end
function Shalazar_Spell3(pUnit,Event)
pUnit:FullCastSpellOnTarget(39175,pUnit:GetClosestPlayer())
end
function Shalazar_Spell5(pUnit,Event)
pUnit:FullCastSpellOnTarget(19369,pUnit:GetClosestPlayer())
end
function Shalazar_Spell(pUnit,Event)
pUnit:CastSpell(22917)
pUnit:CastSpell(26565)
end
function Shalazar_Spell4(pUnit,Event)
if pUnit:GetHealthPct() > 40 then
pUnit:FullCastSpellOnTarget(59868,pUnit:GetMainTank())
end
end
RegisterUnitEvent(95432, 1, "Shalazar_OnEnterCombat")
RegisterUnitEvent(95432, 4, "Shalazar_Died")
RegisterUnitEvent(95432, 3, "Shalazar_KilledTarget")
RegisterUnitEvent(95432, 2, "Shalazar_OnLeaveCombat")
He cast Shadow Bolt Volley and other shadow spells.