i want create if player kill champion after spawn champion set lv2 this code set him but after spawn he don't be simple mob he is anyway champion lv2 some ideas?
L2Attackable.java
public boolean doDie(L2Character killer)
{
if(Config.L2JMOD_CHAMPION_ENABLE)
{
if(isChampion())
{
setChampionlv2(true);
return true;
}
}
setChampion(false);
setChampionlv2(false);
//TODO
if(Config.L2JMOD_CHAMPION_ENABLE)
{
//Set champion on next spawn
if(!(this instanceof L2GrandBossInstance)
&& !(this instanceof L2RaidBossInstance)
&& !isChampionlv2()
&& this instanceof L2MonsterInstance
&& Config.L2JMOD_CHAMPION_FREQUENCY > 0
&& getLevel() >= Config.L2JMOD_CHAMP_MIN_LVL
&& getLevel() <= Config.L2JMOD_CHAMP_MAX_LVL)
{
int random = Rnd.get(100);
if(random < Config.L2JMOD_CHAMPION_FREQUENCY)
{
setChampion(true);
}
}
}return true;
}