Advertisement
Sarada-L2

Mostrar Nome red dos Mobs Agressivos Acis

Nov 17th, 2020
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. Index: java/net/sf/l2j/gameserver/model/actor/L2Character.java
  2.  
  3. /**
  4. * @return true if the character is located in an arena (aka a PvP zone which isn't a siege).
  5. */
  6. public boolean isInArena()
  7. {
  8. return false;
  9. }
  10.  
  11. + /**
  12. + * Return True if the NpcInstance is agressive (ex : MonsterInstance in function of aggroRange).
  13. + * @return true, if is aggressive
  14. + */
  15. + public boolean isAggressive()
  16. + {
  17. + return false;
  18. + }
  19.  
  20.  
  21.  
  22. Index: java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java
  23.  
  24.  
  25. writeS(_name);
  26. writeS(_title);
  27. + if (Config.SHOW_RED_NAME_IF_AGGRO)
  28. + {
  29. + writeD(0);
  30. + writeD(0);
  31. + writeD(_npc.isAggressive() ? 0x9999 : 0x00);
  32. + }
  33. - writeD(0x00);
  34. - writeD(0x00);
  35. - writeD(0x00);
  36.  
  37. writeD(_npc.getAbnormalEffect());
  38.  
  39.  
  40. Index: java/net/sf/l2j/Config.java
  41.  
  42. public static int MAX_MONSTER_ANIMATION;
  43. +public static boolean SHOW_RED_NAME_IF_AGGRO;
  44.  
  45.  
  46. ALLOW_CLASS_MASTERS = npcs.getProperty("AllowClassMasters", false);
  47. +SHOW_RED_NAME_IF_AGGRO = Boolean.parseBoolean(npcs.getProperty("ShowRedName", "true"));
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. Index: gameserver\config\npcs.properties
  55.  
  56.  
  57. +# Show Red name of NPC / Monster if is agrro
  58. +# Default: False
  59. +ShowRedName = True
  60.  
  61. # Allow the use of class Managers to change occupation
  62. # Default = False
  63. AllowClassMasters = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement