Code:
--[[ Meiya Stormsinger ]]--
--[[ Smurfen© Original ]]--
--[[_____________________]]--
--[[Meiya Stormsinger]]--
function Meiya_Rend(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(54708, SpellTarget)
else
end
end
function Meiya_Absorb(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(29323, SpellTarget)
else
end
end
function Meiya_Rake(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(53499, SpellTarget)
else
end
end
function Meiya_Pound(Unit, event)
Unit:FullCastSpell(34162)
end
function Meiya_Mangle(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(31041, SpellTarget)
else
end
end
function Meiya_Bear_Form(Unit, event)
Unit:SetModel(1082)
end
function Meiya_Swipe(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(42395, SpellTarget)
else
end
end
function Meiya_Summon(Unit, Event)
x = Unit:GetX()
y = Unit:GetY()
z = Unit:GetZ()
o = Unit:GetO()
Unit:SpawnCreature(60001, 6251.000977, 5752.145020, -6.270163, 2.244286, 14, 999999999)
Unit:SpawnCreature(60001, 6221.815918, 5784.540039, -6.270830, 5.468343, 14, 999999999)
end
function Meiya_Paralyze(Unit, event)
Unit:CastSpell(43095)
end
function Meiya_Roar(Unit, event)
Unit:CastSpell(48560)
end
function Meiya_Roar2(Unit, event)
Unit:CastSpell(59010)
end
function Meiya_Random_Buffs(Unit, event)
local Buff = math.random(1,4)
if Buff == 1 then
Unit:CastSpell(44978)
end
if Buff == 2 then
Unit:CastSpell(45006)
end
if Buff == 3 then
Unit:CastSpell(45004)
end
if Buff == 4 then
Unit:CastSpell(45010)
end
end
function Meiya_Phase4(Unit, event)
Unit:FullCastSpell(45855)
end
function Meiya_Blinding_Light(Unit, event)
Unit:FullCastSpell(33009)
end
function Meiya_Moonfire(Unit, event)
local SpellTarget = Unit:GetRandomPlayer(0)
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(43545, SpellTarget)
else
end
end
function Meiya_Lightning(Unit, event)
local SpellTarget = Unit:GetRandomPlayer(0)
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(43661, SpellTarget)
else
end
end
function Meiya_Brutal_Swipe(Unit, event)
local SpellTarget = Unit:GetMainTank()
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(56586, SpellTarget)
else
end
end
function Meiya_Lifebloom(Unit, event, miscunit, misc)
Unit:FullCastSpell(43421)
end
function Meiya_Cloud(Unit, event, miscunit, misc)
local Cloud = math.random(1,9)
if Cloud == 1 then
Unit:SpawnCreature(60002, 6227.686035, 5760.978027, -6.386242, 0.834875 , 14, 30000)
end
if Cloud == 2 then
Unit:SpawnCreature(60002, 6237.043457, 5788.960449, -6.130141, 0.907917 , 14, 30000)
end
if Cloud == 3 then
Unit:SpawnCreature(60002, 6243.418945, 5752.062988, -6.250000, 4.450847, 14, 30000)
end
if Cloud == 4 then
Unit:SpawnCreature(60002, 6216.602539, 5744.271973, -5.168359, 3.390559, 14, 30000)
end
if Cloud == 5 then
Unit:SpawnCreature(60002, 6208.830566, 5761.512695, -6.130295, 1.560582, 14, 30000)
end
if Cloud == 6 then
Unit:SpawnCreature(60002, 6212.263184, 5787.220703, -6.130295, 1.302186, 14, 30000)
end
if Cloud == 7 then
Unit:SpawnCreature(60002, 6236.048828, 5771.378418, -6.332530, 5.723976, 14, 30000)
end
if Cloud == 8 then
Unit:SpawnCreature(60002, 6245.803711, 5780.999023, -6.270755, 1.698802, 14, 30000)
end
if Cloud == 9 then
Unit:SpawnCreature(60002, 6201.681152, 5755.654297, -4.113744, 0.700558, 14, 30000)
end
end
function Meiya_Random_Buffs2(Unit, event)
local Buff = math.random(1,6)
if Buff == 1 then
Unit:CastSpell(40880)
end
if Buff == 2 then
Unit:CastSpell(40883)
end
if Buff == 3 then
Unit:CastSpell(40897)
end
if Buff == 4 then
Unit:CastSpell(40896)
end
if Buff == 5 then
Unit:CastSpell(40882)
end
if Buff == 6 then
Unit:CastSpell(40891)
end
end
function Meiya_StopMovement(Unit, event)
Unit:StopMovement(20000)
end
function Meiya_LeaveCombat(Unit, event)
Unit:RemoveEvents()
Unit:SendChatMessage(14,0,"I warned you!")
Unit:RemoveAura(18309)
Unit:SetModel(15399)
end
function Meiya_Died(Unit, event)
Unit:RemoveEvents()
Unit:SendChatMessage(14,0,"The tradgedy of life is not that it ends so soon, but that we wait so long to begin it!")
end
function Meiya_OnCombat(Unit, event, miscunit, misc)
Unit:SendChatMessage(14, 0, "You are brave, but you will never defeat me!")
Unit:SetModel(15506)
Unit:RegisterEvent("Meiya_Rend",10000,0)
Unit:RegisterEvent("Meiya_Rake",11000,0)
Unit:RegisterEvent("Meiya_Mangle",12000,0)
Unit:RegisterEvent("Meiya_Phase2",1000,0)
Unit:RegisterEvent("Meiya_Pound",15000,0)
Unit:RegisterEvent("Meiya_Absorb",14000,0)
Unit:RegisterEvent("Meiya_Random_Buffs",19000,0)
Unit:RegisterEvent("Meiya_Cloud",10000, 0)
end
function Meiya_Phase2(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 70 then
Unit:RemoveAura(21653)
Unit:RemoveEvents()
Unit:SendChatMessage(14, 0, "You are making me angry!")
Unit:RegisterEvent("Meiya_Bear_Form",1000,1)
Unit:RegisterEvent("Meiya_Swipe",5000,0)
Unit:RegisterEvent("Meiya_Roar",30000,0)
Unit:RegisterEvent("Meiya_Roar2",14000,0)
Unit:RegisterEvent("Meiya_Phase3",1000,0)
Unit:RegisterEvent("Meiya_Paralyze",23000,0)
Unit:RegisterEvent("Meiya_Summon",40000,0)
Unit:RegisterEvent("Meiya_Random_Buffs",19000,0)
Unit:RegisterEvent("Meiya_Cloud",10000, 0)
Unit:RegisterEvent("Meiya_StopMovement",40000,0)
end
end
function Meiya_Phase3(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 30 then
Unit:RemoveAura(18309)
Unit:RemoveEvents()
Unit:SetModel(15399)
Unit:StopMovement(1000)
Unit:SendChatMessage(14,0,"Perhaps you think you're being treated unfairly?")
Unit:RegisterEvent("Meiya_Phase4",1000,1)
Unit:RegisterEvent("Meiya_Moonfire",5000,0)
Unit:RegisterEvent("Meiya_Lifebloom",20000,0)
Unit:RegisterEvent("Meiya_Lightning",9000,0)
Unit:RegisterEvent("Meiya_Brutal_Swipe",33000,0)
Unit:RegisterEvent("Meiya_Blinding_Light",12000,0)
Unit:RegisterEvent("Meiya_Random_Buffs",19000,0)
Unit:RegisterEvent("Meiya_Cloud",10000,0)
Unit:RegisterEvent("Meiya_Random_Buffs2",10000,0)
end
end
RegisterUnitEvent(60000,1,"Meiya_OnCombat")
RegisterUnitEvent(60000,2,"Meiya_LeaveCombat")
RegisterUnitEvent(60000,4,"Meiya_Died")
--[[ Raging Moonkin ]]--
function Raging_Wrath(Unit, event)
local SpellTarget = Unit:GetRandomPlayer(0)
if (SpellTarget ~= nil) then
Unit:FullCastSpellOnTarget(20698, SpellTarget)
else
end
end
function Raging_Move(Unit, Event)
local SpellTarget = Unit:GetRandomPlayer(0)
if (SpellTarget ~= nil) then
Unit:MoveTo(SpellTarget:GetX(), SpellTarget:GetY(), SpellTarget:GetZ(), SpellTarget:GetO())
else
end
end
function Raging_Explosion(Unit, event)
if Unit:GetHealthPct() < 15 then
Unit:CastSpell(52429)
Unit:Kill(Unit)
end
end
function Raging_OnSpawn(Unit, event)
Unit:SendChatMessage(14,0,"Feel my wrath!")
Unit:FullCastSpellOnTarget(20698,Unit:GetRandomPlayer(0))
Unit:RegisterEvent("Raging_Move",1000,1)
end
function Raging_OnCombat(Unit, event)
Unit:RegisterEvent("Raging_Explosion",1000,0)
Unit:RegisterEvent("Raging_Wrath",1500,0)
end
function Raging_OnDied(Unit, event)
Unit:RemoveEvents()
Unit:Despawn(1,0)
end
function Raging_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
Unit:Despawn(1, 0)
end
RegisterUnitEvent(60001,18,"Raging_OnSpawn")
RegisterUnitEvent(60001,1,"Raging_OnCombat")
RegisterUnitEvent(60001,2,"Raging_OnLeaveCombat")
RegisterUnitEvent(60001,4,"Raging_OnDied")
--[[Poison Cloud]]--
function Cloud_OnSpawn(Unit, event)
Unit:CastSpell(61672)
Unit:StopMovement(999999999)
end
function Cloud_OnLeaveCombat(Unit, event)
Unit:Despawn(1000,0)
end
RegisterUnitEvent(60002,18,"Cloud_OnSpawn")
RegisterUnitEvent(60002,2,"Cloud_OnLeaveCombat")
Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('60000', "Meiya Stormsinger", "King of Sholazar Basin", '', '0', '10', '0', '3', '0', '0', '15399', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('60000', '80', '80', '14', '1600000', '1600000', '1000000', '4', '0', '2000', '0', '10000', '20000', '0', '0', '0', '0', '0', '4000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '1', '150000', '0', '0', '14.00', '14.00', '14.00', '0', '0', '0', '0', '0', '0', '34815');
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('60002', "Poison Cloud", "", '', '13', '10', '0', '1', '0', '0', '11686', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('60002', '80', '80', '14', '5000000', '5000000', '', '0.1', '0', '1000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('60001', "Raging Moonkin", "Meiya's Minion", '', '0', '1', '0', '1', '0', '0', '12237', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('60001', '80', '80', '14', '50000', '50000', '100000', '2', '0', '100', '0', '100', '100', '0', '0', '0', '0', '0', '10000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '14.00', '14.00', '14.00', '0', '0', '0', '0', '0', '0', '0');