Here is a little raid boss I made for fun a long time ago... Thought I should share it with the community since I don't use it anymore. If I remember correctly he is a 20 man raid, GOOD GEARED. Has 3 phases, phase 2 starts at 50% and phase 3 at 20%. He does a stomp through out the fight that stuns and deals damage. He also does several spells depending on the phase you are in. Well, here's the script!
SQL Query:
function CowLord_Phase3(Unit, Event)
if Unit:GetHealthPct() <20 then
RemoveEvents()
Unit:SendChatMessage(12, 0, "YOU HAVE ANGERED ME!!.. MOO!!!")
Unit:CastSpell(29947)
Unit:CastSpell(41447)
Unit:RegisterEvent("CowLord_Stomp",10000,0)
end
end
function CowLord_Phase2(Unit, Event)
if Unit:GetHealthPct() <50 then
RemoveEvents()
Unit:SendChatMessage(11, 0, "You think you can win... Moo!?!")
Unit:CastSpellOnTarget(33061, Unit:GetRandomPlayer(0))
Unit:RegisterEvent("CowLord_Stomp",15000,0)
Unit:RegisterEvent("CowLord_Phase3",1000,0)
end
end
function CowLord_Stomp(Unit)
Unit:CastSpellOntarget(34716, Unit:GetRandomPlayer(0))
end
function CowLord_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "You will die... Moo!!")
Unit:CastSpell()
Unit:CastSpellOnTarget(40370, Unit:GetRandomPlayer(0))
Unit:RegisterEvent("CowLord_Stomp",20000,0)
Unit:RegisterEvent("CowLord_Phase2",1000,0)
end
function CowLord_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function CowLord_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "I am victorious... Moo!!")
end
function CowLord_OnDied(Unit, Event)
Unit:SendChatMessage(11, 0, "I have failed... Moo..")
Unit:RemoveEvents()
end
RegisterUnitEvent(99988, 1, "CowLord_OnCombat")
RegisterUnitEvent(99988, 2, "CowLord_OnLeaveCombat")
RegisterUnitEvent(99988, 3, "CowLord_OnKilledTarget")
RegisterUnitEvent(99988, 4, "CowLord_OnDied")
Mini Installation Guide!
Delete from creature_names where entry = '99988';
Delete from creature_proto where entry = '99988';
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 (99988, 'Cow Lord', '', '0', 0, 7, 0, 2, 0, 0, 1060, 1060, 1, 1, 1, 0, 0, 1);
INSERT INTO creature_proto (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `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`)
VALUES (99988, 70, 70, 17, 1500000, 1500000, 100000, 2, 0, 1800, 3699, 4645, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 600000, 100, 0, 0, 0, 0, 0, 0, 1.5, 1, '', 0, 11202255, 0, 0, 2.5, 8, 14, 0);
1. Save the first script above as "CowLord.lua" on notepad.
2. Save the second script above as "CowLordNpc.sql" on notepad
3. Execute the .sql on SQLyog or Navicat or HiediSQL.
4. Place the .lua in your scripts folder.
5. Go into your ascent configs and find something like:
Or something like that. Change the 0 to 1.Code:lua = 0
6. Go in-game and type
7. Your done! If the boss is too hard for your server, you can mod the .sql code. If you need help with it, PM me or post below.Code:.npc spawn 99988
Thanks! :wave: