is it possible to make a certain phase for a boss that would last x number of seconds and then return tho the previous phase with lua?
if so could you tell me the syntax and the lua command.
if you can answer my question I will +RepX2
is it possible to make a certain phase for a boss that would last x number of seconds and then return tho the previous phase with lua?
if so could you tell me the syntax and the lua command.
if you can answer my question I will +RepX2
Well, you could, im not so good with LUA, but it should be like something "return previous session" in LUA form.... something like that. :P
that does not sound like anything I ever heard before and I script lua....
still need help!
Sorry I was trying to help. :x
it is alright.
ps still need help.
WAIT I have an idea!
Maybe after you do that 'certain phase' put the same thing you did before the 'certain phase' then gtg? So like...
EX:
First Phase
'Certain Phase'
First phase again.
yes but this is the part I really need.
I understand the other part.that would last x number of seconds
Ah... damn okay, I cant get that one. =/
help!!!!!!!!!!!!!!!!!!!!!
Hi, this could work:
The Boss should say "Phase1!" at the beginning...after 30 sec he went to Phase2 and say "Phase2!". After 7 sec he went again to Phase1 and so on^^
i didnt have a core atm, so try it out.Code:function BossPhase1(pUnit, Event) pUnit:RemoveEvents() pUnit:RegisterEvent("Boss_phase2", 30000, 0) pUnit:SendChatMessage(14, 0, "Phase 1!", 100, 1) end function Boss_phase2(pUnit, Event) pUnit:RemoveEvents() pUnit:SendChatMessage(14, 0, "Phase 2!", 100, 1) pUnit:RegisterEvent("BossPhase1", 7000, 0) end RegisterUnitEvent(YOURNPCID, 1, "BossPhase1")![]()
lol that could work but why dont we not spam with zeros, grats to you but to clear it up a little try this, plus stages dont need to be stated with messages you could just start the event^^ a spell might be sexy oo i have a sexy little one ^^
Other than that very sexyCode:function Boss_OnCombat(pUnit,Event) target = pUnit:GetMainTank() pUnit:RemoveEvents() pUnit:RegisterEvent("Boss_phase2", 30000, 1) target:CastSpell(1) -- you will like this one ^^ end function Boss_phase2(pUnit,Event) pUnit:RemoveEvents() pUnit:SendChatMessage(14, 0, "Phase 2!", 100, 1) pUnit:RegisterEvent("BossPhase1", 30000, 1) end RegisterUnitEvent(YOURNPCID, 1, "Boss_OnCombat")
Last edited by Scubast3ve; 04-23-2009 at 11:42 AM.
thanks both of you +Rep to both!
cooldown sorry....