Code:
--[[
Vorpal Bunny!
200,000 HP, 1700~ damage speed 2.3 739 DPS (5 man)
Phase 1:
Claws the tank once in a while 15608
Phase 2:
Starts growing (Growth 40318)
Now also claws random player in range
Phase 3:
Summons many bunnies to help it!
1500HP per bunny
Still growing ;)
Phase 4:
Bites!
Summons more bunnies!
Phase 5:
Bunny hell!
]]--
function Vbunny_Claw (pUnit, Event)
pUnit:FullCastSpellOnTarget(15608, pUnit:GetMainTank())
end
function Vbunny_ClawRand (pUnit, Event)
pUnit:FullCastSpellOnTarget(15608, pUnit:GetRandomPlayer(1))
end
function Vbunny_Growth (pUnit, Event)
pUnit:CastSpell(40318)
end
function Vbunny_Bite (pUnit, Event)
pUnit:FullCastSpellOnTarget(36383, pUnit:GetMainTank())
end
function Vbunny_Spawn (pUnit, Event)
tx = pUnit:GetX()
ty = pUnit:GetY()
tz = pUnit:GetZ()
to = pUnit:GetO()
mx = math.random(5, 7)
my = math.random(5, 7)
mz = 5
pUnit:SpawnCreature(100667, tx+mx, ty+my, tz+mz, to, 17, 0);
end
--========================Events========================-
function Vbunny_Death (pUnit, Event)
pUnit:RemoveEvents()
-- rest in peace my furry little friend :(
end
function Vbunny_Phase5 (pUnit, Event)
if pUnit:GetHealthPct() < 10
--Attack my bunnies, full speed ahead!!
pUnit:RemoveEvents()
pUnit:RegisterEvent("Vbunny_Spawn", 1000, 0)
pUnit:RegisterEvent("Vbunny_ClawRand", 3500, 0)
pUnit:RegisterEvent("Vbunny_Growth", 10500, 0)
end
end
function Vbunny_Phase4 (pUnit, Event)
if pUnit:GetHealthPct() < 30
--Uh oh
pUnit:RemoveEvents()
pUnit:RegisterEvent("Vbunny_Claw", 4500, 0)
pUnit:RegisterEvent("Vbunny_ClawRand", 6500, 0)
pUnit:RegisterEvent("Vbunny_Growth", 13000, 0)
pUnit:RegisterEvent("Vbunny_Spawn", 2000, 0)
pUnit:RegisterEvent("Vbunny_Bite", 5500, 0)
pUnit:RegisterEvent("Vbunny_Phase4", 1000, 0)
end
end
function Vbunny_Phase3 (pUnit, Event)
if pUnit:GetHealthPct() < 75
--Call our buddies!
pUnit:RemoveEvents()
pUnit:RegisterEvent("Vbunny_Claw", 4500, 0)
pUnit:RegisterEvent("Vbunny_ClawRand", 7000, 0)
pUnit:RegisterEvent("Vbunny_Growth", 13000, 0)
pUnit:RegisterEvent("Vbunny_Spawn", 4000, 0)
pUnit:RegisterEvent("Vbunny_Phase4", 1000, 0)
end
function Vbunny_Phase2 (pUnit, Event)
if pUnit:GetHealthPct() < 90
--Stronger, and STRONGER
pUnit:RemoveEvents()
pUnit:RegisterEvent("Vbunny_Claw", 5000, 0)
pUnit:RegisterEvent("Vbunny_ClawRand", 8000, 0)
pUnit:RegisterEvent("Vbunny_Growth", 13000, 0)
pUnit:RegisterEvent("Vbunny_Phase3", 1000, 0)
end
end
function Vbunny_Combat (pUnit, Event)
pUnit:RegisterEvent("Vbunny_Claw", 5000, 0)
pUnit:RegisterEvent("Vbunny_Phase2", 1000, 0)
end
RegisterUnitEvent(100666, 1, "Vbunny_Combat")
RegisterUnitEvent(100666, 4, "Vbunny_Death")
Code:
INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('Vorpal Bunny', '', '', '1', '0', '3', '328', '0', '0', NULL, '100666');
INSERT INTO `creature_proto` (`minlevel`, `maxlevel`, `Faction`, `minhealth`, `maxhealth`, `mana`, `Scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `combat_reach`, `boss`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `respawntime`, `auras`, `invisibility_type`, `death_state`, `entry`) VALUES ('80', '80', '148', '200000', '200000', '1000', '2', '0', '2300', '1500', '1900', '0', '0', '0', '1', '1', '0', '0', '0', '36000', '0', '0', '0', '100666');
INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('Feral Bunny', '', '', '1', '0', '1', '328', '0', '0', NULL, '100667');
INSERT INTO `creature_proto` (`minlevel`, `maxlevel`, `Faction`, `minhealth`, `maxhealth`, `mana`, `Scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `combat_reach`, `boss`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `respawntime`, `auras`, `invisibility_type`, `death_state`, `entry`) VALUES ('80', '80', '148', '1300', '1700', '1000', '1', '0', '1700', '300', '400', '0', '0', '0', '1', '0', '0', '0', '0', '36000', '0', '0', '0', '100667');