hey nice it works, ill rep you when I spread around the reps lol but another question, this is
a bit werid...
I made two bosses with two different LUA script but whenever I go in game ad test the
bosses out, they both use this script
Code:
function Boss_Spire(pUnit, Event)
pUnit:CastSpell(41377)
pUnit:SendChatMessage(12, 0, "Hmm, interesting . . .")
end
function Boss_BlastNova(pUnit, Event)
pUnit:CastSpell(30616)
pUnit:SendChatMessage(12, 0, "This is getting easy . . .")
end
function Boss_Cleave(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(25231, plr)
end
end
function Boss_OnEnterCombat(pUnit, Event)
pUnit:SendChatMessage(12, 0, "You? Me? You have got to be ****ing kidding me . . .")
pUnit:RegisterEvent("Boss_Spire",20000, 0)
pUnit:RegisterEvent("Boss_BlastNova",20000, 0)
pUnit:RegisterEvent("Boss_Cleave",15000, 0)
end
function Boss_OnLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
function Boss_KilledTarget(pUnit, Event)
pUnit:SendChatMessage(12, 0, "You heard . . .")
pUnit:RemoveEvents()
end
function Boss_OnDied(pUnit, Event)
pUnit:SendChatMessage(12, 0, "You won't hear from me . . .")
pUnit:RemoveEvents()
end
RegisterUnitEvent(400406, 1, "Boss_OnEnterCombat")
RegisterUnitEvent(400406, 2, "Boss_OnLeaveCombat")
RegisterUnitEvent(400406, 3, "Boss_OnKilledTarget")
RegisterUnitEvent(400406, 4, "Boss_onDied")
when I took out that script, the boss with the entry id of 444004 uses this one
Code:
function Boss_ChaosBlast(pUnit, Event)
pUnit:FullCastSpellOnTarget(37675, target)
pUnit:SendChatMessage(12, 0, "Feel the Chaos!")
end
function Boss_ShadowBurst(pUnit, Event)
pUnit:CastSpell(34436)
pUnit:SendChatMessage(12, 0, "Hmm, I can feel the power!")
end
function Boss_Flamebreak(pUnit, Event)
pUnit:CastSpell(16785)
pUnit:SendChatMessage(12, 0, "Don't run away from me!")
end
function Boss_DarkBarrage(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:CastSpellOnTarget(40585, plr)
end
end
function Boss_VileBeam(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(40860, plr)
end
end
function Boss_OnEnterCombat(pUnit, Event)
pUnit:SendChatMessage(12, 0, "I am Legend's Top Offcier, you think you will have a chance?")
pUnit:RegisterEvent("Boss_ChaosBlast",20000, 0)
pUnit:RegisterEvent("Boss_VileBeam",20000, 0)
pUnit:RegisterEvent("Boss_ShadowBurst",10000, 0)
pUnit:RegisterEvent("Boss_Flamebreak",15000, 0)
pUnit:RegisterEvent("Boss_DarkBarrage",15000, 0)
end
function Boss_OnLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
function Boss_KilledTarget(pUnit, Event)
pUnit:SendChatMessage(12, 0, "Hahaha, fools, Engar loses to no one!")
pUnit:RemoveEvents()
end
function Boss_OnDied(pUnit, Event)
pUnit:SendChatMessage(12, 0, "Legend . . . will . . . not be . . . defeated . . .")
pUnit:RemoveEvents()
end
RegisterUnitEvent(444010, 1, "Boss_OnEnterCombat")
RegisterUnitEvent(444010, 2, "Boss_OnLeaveCombat")
RegisterUnitEvent(444010, 3, "Boss_OnKilledTarget")
RegisterUnitEvent(444010, 4, "Boss_onDied")
and the one with the 400406 doesn't use any scripts,
hope someone can help