Skip to content

Featured Replies

hello guys, i have a little problem with eclipse, i want to disable this options one ip to can kill him self characters, i found the code.

 

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

 

first i need find  // Check if it's pvp and put this code

+        String player1 = getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        String player1target = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        if (player1.equals(player1target))

+            return;

      if (

after him right?

  • Author

here is the picture what X i gets

 

31446308.jpg

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.