U3Games

Games | Desarrollo & Soporte => L2 | Sección de Servidores => Lineage => L2 | Implementaciones => Mensaje iniciado por: Swarlog en Ago 03, 2025, 12:32 AM

Título: Npc With Aura
Publicado por: Swarlog en Ago 03, 2025, 12:32 AM
u3g_l2_imp_npc_with_aura.jpg

### Eclipse Workspace Patch 1.0
#P aCis
Index: config/Leki.properties
===================================================================
--- config/Leki.properties (revision 9)
+++ config/Leki.properties (working copy)
@@ -141,4 +141,7 @@
 # Default: 40,60,50.
 BackBlow = 70
 SideBlow = 60
-FrontBlow = 50
\ No newline at end of file
+FrontBlow = 50
+
+#List of npcs with red circle aura
+NpcWithAura = 50009,50010,50013
\ No newline at end of file
Index: java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java
===================================================================
--- java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java (revision 10)
+++ java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java (working copy)
@@ -177,8 +177,12 @@
  writeC(_npc.isFlying() ? 2 : 0);
  if(_npc.isChampion() && Config.CHAMPIONS_AURA)
  {
- writeC(0x01);
+ writeC(0x01); // auras for champions | blue circle
  }
+ else if(Config.LIST_NPC_WITH_AURA.contains(_npc.getNpcId()))
+ {
+ writeC(0x02);// auras for npcs | red circle
+ }
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java (revision 10)
  else
  writeC(0x00);
 
+++ java/net/sf/l2j/Config.java (working copy)
@@ -556,7 +556,8 @@
  public static int BACK_BLOW_SUCCESS;
  public static int SIDE_BLOW_SUCCESS;
  public static boolean CHAMPIONS_AURA;
-
+ public static String NPC_WITH_AURA;
+ public static List<Integer> LIST_NPC_WITH_AURA = new ArrayList<>();
  // --------------------------------------------------
  // Server
  // --------------------------------------------------
@@ -1573,6 +1574,12 @@
  FRONT_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("FrontBlow", "40"));
  BACK_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("BackBlow", "60"));
  SIDE_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("SideBlow", "50"));
+ NPC_WITH_AURA = Leki.getProperty("ListPetRentNpc", "30827");
+ LIST_NPC_WITH_AURA = new ArrayList<>();
+ for (String listid : NPC_WITH_AURA.split(","))
+ {
+ LIST_NPC_WITH_AURA.add(Integer.parseInt(listid));
+ }
  }