Jump to content
  • 0

Interlude Pvp from same ip


Question

4 answers to this question

Recommended Posts

  • 0
Posted
Index: /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 13)
+++ /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 15)
@@ -4410,4 +4410,11 @@

         // Check if it's pvp
+			String player1 = getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+			String player1target = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+			if (player1.equals(player1target))
+				return;
		if (
				(

  • 0
Posted

Index: /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 13)
+++ /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 15)
@@ -4410,4 +4410,11 @@

         // Check if it's pvp
+			String player1 = getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+			String player1target = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+			if (player1.equals(player1target))
+				return;
		if (
				(

for what pack is that? i get only errors

Guest
This topic is now closed to further replies.


×
×
  • Create New...