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.
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!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now