darksoke
OnTop500
Well i would like to know if there is a way to restore boss HP when he is changing phase based on a variable something like
reset_hp -> uint32 reset_hp=0; <-on boss script
on justdied -> reset_hp=0;
it lool like that SetHealth and SetMaxHealth just change boss health value in Database or something
i was also thinking to keep the buff Ubber Heal Over Time for few minutes until boss will spawn few adds so players will have to fight a bit then come back .... but i would like to use the healthpct annyway to avoid bugging it with buffs
EDIT: NVM i forgot about SetFullHealth
Code:
[COLOR="#FFFFFF"]if (events.IsInPhase(1) && HealthBelowPct(50))
{
if (reset_hp !=10)
{
events.SetPhase(1);[/color]
[COLOR="#FF0000"]me->SetHealth(me->GetMaxHealth());[/COLOR] [COLOR="#FFFFFF"]<- obviously this don't work ....
reset_hp++;
}
events.SetPhase(2);
events.ScheduleEvent(EVENT_AQUA_BLAST, 10000, 0, 2);
events.ScheduleEvent(EVENT_SPAWN_NAGA, 25000, 0, 2);
}[/color]
reset_hp -> uint32 reset_hp=0; <-on boss script
on justdied -> reset_hp=0;
it lool like that SetHealth and SetMaxHealth just change boss health value in Database or something
i was also thinking to keep the buff Ubber Heal Over Time for few minutes until boss will spawn few adds so players will have to fight a bit then come back .... but i would like to use the healthpct annyway to avoid bugging it with buffs
EDIT: NVM i forgot about SetFullHealth
Last edited: