This will be my second release with lua codes.
The bosses were tested with Djfredricks Funserver
and they work with ArcEmu (Build 1878+)
The bosses are:
Meathook Entry ID 910824
Salramm the Fleshcrafter Entry ID 910825
(will not summon ghouls)
Chrono-Lord EpochEntry ID 910826
Mal GanisEntry ID 910828
Infinite CorruptorEntry ID 910829
ScreenShots!
Meathook!
Salramm the Fleshcrafter
Chrono-Lord Epoch
Mal Ganis
Mal Ganis Fixed
Infinite Corruptor
Lua and Sql sorces:
Meathook.
Sql:
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 ('910824', "Meethook", "", '', '0', '6', '0', '1', '0', '0', '26579', '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 ('910824', '82', '82', '14', '421281', '421281', '100', '1', '0', '3000', '0', '4500', '6000', '0', '0', '0', '0', '0', '4700', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Lua:
Code:
function Meathook_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "New toys!")
Unit:RegisterEvent("Meathook_onlyphase",1000,0)
Unit:RegisterEvent("Meathook_chains", 76000, 23)
Unit:RegisterEvent("Meathook_chainstwo", 76000, 23)
Unit:RegisterEvent("Meathook_diseasetwo", 60000, 24)
Unit:RegisterEvent("Meathook_disease", 60000, 24)
Unit:RegisterEvent("Meathook_frenzy", 86000, 14)
end
function Meathook_chains(pUnit, Event)
pUnit:FullCastSpellOnTarget(52696, pUnit:GetRandomPlayer(0))
end
function Meathook_chainstwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58823, pUnit:GetRandomPlayer(0))
end
function Meathook_disease(pUnit, Event)
pUnit:CastSpell(52666, pUnit:GetRandomPlayer(0))
end
function Meathook_diseasetwo(pUnit, Event)
pUnit:CastSpell(58824, pUnit:GetRandomPlayer(0))
end
function Meathook_frenzy(pUnit, Event)
pUnit:CastSpell(58841, pUnit:GetClosestPlayer())
end
function Meathook_chains(pUnit, Event)
pUnit:FullCastSpellOnTarget(52696, pUnit:GetRandomPlayer(0))
end
function Meathook_chainstwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58823, pUnit:GetRandomPlayer(0))
end
function Meathook_disease(pUnit, Event)
pUnit:CastSpell(52666, pUnit:GetRandomPlayer(0))
end
function Meathook_diseasetwo(pUnit, Event)
pUnit:CastSpell(58824, pUnit:GetRandomPlayer(0))
end
function Meathook_frenzy(pUnit, Event)
pUnit:CastSpell(58841, pUnit:GetClosestPlayer())
end
function Meathook_onlyphase(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(52696)
pUnit:RegisterEvent("Meathook_chains", 76000, 23)
pUnit:RegisterEvent("Meathook_disease", 60000, 24)
pUnit:RegisterEvent("Meathook_frenzy", 86000, 14)
pUnit:RegisterEvent("Meathook_pahsetwo",1000,0)
end
end
function Meathook_pahsetwo(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(58823)
pUnit:RegisterEvent("Meathook_chainstwo", 76000, 23)
pUnit:RegisterEvent("Meathook_diseasetwo", 60000, 24)
pUnit:RegisterEvent("Meathook_frenzy", 86000, 14)
end
end
function Meathook_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Why you stop moving?")
end
function Meathook_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "")
end
function Meathook_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "This not fun...")
end
RegisterUnitEvent(910824, 1, "Meathook_OnCombat")
RegisterUnitEvent(910824, 2, "Meathook_OnLeaveCombat")
RegisterUnitEvent(910824, 3, "Meathook_OnKilledTarget")
RegisterUnitEvent(910824, 4, "Meathook_OnDied")
Salramm the Fleshcrafter.
Sql:
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 ('910825', "Salramm the Fleshcrafter", "", '', '0', '6', '0', '1', '0', '0', '26581', '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 ('910825', '82', '82', '14', '421281', '421281', '62535', '1', '0', '1700', '0', '3300', '4700', '0', '0', '0', '0', '0', '3400', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '770000', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Lua:
Code:
function Salramm_the_Fleshcrafter_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "You are too late, champion of Lordaeron. The dead shall have their day. ")
Unit:RegisterEvent("Salramm_the_Fleshcrafter_curse", 80000, 25)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_ghoulone", 96000, 4)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_ghoultwo", 96000, 4)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_shboltone", 34000, 24)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_shbolttwo", 34000, 24)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_flesh", 67000, 15)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_ghoulsum", 70000, 7)
Unit:RegisterEvent("Salramm_the_Fleshcrafter_phaseone",1000,0)
end
function Salramm_the_Fleshcrafter_curse(pUnit, Event)
pUnit:FullCastSpellOnTarget(58845, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_ghoulone(pUnit, Event)
pUnit:CastSpell(52480, pUnit:GetClosestPlayer())
end
function Salramm_the_Fleshcrafter_ghoultwo(pUnit, Event)
pUnit:CastSpell(58825, pUnit:GetClosestPlayer())
end
function Salramm_the_Fleshcrafter_shboltone(pUnit, Event)
pUnit:FullCastSpellOnTarget(57725, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_shbolttwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58827, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_flesh(pUnit, Event)
pUnit:CastSpell(52708, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_curse(pUnit, Event)
pUnit:FullCastSpellOnTarget(58845, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_ghoulone(pUnit, Event)
pUnit:CastSpell(52480, pUnit:GetClosestPlayer())
end
function Salramm_the_Fleshcrafter_ghoultwo(pUnit, Event)
pUnit:CastSpell(58825, pUnit:GetClosestPlayer())
end
function Salramm_the_Fleshcrafter_shboltone(pUnit, Event)
pUnit:FullCastSpellOnTarget(57725, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_flesh(pUnit, Event)
pUnit:CastSpell(52708, pUnit:GetRandomPlayer(0))
end
function Salramm_the_Fleshcrafter_phaseone(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(57725, 58845)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_curse", 80000, 25)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_ghoulone", 96000, 4)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_shboltone", 34000, 24)
pUnit:SendChatMessage (11, 0, "Your flesh betrays you!")
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_flesh", 67000, 15)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_phasetwo",1000,0)
end
end
function Salramm_the_Fleshcrafter_phasetwo(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(58827, 58845)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_ghoultwo", 96000, 4)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_shbolttwo", 34000, 24)
pUnit:SendChatMessage (11, 0, "I want a sample...")
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_flesh", 67000, 15)
pUnit:RegisterEvent("Salramm_the_Fleshcrafter_curse", 80000, 25)
end
end
function Salramm_the_Fleshcrafter_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Don't worry, I'll make good use of you")
end
function Salramm_the_Fleshcrafter_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "You only advance... the master's plan...")
end
RegisterUnitEvent(910825, 1, "Salramm_the_Fleshcrafter_OnCombat")
RegisterUnitEvent(910825, 2, "Salramm_the_Fleshcrafter_OnLeaveCombat")
RegisterUnitEvent(910825, 3, "Salramm_the_Fleshcrafter_OnKilledTarget")
RegisterUnitEvent(910825, 4, "Salramm_the_Fleshcrafter_OnDied")
Chrono-Lord Epoch.
Sql:
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 ('910826', "Chrono-Lord Epoch ", "", '', '0', '2', '0', '1', '0', '0', '26580', '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 ('910826', '82', '82', '14', '421281', '421281', '41690', '1', '0', '1700', '0', '5000', '7000', '0', '0', '0', '0', '0', '6000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '660000', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Lua:
Code:
function Chrono_Lord_Epoch_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "Prince Arthas Menethil, on this day, a powerful darkness has taken hold of your soul. The death you are destined to visit upon others will this day be your own.")
Unit:RegisterEvent("Chrono_Lord_Epoch_phaseone",1000,0)
Unit:RegisterEvent("Chrono_Lord_Epoch_curse", 47000, 15)
Unit:RegisterEvent("Chrono_Lord_Epoch_timestop", 60000, 8)
Unit:RegisterEvent("Chrono_Lord_Epoch_timewarp", 60000, 10)
Unit:RegisterEvent("Chrono_Lord_Epoch_strikeone", 37000, 18)
Unit:RegisterEvent("Chrono_Lord_Epoch_striketwo", 37000, 18)
end
function Chrono_Lord_Epoch_curse(pUnit, Event)
pUnit:FullCastSpellOnTarget(52772, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_timestop(pUnit, Event)
pUnit:CastSpell(58848, pUnit:GetClosestPlayer())
end
function Chrono_Lord_Epoch_timewarp(pUnit, Event)
pUnit:CastSpell(52766, pUnit:GetClosestPlayer())
end
function Chrono_Lord_Epoch_strikeone(pUnit, Event)
pUnit:FullCastSpellOnTarget(52771, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_striketwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58830, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_curse(pUnit, Event)
pUnit:FullCastSpellOnTarget(52772, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_timestop(pUnit, Event)
pUnit:CastSpell(58848, pUnit:GetClosestPlayer())
end
function Chrono_Lord_Epoch_timewarp(pUnit, Event)
pUnit:CastSpell(52766, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_strikeone(pUnit, Event)
pUnit:FullCastSpellOnTarget(52771, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_striketwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58830, pUnit:GetRandomPlayer(0))
end
function Chrono_Lord_Epoch_phaseone(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(52772, 52771)
pUnit:RegisterEvent("Chrono_Lord_Epoch_curse", 47000, 15)
pUnit:RegisterEvent("Chrono_Lord_Epoch_timestop", 60000, 8)
pUnit:RegisterEvent("Chrono_Lord_Epoch_strikeone", 37000, 18)
pUnit:RegisterEvent("Chrono_Lord_Epoch_phasetwo",1000,0)
end
end
function Chrono_Lord_Epoch_phasetwo(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(52772, 58830)
pUnit:RegisterEvent("Chrono_Lord_Epoch_curse", 47000, 15)
pUnit:RegisterEvent("Chrono_Lord_Epoch_timewarp", 60000, 10)
pUnit:RegisterEvent("Chrono_Lord_Epoch_striketwo", 37000, 18)
end
end
function Chrono_Lord_Epoch_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "gurgles")
end
function Chrono_Lord_Epoch_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "You would destined to fail.")
end
RegisterUnitEvent(910826, 1, "Chrono_Lord_Epoch_OnCombat")
RegisterUnitEvent(910826, 2, "Chrono_Lord_Epoch_OnLeaveCombat")
RegisterUnitEvent(910826, 3, "Chrono_Lord_Epoch_OnKilledTarget")
RegisterUnitEvent(910826, 4, "Chrono_Lord_Epoch_OnDied")
Mal Ganis.
Sql:
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 ('910828', "Mal Ganis ", "", '', '0', '3', '0', '1', '0', '0', '26582', '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 ('910828', '82', '82', '14', '505538', '505538', '41690', '1', '0', '1700', '0', '6200', '8500', '0', '0', '0', '0', '0', '6000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '660000', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Lua:
Code:
function Mal_Ganis_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "This will be a fine test...Prince Arthas... ")
Unit:RegisterEvent("Mal_Ganis_swarmone", 50000, 15)
Unit:RegisterEvent("Mal_Ganis_swarmtwo", 50000, 15)
Unit:RegisterEvent("Mal_Ganis_mindblastone", 67000, 16)
Unit:RegisterEvent("Mal_Ganis_mindblasttwo", 67000, 16)
Unit:RegisterEvent("Mal_Ganis_sleep", 85000, 7)
Unit:RegisterEvent("Mal_Ganis_vampiric", 76000, 6)
end
function Mal_Ganis_swarmone(pUnit, Event)
pUnit:CastSpell(52720, pUnit:GetClosestPlayer())
end
function Mal_Ganis_swarmtwo(pUnit, Event)
pUnit:CastSpell(58852, pUnit:GetClosestPlayer())
end
function Mal_Ganis_mindblastone(pUnit, Event)
pUnit:FullCastSpellOnTarget(52722, pUnit:GetRandomPlayer(7))
end
function Mal_Ganis_mindblasttwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58850, pUnit:GetRandomPlayer(7))
end
function Mal_Ganis_sleep(pUnit, Event)
pUnit:FullCastSpellOnTarget(52721, pUnit:GetRandomPlayer(0))
end
function Mal_Ganis_vampiric(pUnit, Event)
pUnit:CastSpell(52723, pUnit:GetClosestPlayer())
end
function Mal_Ganis_swarmone(pUnit, Event)
pUnit:CastSpell(52720, pUnit:GetClosestPlayer())
end
function Mal_Ganis_swarmtwo(pUnit, Event)
pUnit:CastSpell(58852, pUnit:GetClosestPlayer())
end
function Mal_Ganis_mindblastone(pUnit, Event)
pUnit:FullCastSpellOnTarget(58850, pUnit:GetRandomPlayer(0))
end
function Mal_Ganis_mindblasttwo(pUnit, Event)
pUnit:FullCastSpellOnTarget(58850, pUnit:GetRandomPlayer(0))
end
function Mal_Ganis_sleep(pUnit, Event)
pUnit:FullCastSpellOnTarget(52721, pUnit:GetRandomPlayer(0))
end
function Mal_Ganis_vampiric(pUnit, Event)
pUnit:CastSpell(52723, pUnit:GetClosestPlayer())
end
function Mal_Ganis_phaseone(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(58850, 52721)
pUnit:RegisterEvent("Mal_Ganis_swarmone", 50000, 15)
pUnit:RegisterEvent("Mal_Ganis_mindblastone", 67000, 16)
pUnit:RegisterEvent("Mal_Ganis_sleep", 85000, 7)
pUnit:RegisterEvent("Mal_Ganis_vampiric", 76000, 6)
pUnit:RegisterEvent("Mal_Ganis_phasetwo",1000,0)
end
end
function Mal_Ganis_phasetwo(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(58850, 52721)
pUnit:RegisterEvent("Mal_Ganis_swarmtwo", 50000, 15)
pUnit:RegisterEvent("Mal_Ganis_mindblasttwo", 67000, 16)
pUnit:RegisterEvent("Mal_Ganis_vampiric", 76000, 6)
pUnit:RegisterEvent("Mal_Ganis_sleep", 85000, 7)
end
end
function Mal_Ganis_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "My onslaught will wash over the Lich King's forces...")
end
RegisterUnitEvent(910828, 1, "Mal_Ganis_OnCombat")
RegisterUnitEvent(910828, 2, "Mal_Ganis_OnLeaveCombat")
RegisterUnitEvent(910828, 3, "Mal_Ganis_OnKilledTarget")
RegisterUnitEvent(910828, 4, "Mal_Ganis_OnDied")
Infinite Corruptor.
Sql:
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 ('910829', "Infinite Corruptor", "", '', '0', '2', '0', '1', '0', '0', '19326', '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 ('910829', '82', '82', '14', '417911', '417911', '41690', '1', '0', '1700', '0', '7600', '8500', '0', '0', '0', '0', '0', '6000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '660000', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Lua:
Code:
function Infinite_Corruptor_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "The Time Will Kill Us All")
Unit:RegisterEvent("Infinite_Corruptor_phaseone",1000,0)
Unit:RegisterEvent("Infinite_Corruptor_corruption", 45000, 23)
Unit:RegisterEvent("Infinite_Corruptor_strike", 60000, 23)
end
function Infinite_Corruptor_corruption(pUnit, Event)
pUnit:FullCastSpellOnTarget(60588, pUnit:GetRandomPlayer(0))
end
function Infinite_Corruptor_strike(pUnit, Event)
pUnit:FullCastSpellOnTarget(60590, pUnit:GetRandomPlayer(0))
end
function Infinite_Corruptor_corruption(pUnit, Event)
pUnit:FullCastSpellOnTarget(60588, pUnit:GetRandomPlayer(0))
end
function Infinite_Corruptor_strike(pUnit, Event)
pUnit:FullCastSpellOnTarget(60590, pUnit:GetRandomPlayer(0))
end
function Infinite_Corruptor_phaseone(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(60590, 60588)
pUnit:RegisterEvent("Infinite_Corruptor_corruption", 45000, 23)
pUnit:RegisterEvent("Infinite_Corruptor_strike", 60000, 23)
pUnit:RegisterEvent("Infinite_Corruptor_phasetwo",1000,0)
end
end
function Infinite_Corruptor_phasetwo(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(60590, 60588)
pUnit:RegisterEvent("Infinite_Corruptor_corruption", 45000, 23)
pUnit:RegisterEvent("Infinite_Corruptor_strike", 60000, 23)
end
end
function Infinite_Corruptor_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Thats the weakest thing i ever encounter")
end
function Infinite_Corruptor_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Ahhh!")
end
function Infinite_Corruptor_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "The time have taken a other sacrifice")
end
RegisterUnitEvent(910829, 1, "Infinite_Corruptor_OnCombat")
RegisterUnitEvent(910829, 2, "Infinite_Corruptor_OnLeaveCombat")
RegisterUnitEvent(910829, 3, "Infinite_Corruptor_OnKilledTarget")
RegisterUnitEvent(910829, 4, "Infinite_Corruptor_OnDied")