l2fater 发布于2021年12月15日 08:32 分享 发布于2021年12月15日 08:32 原作者:Gam3Master 来源:MXC 下载代码:https://pastebin.com/YS5KwNN3 ### 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)); + } } 引用 意见的链接 分享到其他站点 更多分享选项...
已推荐帖子
参与讨论
你可以现在发布并稍后注册。 如果你有帐户,现在就登录发布帖子。