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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..