and just in case you dont know there are your coors to change orfens spawn on half HP or to delete hes spawn on half hp
@Override
public String onAttack(L2NpcInstance npc, L2PcInstance attacker, int damage, boolean isPet)
{
int npcId = npc.getNpcId();
if (npcId == ORFEN)
{
if (FirstAttacked)
{
if ((npc.getCurrentHp() - damage) < (npc.getMaxHp() / 2) && !Teleported)
{
GrandBossManager.getInstance().getStatsSet(ORFEN).set("currentHP", npc.getCurrentHp());
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
Teleported = true;
npc.getSpawn().setLocx(43577);
npc.getSpawn().setLocy(15985);
npc.getSpawn().setLocz(-4396);
npc.teleToLocation(43577, 15985, -4396, false);
startQuestTimer("ORFEN_REFRESH", 10000, npc, null);
}
else if (npc.isInsideRadius(attacker, 1000, false, false) && !npc.isInsideRadius(attacker, 300, false, false) && Rnd.get(10) == 0)
{
attacker.teleToLocation(npc.getX(), npc.getY(), npc.getZ());
npc.setTarget(attacker);
npc.doCast(SkillTable.getInstance().getInfo(4064, 1));
}
}
else
{
FirstAttacked = true;
}
}
return super.onAttack(npc, attacker, damage, isPet);
}