hey guys time for me to cough up something else.....
anyway here it is
HOW TO SCRIPT VIA LUA!@!!!@!11
I WILL FORMAT IT BASICALLY FILL IN THE BLANK TO MAKE IT EASIER.
OK HERE WE GO
FIRST AFTER FUNCTION always put the bosses name
function bosses name_OnCombat(Unit, Event)
next is how the guy says it , what form of speech 11 is sya 12 is yell and 13 is alert or something that no one uses......
Unit:SendChatMessage(11, 0, "thing he says on combat")
now, the bosses name, the name of the spell, the spell name can be anything TBH as long as you know what it is. then how many seconds till hee casts it, like 5 means every 5 seconds.
now the last number means how many times he will cast it, put 1000 or something if u want him to keep doing it
Unit:RegisterEvent("bosses name_spellname1", how many seconds till it casts, x ammount of times)
same thing here
Unit:RegisterEvent("bosses name_spellname2", how many seconds till it casts, 7)
end
again, same thing here except for the [Units,event thing]
GetRandomPlayer(0)) means get any random player
GetRandomPlayer(4)) means get any random player with mana
GetRandomPlayer(5)) anyone with rage
GetRandomPlayer(6)) anyone with energy
GetRandomPlayer(7)) random non maintank
also, FullCastSpellOnTarget part.
FullCastSpellOnTarget casts a spell on a specific target!
CastSpellOnTarget casts without a casting bar
CastSpell is any AoE
function bosses name_spellname1(pUnit, Event)
pUnit:FullCastSpellOnTarget(spellID, pUnit:GetRandomPlayer(0))
end
function bosses name_spellname2(pUnit, Event)
pUnit:CastSpell(spellID, pUnit:GetRandomPlayer(0))
end
this is simple, just fill in the blank and thing he says on death, when he kills you and when he enters combat.
function bosses name_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "thing he says when dies")
end
function bosses name_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "thing he says when he kills a player")
end
RegisterUnitEvent(npc ID, 1, "bosses name_OnCombat")
RegisterUnitEvent(npc ID, 3, "bosses name_OnKilledTarget")
RegisterUnitEvent(npc ID, 4, "bosses name_OnDied")
thats all for now guys, ^^ hopefully you learned a bit of the basics from me now!! hehe shoudl look like this when completed.
Code:function bosses name_OnCombat(Unit, Event) Unit:SendChatMessage(11, 0, "thing he says on combat") Unit:RegisterEvent("bosses name_spellname1", how many seconds till it casts, 7) Unit:RegisterEvent("bosses name_spellname2", how many seconds till it casts, 7) end function bosses name_spellname1(pUnit, Event) pUnit:FullCastSpellOnTarget(spellID, pUnit:GetRandomPlayer(0)) end function bosses name_spellname2(pUnit, Event) pUnit:CastSpell(spellID, pUnit:GetRandomPlayer(0)) end function bosses name_OnDied(Unit, Event) Unit:RemoveEvents() Unit:SendChatMessage(12, 0, "thing he says when dies") end function bosses name_OnKilledTarget(Unit, Event) Unit:SendChatMessage(12, 0, "thing he says when he kills a player") end RegisterUnitEvent(npc ID, 1, "bosses name_OnCombat") RegisterUnitEvent(npc ID, 3, "bosses name_OnKilledTarget") RegisterUnitEvent(npc ID, 4, "bosses name_OnDied")