Yo, Gastric, still have plans to make the advanced version of this guide? If so, is there an ETA? Reeaaally looking forward to it. =D
Yo, Gastric, still have plans to make the advanced version of this guide? If so, is there an ETA? Reeaaally looking forward to it. =D
can somone PLEEAAASEE put what the script would look like when its done i dont know what i did wrong but the entry id isent working
:function Boss_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
end
end
function Boss_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(33846)
end
end
function Boss_Nova(Unit)
Unit:CastSpell(33846)
Unit:SendChatMessage(12, 0, "DIE!")
end
function Boss_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(33846)
Unit:RegisterEvent("Boss_Nova",10000, 0)
end
end
function Boss_Phase2(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
end
end
function Boss_Phase2(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:CastSpell(23537)
Unit:SendChatMessage(12, 0, "Omg no wait!")
end
end
function Boss_Phase1(Unit, event)
if Unit:GetHealthPct() < 70 then
Unit:CastSpell(33846)
Unit:RegisterEvent("Boss_Nova",10000, 0)
Unit:RegisterEvent("Boss_Phase2",1000, 0)
end
end
function Boss_OnCombat(Unit, event)
Unit:RegisterEvent("Boss_Phase1",1000, 0)
end
RegisterUnitEvent(43901, 1, "Boss_OnCombat")::??
Thanks, this is awesome guide!
function ValokP_Arcane1(Unit, event)
Unit:CastSpell(40425)
if Unit:GetHealthPct() < 95 then
Unit:RegisterEvent("ValokP_Jorma",20000, 0)
Unit:RegisterEvent("BossPP_Arcane2",1000, 0)
end
end
function ValokP_Jorma(Unit)
Unit:CastSpell(40425)
Unit:SendChatMessage(12, 0, "I will take you down to the deepest pits of hell!")
end
function BossPP_Arcane2(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:CastSpell(29691)
Unit:SendChatMessage(12, 0, "Now you got me angry!")
end
end
function Boss_OnCombat(Unit, event)
Unit:RegisterEvent("ValokP_Arcane1",1000, 0)
end
RegisterUnitEvent(555400, 1, "Boss_OnCombat")
Sorry, got a little problem >.> Why does it keep spamming teh first skill until 50% WITHOUT 20 sec breaks.
Last edited by Mahado; 01-23-2008 at 05:14 PM.
good guide!
Sorry, got it now ;P
Gastric, can you post the full example script...i want to see it all combined. Nice Guide xD, cant wait to start, though i would need a look at the full script. +rep
Very nice guide. But can you tell me how to make a boss summon a certain monster at a certain amount of hp?
great guidesoz i cant rep u anymore
xD
World best PvP Paladin=Me? GG ;D
Awesome guideI have a question though, where are you learning LUA from? And is it possible to create scripts related to Items, GOs, etc. I'm fairly sure it is, a guide for that would be awesome :P
I would like to thank you very much for this guide.I am making a private server and the files i got have no script so i wanted some help with this and u gave it to me![]()
very nice tutorial
Question on this, please
I created an NPC to fight and set up the script
It appears to call the script, but I dont seem to see any of hte spells I am telling it to cast
I am using the same spell in every area, just to see if I can get anything to cast
Not sure if I am using wrong spell ID but from my search 11702 should be a rank of Drain Life, but I never see this casted on me.
Thanks for any help
Here is the script in full
The chat messages are a test only really, but they appear to be workingCode:function phase_1(pUnit, Event) if pUnit:GetHealthPct() < 70 then pUnit:RemoveEvents(); pUnit:FullCastSpell(11702) pUnit:SendChatMessage(12, 0, "NOW TO START!") pUnit:RegisterEvent("phase_2",1000, 0) end end function phase_2(pUnit, Event) if pUnit:GetHealthPct() < 50 then pUnit:RemoveEvents(); pUnit:FullCastSpell(11702) pUnit:SendChatMessage(12, 0, "Drain Life!") pUnit:RegisterEvent("phase_3",1000, 0) end end function phase_3(pUnit, Event) if pUnit:GetHealthPct() < 30 then pUnit:RemoveEvents(); pUnit:FullCastSpell(11702) pUnit:SendChatMessage(12, 0, "NOOO I DONT WANNA DIE!") end end function boss_start(pUnit, Event) pUnit:RegisterEvent("phase_1",1000, 0) end RegisterUnitEvent(2, 1, "boss_start")
the only issue I see if this spells.
I also just tried
FullCastSpellOnTarget(7641,unit:GetClosestPlayer()) from the Ascent Wiki Lua section
But still did not see any of the nukes casted on myself
Last edited by abndrew82; 02-06-2008 at 09:39 PM.