--Credits to Nymphx of MMOwned, Wowimpulse Developer--
function KingCello_OnEnterCombat(pUnit,Event)
pUnit:SendChatMessage(12, 0, "Ha, you actually think that puny, weak gypsys like you can even affect an immortal such as myself? I am Omniscient!")
pUnit:SendChatMessage(14, 0, "Trust me, you stand no chance against my full power!")
pUnit:RegisterEvent("KingCello_ClassPick", 5000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
pUnit:CastSpell(20217)
pUnit:CastSpell(2394

end
-- Random talk, 1-4 every ?? seconds.--
function KingCello_Talk(pUnit, Event)
Choice=math.random(1, 4)
if Choice==1 then
pUnit:SendChatMessage(14, 0, "You try so hard, yet fail so much...")
end
if Choice==2 then
pUnit:SendChatMessage(14, 0, "Your attacks do nothing to me! I am an immortal!")
end
if Choice==3 then
pUnit:SendChatMessage(14, 0, "Oh, how I wish you actually tried!")
end
if Choice==4 then
pUnit:SendChatMessage(14, 0, "You have one class, I have a choice of 8 classes at any moment. Who do YOU think will triumph?")
end
end
function KingCello_TalkShaman(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Shamans, guardians of Thunder and Lightning!")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The elements run strong in the Shaman class...")
end
end
function KingCello_TalkPaladin(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Paladins, guardians of the Holy powers and the true defenders of the Alliance.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Holy Power runs strong in the Paladin class...")
end
end
function KingCello_TalkDruid(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Druids, guardians of Nature and all things living.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Natural Forces run strong in the Druid class...")
end
end
function KingCello_TalkPriest(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Priests, Masters of the Holy power and Spiritual Focus.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Priest Class makes me feel alive!")
end
end
function KingCello_TalkRogue(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Rogues, masters of Subtley and Hidden Movement.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Rogue Class brings me new opportinities...")
end
end
function KingCello_TalkWarrior(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Warriors, fearful tanks, body inpenetrable!")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The might of the Warrior, feel it!")
end
end
function KingCello_TalkWarlock(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Warlocks, guardians of Dark magic and hidden secrets.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The shadows that surround the Warlock Class will always remain a mystery...")
end
end
--credits to nymphx of mmowned--
function KingCello_TalkMage(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Mages, guardians of the 3 Magic fields: Frost, Fire and Arcane.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Mage class is very versatile, I may use this again sometime...")
end
end
-- This picks the class, random 1-8, can be the same class again if unlucky. Varys the fight. --
function KingCello_ClassPick(pUnit, Event)
pUnit:RemoveEvents()
Choice=math.random(1,

if Choice==1 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Shaman!")
pUnit:RegisterEvent("KingCello_Shaman", 1000, 0)
pUnit:CastSpellOnTarget(34353,pUnit:GetRandomPlayer(0))
end
if Choice==2 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Paladin!")
pUnit:RegisterEvent("KingCello_Paladin", 1000, 0)
pUnit:CastSpellOnTarget(27174,pUnit:GetRandomPlayer(0))
end
if Choice==3 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Druid!")
pUnit:RegisterEvent("KingCello_Druid", 1000, 0)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
end
if Choice==4 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Priest!")
pUnit:RegisterEvent("KingCello_Priest", 1000, 0)
pUnit:CastSpellOnTarget(25364,pUnit:GetRandomPlayer(0))
end
if Choice==5 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Rogue!")
pUnit:RegisterEvent("KingCello_Rogue", 1000, 0)
pUnit:CastSpellOnTarget(36554,pUnit:GetRandomPlayer(0))
pUnit:CastSpell(43547)
end
if Choice==6 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Warrior!")
pUnit:RegisterEvent("KingCello_Warrior", 1000, 0)
pUnit:CastSpellOnTarget(25264,pUnit:GetMainTank())
end
if Choice==7 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Warlock!")
pUnit:RegisterEvent("KingCello_Warlock", 1000, 0)
pUnit:CastSpell(27212)
end
if Choice==8 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Mage!")
pUnit:RegisterEvent("KingCello_Mage", 1000, 0)
pUnit:CastSpellOnTarget(6131,pUnit:GetMainTank())
end
end
--SHAMAN OPTION 1--
function KingCello_Shaman(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellShamanChain", 11000, 0) --16033--
pUnit:RegisterEvent("KingCello_SpellShamanEarth", 13000, 0) --47071--
pUnit:RegisterEvent("KingCello_SpellShamanFrost", 14000, 0) --34353--
pUnit:RegisterEvent("KingCello_SpellShamanBuff", 5000, 0) --57802--
pUnit:SetModel(20681)
pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkShaman", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
function KingCello_SpellShamanChain(pUnit,Event)
pUnit:CastSpellOnTarget(16033,pUnit:GetMainTank())
end
function KingCello_SpellShamanEarth(pUnit,Event)
pUnit:CastSpellOnTarget(47071,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellShamanFrost(pUnit,Event)
pUnit:CastSpellOnTarget(34353,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellShamanBuff(pUnit,Event)
pUnit:CastSpell(49284)
end
--PALADIN OPTION 2--
function KingCello_Paladin(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellPaladinCons", 10000, 0) --27173--
pUnit:RegisterEvent("KingCello_SpellPaladinReckoning", 13500, 0) --20178--
pUnit:RegisterEvent("KingCello_SpellPaladinSeal", 30000, 0) --31801--
pUnit:RegisterEvent("KingCello_SpellPaladinShock", 15000, 0) --27174--
pUnit:RegisterEvent("KingCello_SpellPaladinShield", 12000, 0) --642--
pUnit:SetModel(619

pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkPaladin", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
function KingCello_SpellPaladinCons(pUnit,Event)
pUnit:CastSpell(27173)
end
function KingCello_SpellPaladinReckoning(pUnit,Event)
pUnit:CastSpell(2017

end
function KingCello_SpellPaladinSeal(pUnit,Event)
pUnit:CastSpell(31801)
end
function KingCello_SpellPaladinShock(pUnit,Event)
pUnit:CastSpellOnTarget(27174,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellPaladinShield(pUnit,Event)
pUnit:CastSpell(642)
end
--DRUID OPTION 3--
function KingCello_Druid(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellDruidStarfire", 10000, 0) --26986--
pUnit:RegisterEvent("KingCello_SpellDruidCripple", 12000, 0) --20812--
pUnit:RegisterEvent("KingCello_SpellDruidLifebloom", 7000, 0) --33763--
pUnit:RegisterEvent("KingCello_SpellDruidNatures", 19000, 0) --27009--
pUnit:SetModel(5927)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkDruid", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
function KingCello_SpellDruidStarfire(pUnit,Event)
pUnit:CastSpellOnTarget(26986,pUnit:GetMainTank())
end
function KingCello_SpellDruidCripple(pUnit,Event)
pUnit:CastSpellOnTarget(20812,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellDruidLifebloom(pUnit,Event)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
end
function KingCello_SpellDruidNatures(pUnit,Event)
pUnit:CastSpell(27009)
end
--PRIEST OPTION 4--
function KingCello_Priest(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellPriestNova", 8000, 0) --48078--
pUnit:RegisterEvent("KingCello_SpellPriestSmite", 10000, 0) --25364--
pUnit:RegisterEvent("KingCello_SpellPriestDispel", 19000, 0) --32375--
pUnit:RegisterEvent("KingCello_SpellPriestPain", 15000, 0) --25368--
pUnit:SetModel(5072)
pUnit:SetScale(1)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkPriest", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
function KingCello_SpellPriestNova(pUnit,Event)
pUnit:CastSpellOnTarget(48078,pUnit:GetMainTank())
end
--credits to nymphx of mmowned--
function KingCello_SpellPriestSmite(pUnit,Event)
pUnit:CastSpellOnTarget(25364,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellPriestDispel(pUnit,Event)
pUnit:CastSpell(32375)
end
function KingCello_SpellPriestPain(pUnit,Event)
pUnit:CastSpellOnTarget(25368,pUnit:GetRandomPlayer(0))
pUnit:CastSpellOnTarget(25368,pUnit:GetMainTank())
end
--ROGUE OPTION 5--
function KingCello_Rogue(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellRogueBlind", 11000, 0) --2094--
pUnit:RegisterEvent("KingCello_SpellRogueGhostly", 6000, 0) --14278--
pUnit:RegisterEvent("KingCello_SpellRogueSStep", 15000, 0) --36554--
pUnit:SetModel(361

pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkRogue", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
--credits to nymphx of mmowned--
function KingCello_SpellRogueBlind(pUnit,Event)
pUnit:CastSpellOnTarget(2094,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellRogueGhostly(pUnit,Event)
pUnit:CastSpellOnTarget(14278,pUnit:GetMainTank())
end
function KingCello_SpellRogueSStep(pUnit,Event)
pUnit:CastSpellOnTarget(36554,pUnit:GetRandomPlayer(0))
end
--WARRIOR OPTION 6--
function KingCello_Warrior(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellWarriorClap", 15000, 0) --25264--
pUnit:RegisterEvent("KingCello_SpellWarriorRend", 9000, 0) --25208--
pUnit:RegisterEvent("KingCello_SpellWarriorMortal", 13000, 0) --30330--
pUnit:RegisterEvent("KingCello_SpellWarriorCharge", 16000, 0) --11578--
pUnit:SetModel(19536)
pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkWarrior", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
function KingCello_SpellWarriorClap(pUnit,Event)
pUnit:CastSpellOnTarget(25264,pUnit:GetMainTank())
end
function KingCello_SpellWarriorRend(pUnit,Event)
pUnit:CastSpellOnTarget(25208,pUnit:GetMainTank())
end
function KingCello_SpellWarriorMortal(pUnit,Event)
pUnit:CastSpellOnTarget(30330,pUnit:GetMainTank())
end
function KingCello_SpellWarriorCharge(pUnit,Event)
pUnit:CastSpellOnTarget(11578,pUnit:GetRandomPlayer(0))
end
--WARLOCK OPTION 7--
function KingCello_Warlock(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellWarlockRain", 16000, 0) --27212--
pUnit:RegisterEvent("KingCello_SpellWarlockAgony", 10000, 0) --11712--
pUnit:RegisterEvent("KingCello_SpellWarlockIdiocy", 9000, 0) --1010--
pUnit:RegisterEvent("KingCello_SpellWarlockCoil", 11000, 0) --17926--
pUnit:SetModel(4462)
pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkWarlock", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
--credits to nymphx of mmowned--
function KingCello_SpellWarlockRain(pUnit,Event)
pUnit:CastSpell(27212)
end
function KingCello_SpellWarlockAgony(pUnit,Event)
pUnit:CastSpellOnTarget(11712,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellWarlockIdiocy(pUnit,Event)
pUnit:CastSpellOnTarget(1010,pUnit:GetRandomPlayer(0))
end
function KingCello_SpellWarlockCoil(pUnit,Event)
pUnit:CastSpellOnTarget(17926,pUnit:GetRandomPlayer(0))
end
--MAGE OPTION 8--
function KingCello_Mage(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("KingCello_SpellMageExplosion", 10000, 0) --27082--
pUnit:RegisterEvent("KingCello_SpellMageCone", 15000, 0) --10161--
pUnit:RegisterEvent("KingCello_SpellMageNova", 12000, 0) --6131--
pUnit:RegisterEvent("KingCello_SpellMageLance", 8000, 0) --30455--
pUnit:SetModel(1484)
pUnit:SetScale(2)
pUnit:RegisterEvent("KingCello_ClassPick", 30000, 0)
pUnit:RegisterEvent("KingCello_TalkMage", 15000, 0)
pUnit:RegisterEvent("KingCello_Talk", 10000, 0)
end
--credits to nymphx of mmowned--
function KingCello_SpellMageExplosion(pUnit,Event)
pUnit:CastSpell(27082)
end
function KingCello_SpellMageCone(pUnit,Event)
pUnit:CastSpellOnTarget(10161,pUnit:GetMainTank())
end
function KingCello_SpellMageNova(pUnit,Event)
pUnit:CastSpellOnTarget(6131,pUnit:GetMainTank())
end
function KingCello_SpellMageLance(pUnit,Event)
pUnit:CastSpellOnTarget(30455,pUnit:GetRandomPlayer(0))
end
--Rest of Script--
function KingCello_OnLeaveCombat(pUnit, event)
pUnit:RemoveEvents()
end
function KingCello_OnKilledTarget(pUnit)
pUnit:SendChatMessage(12, 0, "Feel my Wrath!")
pUnit:PlaySoundToSet(9250)
end
function KingCello_Death(pUnit)
pUnit:SendChatMessage(14, 0, "It... Can't... Be! You... shall... pay for this!")
pUnit:RemoveEvents()
end
RegisterUnitEvent(700010, 1, "KingCello_OnEnterCombat")
RegisterUnitEvent(700010, 2, "KingCello_OnLeaveCombat")
RegisterUnitEvent(700010, 3, "KingCello_OnKilledTarget")
RegisterUnitEvent(700010, 4, "KingCello_Death")