Short question. How could I disable the champion spawn for certain monsters with a certain title? The monster type is L2Monster, and the title is MonsterSpawn.
Would it be possible to exclude these mobs to be transformed into a champion mob?
if(Config.L2JMOD_CHAMPION_ENABLE){// Set champion on next spawnif(!(thisinstanceof L2GrandBossInstance)&&!(thisinstanceof L2RaidBossInstance)&&!(thisinstanceof L2ChestInstance)&&!(getTemplate().title.contentEquals("MonsterSpawn")&&(thisinstanceof L2MonsterInstance)&&(Config.L2JMOD_CHAMPION_FREQUENCY >0)&&(getLevel()>=Config.L2JMOD_CHAMP_MIN_LVL)&&(getLevel()<=Config.L2JMOD_CHAMP_MAX_LVL))){
final int random =Rnd.get(100);if(random <Config.L2JMOD_CHAMPION_FREQUENCY){
setChampion(true);}}}
As you can see I tried with the getTemplte.title but I doesn't work.
I am not going to do that
He can do whatever he likes, it just bad from him to choose pixels over friendship
I always tried to help.. never again and im gone for good
I’m looking for screenshots of the mini-games that used in web panels.
I found images the Lucky Wheel and its almost finished.
I remember there was a dice game and another one with levels/TOI Floors etc that ive seen on different sites,
but i cant find them now. If anyone’s willing to help, please share a screenshot of the game.
Question
stalker66
Hi guys.
Short question. How could I disable the champion spawn for certain monsters with a certain title? The monster type is L2Monster, and the title is MonsterSpawn.
Would it be possible to exclude these mobs to be transformed into a champion mob?
As you can see I tried with the getTemplte.title but I doesn't work.
Any help or hint would be great. Thanks!
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