[HELP] My script dosnt work =( +rep for help -
03-13-2008
Code:
function Traxxas_Phase1(Unit, event)
if Unit:GetHealthPct() < 80 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Time to die!")
Unit:SetModel(762)
Unit:SetScale(5)
Unit:CastSpell(41232)
Unit:RegisterEvent("Traxxas_Stomp",8000, 0)
Unit:RegisterEvent("Traxxas_Phase2",3000, 0)
end
end
function Traxxas_Phase2(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Oh im geting bigger now!")
Unit:SetModel(16292)
Unit:SetScale(7)
Unit:CastSpell(41232)
Unit:RegisterEvent("Traxxas_Whirlwind",8000, 0)
Unit:RegisterEvent("Traxxas_Phase3",3000, 0)
end
end
function Traxxas_Phase3(Unit, event)
if Unit:GetHealthPct() < 60 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "What now ?")
Unit:SetModel(20931)
Unit:SetScale(6)
Unit:CastSpell(41232)
Unit:RegisterEvent("Traxxas_Whirlwind",10000, 0)
Unit:RegisterEvent("Traxxas_Phase4",3000, 0)
end
end
function Traxxas_Phase4(Unit, event)
if Unit:GetHealthPct() <= 50 then
Unit:RemoveEvents()
Unit:SetScale(5)
Unit:SetModel(20918)
Unit:CastSpell(41232)
Unit:SendChatMessage(12, 0, "You shall all pay dearly!")
Unit:RegisterEvent("Traxxas_Whirlwind",8000, 0)
Unit:RegisterEvent("Traxxas_Phase5",1000, 0)
end
end
function Traxxas_Phase5(Unit, event)
if Unit:GetHealthPct() <= 40 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Did u lose life?")
Unit:SetScale(4)
Unit:CastSpell(39676)
Unit:RegisterEvent("Traxxas_Phase6",7000, 0)
function Traxxas_OnCombat(Unit)
Unit:CastSpell(41431)
Unit:SendChatMessage(11, 0, "Think u can kill me ? well u can try!")
end
function Traxxas_OnKilledTarget(Unit)
Unit:SendChatMessage(11, 0, "Fell my Whirlwind!")
Unit:CastSpell(36981)
end
function Traxxas_OnKilledTarget(Unit)
Unit:SendChatMessage(12, 0, "Did u came here to die ?")
end
function Traxxas_onCombat (pUnit, Event)
pUnit:PlaySoundToSet (5860)
end
RegisterUnitEvent(1300028, 1, "Traxxas_OnCombat")
RegisterUnitEvent(1300028, 2, "Traxxas_OnLeaveCombat")
RegisterUnitEvent(1300028, 3, "Traxxas_OnKilledTarget")
RegisterUnitEvent(1300028, 4, "Traxxas_Death")
function Traxxas_Phase1(pUnit, event) if
pUnit:GetHealthPct() < 80 then pUnit:RemoveEvents()
pUnit:SendChatMessage(12, 0, "Time to die!")
pUnit:SetModel(762) pUnit:SetScale(5)
pUnit:CastSpell(41232)
pUnit:RegisterEvent("Traxxas_Stomp",8000, 0)
pUnit:RegisterEvent("Traxxas_Phase2",3000, 0)
end
end
function Traxxas_Phase2(pUnit, event)
if pUnit:GetHealthPct() < 70 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(12, 0, "Oh im geting bigger now!")
pUnit:SetModel(16292)
pUnit:SetScale(7)
pUnit:CastSpell(41232)
pUnit:RegisterEvent("Traxxas_Whirlwind",8000, 0)
pUnit:RegisterEvent("Traxxas_Phase3",3000, 0)
end
end
function Traxxas_Phase3(pUnit, event)
if pUnit:GetHealthPct() < 60 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(12, 0, "What now ?")
pUnit:SetModel(20931)
pUnit:SetScale(6)
pUnit:CastSpell(41232)
pUnit:RegisterEvent("Traxxas_Whirlwind",10000, 0)
pUnit:RegisterEvent("Traxxas_Phase4",3000, 0)
end
end
function Traxxas_Phase4(pUnit, event)
if Unit:GetHealthPct() <= 50 then
pUnit:RemoveEvents()
pUnit:SetScale(5)
pUnit:SetModel(20918)
pUnit:CastSpell(41232)
pUnit:SendChatMessage(12, 0, "You shall all pay dearly!")
pUnit:RegisterEvent("Traxxas_Whirlwind",8000, 0)
pUnit:RegisterEvent("Traxxas_Phase5",1000, 0)
end
end
function Traxxas_Phase5(pUnit, event)
if pUnit:GetHealthPct() <= 40 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(12, 0, "Did u lose life?")
pUnit:SetScale(4)
pUnit:CastSpell(39676)
pUnit:RegisterEvent("Traxxas_Phase6",7000, 0)
end
end
function Traxxas_OnCombat(pUnit)
pUnit:CastSpell(41431)
pUnit:SendChatMessage(11, 0, "Think u can kill me ? well u can try!")
end
function Traxxas_OnKilledTarget(Unit)
pUnit:SendChatMessage(11, 0, "Fell my Whirlwind!")
pUnit:CastSpell(36981)
end
function Traxxas_OnKilledTarget(pUnit)
pUnit:SendChatMessage(12, 0, "Did u came here to die ?")
end
function Traxxas_onCombat (pUnit, Event)
pUnit:PlaySoundToSet (5860)
end
RegisterUnitEvent(1300028, 1, "Traxxas_OnCombat")
RegisterUnitEvent(1300028, 2, "Traxxas_OnLeaveCombat")
RegisterUnitEvent(1300028, 3, "Traxxas_OnKilledTarget")
RegisterUnitEvent(1300028, 4, "Traxxas_Death")
[Only registered and activated users can see links. ] 19 twink realm and pre tbc!
Not quite sure.. Here
I know theres no p Before unit, But I don't think thats the case..
Code:
functin Vivoxity_Phase6(Unit, Event)
if Unit:GetHealthPct() <5 then
RemoveEvents()
Unit:SendChatMessage(12, 0, "I Will take you with me!"
Unit:RegisterEvent(Vivoxity_Hex of Weakness",1000,0)
Unit:RegisterEvent(Vivoxity_ShadowBolt",5000,0)
Unit:RegisterEvent:SetScale(8)
end
end
function Vivoxity_ShadowBolt(Unit)
Unit:CastSpellOntarget(11661, Unit:GetRandomPlayer(0))
end
function Vivoxity_Hex of Weakness(Unit)
Unit:CastSpellOntarget(19285, Unit:GetRandomPlayer(0))
end
functino Vivoxity_Phase5(Unit, Event)
if Unit:GetHealthPct() <30 then
RemoveEvents()
Unit:SendChatMessage(12, 0, "You will never win!"
Unit:RegisterEvent(Vivoxity_Hex of Weakness",5000,0)
Unit:RegisterEvent(Vivoxity_ShadowBolt",6000,0)
Unit:RegisterEvent:SetScale(3)
end
end
function Vivoxity_ShadowBolt(Unit)
Unit:CastSpellOntarget(11661, Unit:GetRandomPlayer(0))
end
function Vivoxity_Hex of Weakness(Unit)
Unit:CastSpellOntarget(19285, Unit:GetRandomPlayer(0))
end
functino Vivoxity_Phase4(Unit, Event)
if Unit:GetHealthPct() <30 then
RemoveEvents()
Unit:SendChatMessage(12, 0, "I SHALL PREVAIL!"
Unit:RegisterEvent(Vivoxity_Hex of Weakness",5000,0)
Unit:RegisterEvent:SetScale(2)
end
end
function Vivoxity_ShadowBolt(Unit)
Unit:CastSpellOntarget(11661, Unit:GetRandomPlayer(0))
end
function Vivoxity_Hex of Weakness(Unit)
Unit:CastSpellOntarget(19285, Unit:GetRandomPlayer(0))
end
functino Vivoxity_Phase3(Unit, Event)
if Unit:GetHealthPct() <40 then
RemoveEvents()
Unit:SendChatMessage(12, 0, "Lets make this fun!"
Unit:RegisterEvent(Vivoxity_ShadowBolt",6000,0)
Unit:RegisterEvent:SetScale(6)
end
end
function Vivoxity_ShadowBolt(Unit)
Unit:CastSpellOntarget(11661, Unit:GetRandomPlayer(0))
end
function Vivoxity_Hex of Weakness(Unit)
Unit:CastSpellOntarget(19285, Unit:GetRandomPlayer(0))
end
function Vivoxity_Phase2(Unit, Event)
if Unit:GetHealthPct() < 75 then
RemoveEvents()
Unit:SendChatMessage(11, 0, "Lets try something else?")
Unit:CastSpell(11661)
end
end
function Vivoxity_ShadowBolt(Unit)
Unit:CastSpellOntarget(11661, Unit:GetRandomPlayer(0))
end
function Vivoxity_Hex of Weakness(Unit)
Unit:CastSpellOntarget(19285, Unit:GetRandomPlayer(0))
end
function Vivoxity_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "Vivoxity Shall DESTROY you!")
Unit:RegisterEvent("Vivoxity_ShadowBolt",10000,0)
Unit:RegisterEvent("Vivoxity_Phase2",1000,0)
end
function Vivoxity_OnLeaveCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "You have failed to defeat me!")
Unit:RemoveEvents()
end
function Vivoxity_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "One down for the count! Now, To Increase my strength!")
Unit:RegisterEvent:SetScale(4)
end
function Vivoxity_OnDied(Unit, Event)
Unit:SendChatMessage(11, 0, "I..can't believe I lost!")
Unit:RemoveEvents()
end
RegisterUnitEvent(870050, 1, "Vivoxity_OnCombat")
RegisterUnitEvent(870050, 2, "Vivoxity_OnLeaveCombat")
RegisterUnitEvent(870050, 3, "Vivoxity_OnKilledTarget")
RegisterUnitEvent(870050, 4, "Vivoxity_OnDied")
RegisterUnitEvent(870050, 5, "Vivoxity_ShadowBolt
RegisterUnitEvent(870050, 6, "Vivoxity_Hex of Weakness
is it any lua script's that make the Mob (Boss ) say Im targeting you (The one he target name) and i want him to target new one's and say the same thing whit random ppl like . Im tareting you Traxxas!. then next time he make the spell he take's a new target and say . Im targeting you (New target's name)!