This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
forsas
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; }1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now