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?


			// Set champion on next spawn
			if (!(this instanceof L2GrandBossInstance) && !(this instanceof L2RaidBossInstance) && !(this instanceof L2ChestInstance) && !(getTemplate().title.contentEquals("MonsterSpawn") && (this instanceof 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)

As you can see I tried with the getTemplte.title but I doesn't work.

Any help or hint would be great. Thanks!

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.