Code:
function EpochBolie_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Our destiny has lead us to this place... and now we fight...")
pUnit:RegisterEvent("ShadowBlast", 15000, 0)
pUnit:RegisterEvent("Phase_1", 1000, 0)
end
function EpochBolie_OnDied
pUnit:SendChatMessage(14, 0, "I guess everything is as... time wanted to...")
pUnit:RemoveEvents()
end
function EpochBolie_LeaveCombat (pUnit, Event)
pUnit:RemoveEvents()
end
function Phase_1(pUnit, Event)
if GetHealthPct() <= 85 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "I guess fate is on your side... I'm injured already... But I've seen my future and know I will win this battle!")
pUnit:RegisterEvent("FireBreath", 4000, 0)
pUnit:RegisterEvent("TimeStop",21000, 0)
pUnit:RegisterEvent("ShadowBlast",15000, 0)
pUnit:RegisterEvent("Phase_2", 1000, 0)
end
end
function Phase_2(pUnit, Event)
if pUnit:GetHealthPct() <= 60 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Mhmph... I didn't know this fight would last so long...")
pUnit:RegisterEvent("FireBreath", 4000, 0)
pUnit:RegisterEvent("TimeStop", 19000, 0)
pUnit:RegisterEvent("ShadowBlast", 12000, 0)
pUnit:RegisterEvent("Enrage", 5000, 0)
pUnit:RegisterEvent("FrostCleave", 11000, 0)
pUnit:RegisterEvent("Phase_3, 1000, 0)
end
end
Function Phase_3(pUnit, Event)
if pUnit:GetHealthPct() <= 40 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "I see the end of the fight is near... I may still make it if I open all my power... Behold mortals... MY TRUE POWER!!!")
pUnit:RegisterEvent("FireBreath", 4000, 0)
pUnit:RegisterEvent("TimeStop", 17000, 0)
pUnit:RegisterEvent("ShadowBlast", 11000, 0)
pUnit:RegisterEvent("Enrage", 5000, 0)
pUnit:RegisterEvent("Enrage2", 7000, 0)
pUnit:RegisterEvent("FrostCleave", 10000, 0)
pUnit:RegisterEvent("Summon", 1000, 1)
end
end
function Summon(pUnit, Event)
pUnit:RemoveEvents()
x = pUnit:GetX()
y = pUnit:GetY()
z = pUnit:GetZ()
o = pUnit:GetO()
pUnit:SpawnCreature(101102, x, y, z, o, 14, 60000)
pUnit:SpawnCreature(101102, x, y, z, o, 14, 60000)
end
function FireBreath(pUnit, Event)
pUnit:CastSpellOnTarget(49110, pUnit:GetMainTank())
end
function TimeStop(pUnit, Event)
pUnit:CastSpell(60074)
end
function ShadowBlast(pUnit, Event)
pUnit:CastSpellOnTarget(41078, pUnit:GetMainTank())
end
function Enrage(pUnit, Event)
pUnit:CastSpell(26041)
end
function Enrage2(pUnit, Event)
pUnit:CastSpell(42705)
end
function FrostCleave(pUnit, Event)
pUnit:CastSpellOnTarget(51857, pUnit:GetMainTank())
end
RegisterUnitEvent(101101, 1, "BossName_OnCombat")
RegisterUnitEvent(101101, 2, "BossName_OnLeaveCombat")
RegisterUnitEvent(101101, 4, "BossName_OnDied")
This is the SQL I use:
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 ('101101', "Infinite Bounty Hunter", "The Infinite Brood", '', '0', '2', '0', '3', '0', '0', '19135', '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 ('101101', '80', '80', '14', '5380000', '5380000', '829537', '1.7', '0', '2500', '0', '12500', '15500', '0', '0', '0', '0', '18001000', '1200', '0', '0', '0', '0', '0', '0', '2.2', '0', "0", '1', '5836305', '0', '2', '2.50', '8.00', '2.50', '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 ('101102', "Infinite Dragon", "Infinite Bounty Hunter's Minion", '', '0', '2', '0', '1', '0', '0', '19135', '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 ('101102', '80', '80', '14', '110000', '110000', '55000', '0.7', '0', '2200', '0', '3500', '5500', '0', '0', '0', '0', '0', '700', '0', '0', '0', '0', '0', '0', '0.6', '0', "0", '1', '103505', '0', '2', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Please tell me how I can fix this.