Code:
INSERT INTO `creature_names` VALUES ('60053', 'Edwin VanCleef', 'Defias Kingpin', '', '0', '7', '0', '3', '0', null, '2029', '2029', '0', '0', '1', '1', '0', null);
INSERT INTO `creature_names` VALUES ('60054', 'Defias Blackguard', '', '', '0', '7', '0', '1', '0', null, '2314', '2314', '0', '0', '1', '1', '0', null);
INSERT INTO `creature_proto` VALUES ('60053', '74', '74', '189', '2000000', '2000000', '0', '1', '0', '1700', '0', '4322', '4322', '0', '0', '0', '0', '31857', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '2', '0', '0', '0', '0', '0', '0', '2.5', '8', '14', '0');
INSERT INTO `creature_proto` VALUES ('60054', '74', '74', '17', '50000', '50000', '0', '1', '0', '2000', '0', '1000', '1000', '0', '0', '0', '0', '31857', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '2', '0', '0', '0', '0', '0', '0', '2.5', '8', '14', '0');
INSERT INTO `creature_spawns` VALUES ('79556', '21462', '530', '-3475.94', '1129.95', '9.60053', '1.32496', '0', '20294', '14', '0', '16908544', '4097', '0', '0', '0', '0', '0', '0');
LUA's :
Code:
function VanCleef_Cleave(pUnit)
pUnit:FullCastSpellOnTarget(38226, pUnit:GetMainTank())
end
function VanCleef_Slow(pUnit)
pUnit:CastSpell(30035)
end
function VanCleef_Thunderclap(pUnit)
pUnit:CastSpell(38146)
end
function VanCleef_Bomb(pUnit)
pUnit:CastSpellOnTarget(40332, pUnit:GetMainTank())
end
function VanCleef_onCombat(pUnit, Event)
pUnit:RegisterEvent("VanCleef_Phase1",1000,0)
end
function VanCleef_onLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
function VanCleef_onDeath(pUnit, Event)
pUnit:RemoveEvents()
end
RegisterUnitEvent (60053, 1, "VanCleef_onCombat")
RegisterUnitEvent (60053, 2, "VanCleef_onLeaveCombat")
RegisterUnitEvent (60053, 4, "VanCleef_onDeath")
function VanCleef_Phase1(pUnit)
if pUnit:GetHealthPct() < 95 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(5780)
pUnit:SendChatMessage(12, 0, "None may challange the brotherhood!")
x = pUnit:GetX();
y = pUnit:GetY();
z = pUnit:GetZ();
o = pUnit:GetO();
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:RegisterEvent("VanCleef_Phase2",1000,0)
pUnit:RegisterEvent("VanCleef_Slow",20000,0)
end
end
function VanCleef_Phase2(pUnit)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(5782)
pUnit:SendChatMessage(12, 0, "Lapdogs, All of you!")
x = pUnit:GetX();
y = pUnit:GetY();
z = pUnit:GetZ();
o = pUnit:GetO();
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:RegisterEvent("VanCleef_Phase3",1000,0)
pUnit:RegisterEvent("VanCleef_Bomb",15000,0)
end
end
function VanCleef_Phase3(pUnit)
if pUnit:GetHealthPct() < 25 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(5783)
pUnit:SendChatMessage(12, 0, "FOOLS! Our Cause is Righteous!")
x = pUnit:GetX();
y = pUnit:GetY();
z = pUnit:GetZ();
o = pUnit:GetO();
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:SpawnCreature(60054, x, y, z, o, 17, 0);
pUnit:RegisterEvent("VanCleef_Phase4",1000,0)
pUnit:RegisterEvent("VanCleef_Cleave",15000,0)
pUnit:RegisterEvent("VanCleef_Thunderclap",20000,0)
end
end
function VanCleef_Phase4(pUnit)
if pUnit:GetHealthPct() < 5 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(5784)
pUnit:SendChatMessage(12, 0, "The brotherhood shal prevail...")
pUnit:CastSpell(23537)
pUnit:RegisterEvent("VanCleef_Thunderclap",15000,0)
end
end
He should be spawned at the end of the deadmines on his ship, neutral and level 74 (stil a skull cause hes a boss)