L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: junin00 on September 11, 2020, 08:54:52 AM

Title: Include Aura in Mobs Champion
Post by: junin00 on September 11, 2020, 08:54:52 AM
For those who like it, enjoy.  :P

Code: [Select]

===================================================================================
Index: java.org.l2jmobius.Config.java
===================================================================================

public static String CHAMP_TITLE;
+ public static int CHAMPION_ENABLE_AURA;



CHAMP_TITLE = championConfig.getString("ChampionTitle", "Champion");
+ CHAMPION_ENABLE_AURA = championConfig.getInt("ChampionEnableAura", 0);
+ if ((CHAMPION_ENABLE_AURA != 0) && (CHAMPION_ENABLE_AURA != 1) && (CHAMPION_ENABLE_AURA != 2))
+ {
+ CHAMPION_ENABLE_AURA = 0;
+ }


===================================================================================
Index: java.org.l2jmobius.gameserver.network.serverpackets.NpcInfo.java
===================================================================================

- writeC(0x00); // C3 team circle 1-blue, 2-red
+ if (Config.CHAMPION_ENABLE)
+ {
+ writeC(_creature.isChampion() ? Config.CHAMPION_ENABLE_AURA : 0);
+ }
+ else
+ {
+ writeC(0x00); // C3 team circle 1-blue, 2-red
+ }

===================================================================================
Index:  dist\game\config\custom\Champion.ini
===================================================================================

ChampionTitle = Champion
+
+# Enable aura from champion mobs
+# 0 - no aura / 1 - blue aura / 2 - red aura
+# Default = 0
+ChampionEnableAura = 0

Title: Re: Include Aura in Mobs Champion
Post by: Mobius on September 12, 2020, 02:18:06 AM
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/2aaa7f1fba26ce81564e81e94f55e631d5bd1025
Thanks :D