Code:
function abigbad_Phase1(Unit, event)
if Unit:GetHealthPct() < 95 then
Unit:PlaySoundToSet(8899)
Unit:SendChatMessage(12, 0, "Come on and fight you wee ne ne!")
Unit:RemoveEvents()
Unit:CastSpell(30035)
Unit:RegisterEvent("abigbad_Phase2",1000, 0)
end
end
function abigbad_Phase2(Unit, event)
if Unit:GetHealthPct() < 85 then
Unit:PlaySoundToSet(8905)
Unit:SendChatMessage(12, 0, "I'm going to enjoy killing these slapjaw daffidiles!")
Unit:RemoveEvents()
Unit:CastSpell(29963)
Unit:RegisterEvent("abigbad_Phase3",1000, 0)
end
end
function abigbad_Phase3(Unit, event)
if Unit:GetHealthPct() < 65 then
Unit:PlaySoundToSet(8902)
Unit:SendChatMessage(12, 0, "I like my meat extra crispy!")
Unit:RemoveEvents()
Unit:CastSpell(19129)
Unit:CastSpell(45345)
Unit:RegisterEvent("abigbad_Phase4",1000, 0)
end
end
function abigbad_Phase4(Unit, event)
if Unit:GetHealthPct() < 45 then
Unit:PlaySoundToSet(8904)
Unit:SendChatMessage(12, 0, "I heard about enough of yer sniviling, shut your fly trap before i shut it for you!")
Unit:RemoveEvents()
Unit:CastSpell(19366)
Unit:CastSpell(22436)
Unit:CastSpell(15636)
Unit:RegisterEvent("abigbad_Phase5",1000, 0)
end
end
function abigbad_Phase5(Unit, event)
if Unit:GetHealthPct() < 35 then
Unit:RemoveEvents()
Unit:RegisterEvent("abigbad_Phase6",1000, 0)
end
end
function abigbad_Phase6(Unit, event)
if Unit:GetHealthPct() < 5 then
Unit:RemoveEvents()
Unit:PlaySoundToSet(8901)
Unit:CastSpell(28323)
Unit:CastSpell(20620)
Unit:SendChatMessage(12, 0, "Next time, bring more friends!")
end
end
function abigbad_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
end
function abigbad_OnKilledTarget(Unit)
Unit:CastSpell(41106)
end
function abigbad_Death(Unit)
Unit:RemoveEvents()
Unit:PlaySoundToSet(8870)
Unit:SendChatMessage(12, 0, "Thank... You...")
end
RegisterUnitEvent(88888889, 1, "abigbad_OnCombat")
RegisterUnitEvent(88888889, 2, "abigbad_OnLeaveCombat")
RegisterUnitEvent(88888889, 3, "abigbad_OnKilledTarget")
RegisterUnitEvent(88888889, 4, "abigbad_Death")
function abigbadie_OnCombat(Unit, event)
Unit:PlaySoundToSet(8903)
Unit:SendChatMessage(12, 0, "To arms ye resta'bouts, we've got company!")
x = Unit:GetX();
y = Unit:GetY();
z = Unit:GetZ();
o = Unit:GetO();
x = x - 2
y = y - 2
Unit:SpawnCreature(8888881, x, y, z, o, 17, 45000);
x = x + 4
y = y + 4
Unit:SpawnCreature(8888881, x, y, z, o, 17, 45000);
Unit:FullCastSpell(46907)
Unit:RegisterEvent("abigbad_Phase1",1000, 0)
end
function abigbadie_Death(Unit)
RemoveEvents()
end
RegisterUnitEvent(5552221, 1, "abigbadie_OnCombat")
RegisterUnitEvent(5552221, 4, "abigbadie_Death")
Code:
INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('Reste Monyare', 'Minion of Thane', '', '7', '0', '1', '80050', '0', '0', '1', '8888881');
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 ('72', '72', '20', '10000', '10000', '0', '1', '0', '1500', '522', '622', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '8888881');
UPDATE `creature_names` SET `leader` = NULL WHERE `entry` = 5552221 LIMIT 1;
UPDATE `creature_proto` SET `faction` = '20', `boss` = '1' WHERE `entry` = 5552221 LIMIT 1;
UPDATE `creature_names` SET `male_displayid` = '8050' WHERE `entry` = 8888881 LIMIT 1;
UPDATE `creature_proto` SET `minlevel` = '72', `maxlevel` = '72', `Faction` = '20', `minhealth` = '10000', `maxhealth` = '10000', `mana` = '0', `Scale` = '1', `npcflags` = '0', `attacktime` = '1500', `mindamage` = '522', `maxdamage` = '622', `rangedattacktime` = '0', `rangedmindamage` = '0', `rangedmaxdamage` = '0', `combat_reach` = '1', `boss` = '0', `equipmodel1` = '0', `equipmodel2` = '0', `equipmodel3` = '0', `respawntime` = '0', `auras` = '0', `invisibility_type` = '0', `death_state` = '0' WHERE `entry` = 8888881 LIMIT 1;
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('5552221','Thane Gol\'modarn','The Demonlisher','','72','6','0','3','0','0','16155','0','0','0','180','2','0',NULL);
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `mountdisplayid`, `equipmodel1`, `equipinfo1`, `equipslot1`, `equipmodel2`, `equipinfo2`, `equipslot2`, `equipmodel3`, `equipinfo3`, `equipslot3`, `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`) values('5552221','73','73','20','100000','900000','4186','1','0','1322','0','233','453','0','0','0','0','30606','50267138','768','0','0','0','0','0','0','360000','3814','0','0','0','0','0','0','2','1','0','1','0','0','0','2.5','8','14','0','0','0','0','0','0');