Meltoor, thats what the
Unit:RemoveEvents()
does, it makes sure it doesnt go back to the first percentage check.
I see now.
Nice guide Gastic, I hate that on the rev I'm using the RemoveEvents() function doesnt work. +rep
pure win /bow to you man great guide i dont wrote 3 bosses just to test it btw i would love to try a advanced one /hint hint nudge nudge
EXCELLENT guide, love your work. Almost willing to buy the advanced guide!
Thanks heaps man i could really use this!!!
Here is my problem... once he gets down to 70% he cast frostbolt (my version) and doesn't stop casting it at all.... he just keeps on and on and on.....
Here is my script
function LordThanatos_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(2847
Unit:RegisterEvent("LordThanatos_Doom",25000, 0)
Unit:RegisterEvent("LordThanatos_Phase2",1000, 0)
Unit:RegisterEvent("LordThanatos_Phase3",1000, 0)
end
end
function LordThanatos_Doom(Unit)
Unit:CastSpell(29204)
Unit:SendChatMessage(12, 0, "FEEL DEATHS TOUCH!!!")
end
function LordThanatos_Phase2(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:CastSpell(2847
Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
end
end
function LordThanatos_Phase3(Unit, event)
if Unit:GetHealthPct() < 20 then
Unit:RemoveEvents()
Unit:CastSpell(23537)
Unit:SendChatMessage(12, 0, "YOU ARE STARTING TO PISS ME OFF!!")
end
end
function LordThanatos_OnCombat(Unit, event)
Unit:RegisterEvent("LordThanatos_Phase1",1000, 0)
end
RegisterUnitEvent(101010, 1, "LordThanatos_OnCombat")
Thank you so much for this guide mate, it is very useful..
I shall use it myself, thanks again mate.. /smile
Many kind regards,
Shaun.
Rep added.
I only have one problem with this mate..
Is this right what I am thinkin'..
Open up notepad..
Do the script..
But how do I save into a .lua file in notepad. /smile
Thanks for your help mate..
If I get any.. /laugh
just do, save as > name.lua
just add .lua after the name and it converts to lua
and for blah7
from what i'm trying to understand,
unction LordThanatos_Doom(Unit)
Unit:CastSpell(29204)
should be the same as
function LordThanatos_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(28478)
Well there is a problem in your script. This boss would only reach phase 2 then all of the other functions would be removed. You only registered the events to check every second in the first phase, so once it hits the second phase - Those checks are removed, and phase 3 isnt registered. You need to register the next event in each phase.
Thank you for your help, I will see if that works later.. /smile
well it work on 70% but after that i get crushed.... oo well thx for ur hard work +rep!
Sweet! I can use this on my server! Thanks!![]()
Woot very nice guide its really cool hoping to see more guides from you6):