Code:
--All--
StackingEnrage = 42705
--Blood--
BloodPresence = 48266
BloodStrike = 60945
BloodBoil = 55974
DeathDecay = 61112
BloodMorph = 5047
--Frost--
MindFreeze = 53550
IcyTouch = 49723
Obliterate = 51425
FrostPresence = 48263
FrostMorph = 18251
Fortitude = 58130
--Unholy--
UnholyBlight = 53641
UnholyPresence = 49772
UnholyStrenght = 53365
PlagueStrike = 56361
Strangulate = 55314
UnholyMorph = 26582
BoneArmor = 54467
--Cinematic--
function Ceddry_OnTalk(Unit, event, player)
Unit:GossipCreateMenu(190, player, 0)
Unit:GossipMenuAddItem(0, "We have come to kill you, Ceddry!", 100, 0)
Unit:GossipSendMenu(player)
end
function Ceddry_OnSelect(Unit, event, player, id, intid, code)
if (intid == 100) then
Unit:RegisterEvent("Ceddry_CinStart", 1000, 1)
player:GossipComplete()
end
end
function Ceddry_CinStart(Unit, event)
Unit:SendChatMessage(12,0,"Haha! I will take that as a challenge.")
Unit:MoveTo(7011.464355, 495.428986, 528.166016, 3.315154)
Unit:RegisterEvent("Ceddry_MoveTwo",7500,1)
end
function Ceddry_MoveTwo(Unit, event)
Unit:MoveTo(7013.177734, 500.496979, 528.166748, 1.584923)
Unit:RegisterEvent("Ceddry_MoveThree",3000,1)
Unit:SendChatMessage(12,0,"This is redicilous, you will regret saying that you are going to kill me.")
end
function Ceddry_MoveThree(Unit, event)
Unit:MoveTo(7000.361816, 508.537292, 529.300659, 2.578452)
Unit:RegisterEvent("Ceddry_Kneel",6000,1)
end
function Ceddry_Kneel(Unit, event)
Unit:CastSpell(35067)
Unit:RegisterEvent("Ceddry_Choose",6000,1)
end
function Ceddry_Choose(Unit, event)
local ChooseGear = math.random(1,3)
if ChooseGear == 1 then
Unit:SetModel(25459)
Unit:RegisterEvent("Start_Blood",15000,1)
Unit:RegisterEvent("Ceddry_MoveBack",4000,1)
Unit:SendChatMessage(14,0,"Infuse me, Blood!")
end
if ChooseGear == 2 then
Unit:SetModel(16582)
Unit:SetScale(0.9)
Unit:RegisterEvent("Start_Frost",15000,1)
Unit:RegisterEvent("Ceddry_MoveBack",4000,1)
Unit:SendChatMessage(14,0,"Infuse me, Frost!")
end
if ChooseGear == 3 then
Unit:SetModel(25447)
Unit:RegisterEvent("Start_Unholy",15000,1)
Unit:RegisterEvent("Ceddry_MoveBack",4000,1)
Unit:SendChatMessage(14,0,"Infuse me, Unholy!")
end
end
function Ceddry_MoveBack(Unit, event)
Unit:MoveTo(7013.177734, 500.496979, 528.166748, 1.584923)
Unit:RemoveAura(35067)
Unit:RegisterEvent("Ceddry_MoveBackTwo",4000,1)
end
function Ceddry_MoveBackTwo(Unit, event)
Unit:MoveTo(7011.464355, 495.428986, 528.166016, 3.315154)
Unit:RegisterEvent("Ceddry_LastMove",2000,1)
Unit:SendChatMessage(14,0,"Aaaaah! I feel so almighty!")
end
function Ceddry_LastMove(Unit, event)
Unit:MoveTo(7012.464355, 495.428986, 528.166016, 3.315154)
Unit:RegisterEvent("JustAFewWords",1500,1)
end
function JustAFewWords(Unit, event)
Unit:SendChatMessage(14,0,"Get ready...")
Unit:RegisterEvent("HereICome",4000,1)
end
function HereICome(Unit, event)
Unit:SetFaction(14)
end
function Start_Blood(Unit, event)
Unit:RegisterEvent("Ceddry_BloodPres",1000,1)
Unit:RegisterEvent("Ceddry_BloodStrike",14000,0)
Unit:RegisterEvent("Ceddry_BloodBoil",17000,0)
Unit:RegisterEvent("Ceddry_DeathDecay",10000,0)
Unit:RegisterEvent("Ceddry_BloodPhaseTwo",1000,0)
end
function Start_Frost(Unit, event)
Unit:RegisterEvent("Ceddry_MindFreeze",10000,0)
Unit:RegisterEvent("Ceddry_IcyTouch",17000,0)
Unit:RegisterEvent("Ceddry_Obliterate",14000,0)
Unit:RegisterEvent("Ceddry_FrostPres",1000,1)
Unit:SetHealthPct(100)
Unit:RegisterEvent("Ceddry_FrostPhaseTwo",1000,0)
end
function Start_Unholy(Unit, event)
Unit:RegisterEvent("Ceddry_Strangulate",24000,0)
Unit:RegisterEvent("Ceddry_PlagueStrike",14000,0)
Unit:RegisterEvent("Ceddry_UnholyStrenght",29000,0)
Unit:RegisterEvent("Ceddry_UnholyPres",1000,1)
Unit:RegisterEvent("Ceddry_UnholyBlight",8000,0)
Unit:RegisterEvent("Ceddry_UnholyPhaseTwo",1000,0)
end
--Blood Spells--
function Ceddry_BloodPres(Unit, event)
Unit:CastSpell(BloodPresence)
end
function Ceddry_BloodBoil(Unit, event)
Unit:CastSpell(BloodBoil)
end
function Ceddry_BloodStrike(Unit, event)
local BloodStrikeTarget = Unit:GetMainTank()
if (BloodStrikeTarget ~= nil) then
Unit:FullCastSpellOnTarget(BloodStrike, BloodStrikeTarget)
else
end
end
function Ceddry_DeathDecay(Unit, event)
local DecayTarget = Unit:GetMainTank()
if (DecayTarget ~= nil) then
Unit:FullCastSpellOnTarget(DeathDecay, DecayTarget)
else
end
end
function Ceddry_BloodPhaseTwo(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:SpawnCreature(80005, 7018.253906, 496.603027, 528.166016,3.260194,14,100000000)
Unit:RemoveEvents()
Unit:SetModel(BloodMorph)
Unit:SendChatMessage(14,0,"Get out... of my... CITADEL!")
Unit:SetScale(1.2)
Unit:RegisterEvent("Ceddry_BloodStrike",12000,0)
Unit:RegisterEvent("Ceddry_BloodBoil",15000,0)
Unit:RegisterEvent("Ceddry_DeathDecay",9000,0)
Unit:RegisterEvent("Ceddry_Enrage",15000,0)
end
end
--Frost Spells--
function Ceddry_MindFreeze(Unit, event)
local MindTarget = Unit:GetRandomPlayer(4)
if (MindTarget ~= nil) then
Unit:FullCastSpellOnTarget(MindFreeze,MindTarget)
else
end
end
function Ceddry_IcyTouch(Unit, event)
local IcyTouchTarget = Unit:GetRandomPlayer(0)
if (IcyTouchTarget ~= nil) then
Unit:FullCastSpellOnTarget(IcyTouch,IcyTouchTarget)
else
end
end
function Ceddry_Obliterate(Unit, event)
local ObliTarget = Unit:GetMainTank()
if (ObliTarget ~= nil) then
Unit:FullCastSpellOnTarget(Obliterate,ObliTarget)
else
end
end
function Ceddry_FrostPres(Unit, event)
Unit:CastSpell(FrostPresence)
end
function Ceddry_FrostPhaseTwo(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:SpawnCreature(80005, 7018.253906, 496.603027, 528.166016,3.260194,14,100000000)
Unit:RemoveEvents()
Unit:SetModel(FrostMorph)
Unit:SendChatMessage(14,0,"Get out... of my... CITADEL!")
Unit:RegisterEvent("Ceddry_MindFreeze",9000,0)
Unit:RegisterEvent("Ceddry_IcyTouch",15000,0)
Unit:RegisterEvent("Ceddry_Obliterate",12000,0)
Unit:RegisterEvent("Ceddry_Enrage",15000,0)
Unit:RegisterEvent("Ceddry_Fortitude",10000,6)
end
end
function Ceddry_Fortitude(Unit, event)
Unit:CastSpell(Fortitude)
end
--Unholy Spells--
function Ceddry_UnholyBlight(Unit, event)
Unit:CastSpell(UnholyBlight)
end
function Ceddry_UnholyPres(Unit, event)
Unit:CastSpell(UnholyPresence)
end
function Ceddry_UnholyStrenght(Unit, event)
Unit:CastSpell(UnholyStrenght)
end
function Ceddry_PlagueStrike(Unit, event)
local PlagueStrikeTarget = Unit:GetMainTank()
if (PlagueStrikeTarget ~= nil) then
Unit:FullCastSpellOnTarget(PlagueStrike,PlagueStrikeTarget)
else
end
end
function Ceddry_Strangulate(Unit, event, player)
local StrangulateTarget = Unit:GetRandomPlayer(4)
if (StrangulateTarget ~= nil) then
Unit:FullCastSpellOnTarget(Strangulate,StrangulateTarget)
else
end
end
function Ceddry_UnholyPhaseTwo(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:SpawnCreature(80005, 7018.253906, 496.603027, 528.166016,3.260194, 14, 100000000)
Unit:RemoveEvents()
Unit:SetModel(UnholyMorph)
Unit:SendChatMessage(14,0,"Get out... of my... CITADEL!")
Unit:SetScale(0.9)
Unit:RegisterEvent("Ceddry_Strangulate",22000,0)
Unit:RegisterEvent("Ceddry_PlagueStrike",12000,0)
Unit:RegisterEvent("Ceddry_UnholyStrenght",27000,0)
Unit:RegisterEvent("Ceddry_UnholyBlight",6000,0)
Unit:RegisterEvent("Ceddry_Enrage",15000,0)
Unit:RegisterEvent("Ceddry_BoneArmor",10000,6)
end
end
function Ceddry_BoneArmor(Unit, event)
Unit:CastSpell(BoneArmor)
end
--All--
function Ceddry_Enrage(Unit, event)
Unit:CastSpell(StackingEnrage)
end
--Register Events and Such--
function Ceddry_Combat(Unit, event)
Unit:SendChatMessage(14,0,"Here i come!")
end
function Ceddry_Leave(Unit, event)
Unit:RemoveEvents()
Unit:RemoveAllAuras()
Unit:SetModel(24591)
Unit:SetFaction(35)
Unit:ReturnToSpawnPoint()
end
function Ceddry_Died(Unit, event)
Unit:RemoveEvents()
Unit:RemoveAllAuras()
end
RegisterUnitGossipEvent(80004,1,"Ceddry_OnTalk")
RegisterUnitGossipEvent(80004,2,"Ceddry_OnSelect")
RegisterUnitEvent(80004,1,"Ceddry_Combat")
RegisterUnitEvent(80004,2,"Ceddry_Leave")
RegisterUnitEvent(80004,4,"Ceddry_Died")
--Infused Crystal--
function Crystal_Spawn(Unit, event)
Unit:SetCombatTargetingCapable(1)
Unit:SetCombatMeleeCapable(1)
Unit:StopMovement(1000000)
Unit:CastSpell(43383)
Unit:RegisterEvent("Spirit_Bolts",10000,0)
end
function Spirit_Bolts(Unit, event)
Unit:CastSpell(43383)
end
function Crystal_Leave(Unit, event)
Unit:Despawn(1,0)
end
function Crystal_Died(Unit, event)
Unit:Despawn(1,0)
end
function Crystal_Combat(Unit, event)
Unit:StopMovement(1000000)
Unit:RegisterEvent("Stop_Moving",1,0)
end
function Stop_Moving(Unit, event)
Unit:StopMovement(1000000)
end
RegisterUnitEvent(80005,1,"Crystal_Combat")
RegisterUnitEvent(80005,2,"Crystal_Leave")
RegisterUnitEvent(80005,4,"Crystal_Died")
RegisterUnitEvent(80005,18,"Crystal_Spawn")
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 ('80005', 'Infused Crystal', '', '', '0', '13', '0', '1', '0', '0', '17856', '0', '0', '0', '1.0', '1.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 ('80004', 'Ceddry the Cursed', '', '', '0', '7', '0', '3', '0', '0', '24591', '0', '0', '0', '1.0', '1.0', '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 ('80005', '83', '83', '14', '100000', '100000', '500000', '5.0', '0', '100', '0', '0.0', '0.0', '0', '0', '0.0', '0.0', '0', '10000', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '0', '0', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '0', '0', '0', '0', '34815');
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 ('80004', '83', '83', '35', '634000', '634000', '0', '1.5', '1', '2700', '0', '5000.0', '10000.0', '0', '0', '0.0', '0.0', '0', '14000', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '0', '1', '0', '0', '0', '2.82', '12.0', '14.0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `creature_spawns` (`id`, `entry`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `movetype`, `displayid`, `faction`, `flags`, `bytes0`, `bytes1`, `bytes2`, `emote_state`, `npc_respawn_link`, `channel_spell`, `channel_target_sqlid`, `channel_target_sqlid_creature`, `standstate`, `mountdisplayid`, `slot1item`, `slot2item`, `slot3item`) VALUES ('6167970', '80004', '571', '6993.83', '491.938', '527.13', '0.219116', '0', '24591', '35', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '19364', '0', '34815');
INSERT INTO `gameobject_names` (`entry`, `Type`, `DisplayID`, `Name`, `spellfocus`, `sound1`, `sound2`, `sound3`, `sound4`, `sound5`, `sound6`, `sound7`, `sound8`, `sound9`, `unknown1`, `unknown2`, `unknown3`, `unknown4`, `unknown5`, `unknown6`, `unknown7`, `unknown8`, `unknown9`, `unknown10`, `unknown11`, `unknown12`, `unknown13`, `unknown14`) VALUES ('500001', '5', '1387', 'Chest of Gears ', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `gameobject_spawns` (`id`, `Entry`, `map`, `position_x`, `position_y`, `position_z`, `Facing`, `orientation1`, `orientation2`, `orientation3`, `orientation4`, `State`, `Flags`, `Faction`, `Scale`, `stateNpcLink`) VALUES ('49372', '500001', '571', '6997.9', '509.942', '529.3', '3', '1066362312', '0', '0', '0', '1281', '0', '0', '1', '0');
INSERT INTO `recall` (`id`, `name`, `MapId`, `positionX`, `positionY`, `positionZ`) VALUES ('839', 'Ceddry', '571', '7013.9', '498.085', '528.166');