Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/net/sf/l2j/gameserver/model/actor/L2Character.java
- /**
- * @return true if the character is located in an arena (aka a PvP zone which isn't a siege).
- */
- public boolean isInArena()
- {
- return false;
- }
- + /**
- + * Return True if the NpcInstance is agressive (ex : MonsterInstance in function of aggroRange).
- + * @return true, if is aggressive
- + */
- + public boolean isAggressive()
- + {
- + return false;
- + }
- Index: java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java
- writeS(_name);
- writeS(_title);
- + if (Config.SHOW_RED_NAME_IF_AGGRO)
- + {
- + writeD(0);
- + writeD(0);
- + writeD(_npc.isAggressive() ? 0x9999 : 0x00);
- + }
- - writeD(0x00);
- - writeD(0x00);
- - writeD(0x00);
- writeD(_npc.getAbnormalEffect());
- Index: java/net/sf/l2j/Config.java
- public static int MAX_MONSTER_ANIMATION;
- +public static boolean SHOW_RED_NAME_IF_AGGRO;
- ALLOW_CLASS_MASTERS = npcs.getProperty("AllowClassMasters", false);
- +SHOW_RED_NAME_IF_AGGRO = Boolean.parseBoolean(npcs.getProperty("ShowRedName", "true"));
- Index: gameserver\config\npcs.properties
- +# Show Red name of NPC / Monster if is agrro
- +# Default: False
- +ShowRedName = True
- # Allow the use of class Managers to change occupation
- # Default = False
- AllowClassMasters = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement