跳转到帖子
Facebook Instagram Twitter Youtube

Npc With Aura NPC自带光环脚本


l2fater

已推荐帖子

原作者: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));
+		}
 		}

 

意见的链接
分享到其他站点

参与讨论

你可以现在发布并稍后注册。 如果你有帐户,现在就登录发布帖子。

游客
回帖…

×   粘贴为富文本.   粘贴为纯文本来代替

  只允许使用75个表情符号.

×   你的链接已自动嵌入.   显示为链接来代替

×   你之前的帖子已恢复.   清除编辑器

×   你无法直接粘贴图像。要从网址上传或插入图像。

天堂2中文开源社区L2FATER.CN

专注于玩家游戏体验的交流社区.

血玫瑰社区bbs.l2fater.cn

关于血玫瑰社区

Important Links

×
×
  • 创建新的...