Well, I made this script from scratch, just replace "NPC Entry ID" and "NPC Name" and "What you want your boss to say", or if you already know how to edit LUA scripts, go ahead and be my guestYou can also change the percentages.
(By the way, this script makes your Boss summon a strange minion that seems to look like a Frost Voidwalker. It will also make your Boss breathe fire after killing you or your raid. Also, what this script does, it makes your Boss say something at each percent of it's health. For example, if your attacking your Boss, and you get him to let's say 90%, he'll say something like, "Haha, I'm still alive!" or something.)
Credits to me (Please keep my name intact with the script).
--Written from scratch by Devin Adam Morales (Also known as Spearman360 or TheLoneWolf)
function NPCName_Spell1(Unit)
Unit:CastSpell(32663)
end
function NPCName_Spell2(Unit)
Unit:CastSpell(23189)
end
function NPCName_Spell3(Unit)
Unit:CastSpell(2938
end
function NPCName_Phase1(Unit, event)
if Unit:GetHealthPct() < 90 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Spell1",10000, 1)
Unit:RegisterEvent("NPCName_Phase2",1000, 0)
end
end
function NPCName_Phase2(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Spell2",10000, 1)
Unit:RegisterEvent("NPCName_Phase3",1000, 0)
end
end
function NPCName_Phase3(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:SendchatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Phase4",1000, 0)
end
end
function NPCName_Phase4(Unit, event)
if Unit:GetHealthPct() < 30 then
Unit:RemoveEvents()
Unit:SendchatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Phase5",1000, 0)
end
end
function NPCName_Phase5(Unit, event)
if Unit:GetHealthPct() < 10 then
Unit:RemoveEvents()
Unit:SendchatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Spell3",10000, 1)
end
end
function NPCName_OnCombat(Unit, event)
Unit:SendChatMessage(12, 0, "What you want your Boss to say")
Unit:RegisterEvent("NPCName_Phase1",1000, 0)
Unit:RegisterEvent("NPCName_Phase2",1000, 0)
Unit:RegisterEvent("NPCName_Phase3",1000, 0)
Unit:RegisterEvent("NPCName_Phase4",1000, 0)
Unit:RegisterEvent("NPCName_Phase5",1000, 0)
end
function NPCName_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
end
function NPCName_OnKilledTarget(Unit)
Unit:SendChatMessage(12, 0, "What you want your Boss to say")
Unit:CastSpell(2938
end
function NPCName_Death(Unit)
Unit:SendChatMessage(12, 0, "What you want your Boss to say")
Unit:RemoveEvents()
end
RegisterUnitEvent(NPC Entry Id, 1, "NPCName_OnCombat")
RegisterUnitEvent(NPC Entry Id, 2, "NPCName_OnLeaveCombat")
RegisterUnitEvent(NPC Entry Id, 3, "NPCName_OnKilledTarget")
RegisterUnitEvent(NPC Entry Id, 4, "NPCName_Death")