Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Pedidos (https://secretexperience.net/l2j-pedidos/)
-   -   [Gracia Epilogue] (pedido) Anti-l2walker ! (https://secretexperience.net/l2j-pedidos/20356-pedido-anti-l2walker.html)

Thenecro 07-04-2010 05:54 AM

(pedido) Anti-l2walker !
 
Venho pedir ao pessoal da Se se tem algo que diminua ou bloquea o l2 walker?
sei que o l2Hpx não tem porem gostaria de saber isto ...
obrigado

Guma 07-04-2010 11:57 PM

tem uma protecao pra adcionar nojava

code:
Código:

Index: /TrunK/L2J_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/Config.java (revision 773)
+++ /TrunK/L2J_CORE/java/com/it/br/Config.java (revision 774)
@@ -976,4 +976,5 @@
    public static String    PM_TEXT2;
    public static String    ABORT_RR;
+  public static boolean  ALLOW_L2WALKER_PROTECTION;
    public static boolean  ENABLE_ONLINE_COMMAND;
    public static boolean  ENABLE_STATINFO_COMMAND;
@@ -1292,4 +1293,5 @@
              PM_TEXT2                = L2J.getProperty("PMText2", "Visit our web http://Your.Web.Adress");
              ABORT_RR                = L2J.getProperty("AbortRestart", "L2J");
+              ALLOW_L2WALKER_PROTECTION = Boolean.parseBoolean(L2J.getProperty("L2WalkerProtection", "False")); 
              ENABLE_ONLINE_COMMAND    = Boolean.parseBoolean(L2J.getProperty("EnableOnlinePlayersCommand", "False"));
              ENABLE_STATINFO_COMMAND  = Boolean.parseBoolean(L2J.getProperty("EnableStatusInfoCommand", "False"));
Index: /TrunK/L2J_CORE/java/com/it/br/gameserver/clientpackets/MoveBackwardToLocation.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/gameserver/clientpackets/MoveBackwardToLocation.java (revision 601)
+++ /TrunK/L2J_CORE/java/com/it/br/gameserver/clientpackets/MoveBackwardToLocation.java (revision 774)
@@ -26,7 +26,10 @@
 import com.it.br.gameserver.model.L2CharPosition;
 import com.it.br.gameserver.model.actor.instance.L2PcInstance;
+import com.it.br.gameserver.network.SystemMessageId;
 import com.it.br.gameserver.serverpackets.ActionFailed;
 import com.it.br.gameserver.serverpackets.PartyMemberPosition;
 import com.it.br.gameserver.templates.L2WeaponType;
+import com.it.br.gameserver.util.IllegalPlayerAction;
+import com.it.br.gameserver.util.Util;
 
 /**
@@ -77,4 +80,10 @@
                {
                        // ignore for now
+            if(Config.ALLOW_L2WALKER_PROTECTION) 
+              { 
+                  L2PcInstance activeChar = getClient().getActiveChar(); 
+                  activeChar.sendPacket(SystemMessageId.HACKING_TOOL); 
+                  Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " Tried to Use L2Walker And Got Kicked", IllegalPlayerAction.PUNISH_KICK); 
+              } 
                }
        }
Index: /TrunK/L2J_CORE/java/com/it/br/gameserver/network/SystemMessageId.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/gameserver/network/SystemMessageId.java (revision 602)
+++ /TrunK/L2J_CORE/java/com/it/br/gameserver/network/SystemMessageId.java (revision 774)
@@ -4762,4 +4762,9 @@
        S1_ADENA_HAS_BEEN_WITHDRAWN_TO_PAY_FOR_PURCHASING_FEES(1607),
 
+        /** 
+    * ID: 769<br> 
+    * Message: A hacking tool has been discovered. Please try again after closing unnecessary programs. 
+    */ 
+    HACKING_TOOL(769),
        /**
          * ID: 781<br>
Index: /TrunK/L2J_CORE/java/com/it/br/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/gameserver/model/actor/instance/L2PcInstance.java (revision 753)
+++ /TrunK/L2J_CORE/java/com/it/br/gameserver/model/actor/instance/L2PcInstance.java (revision 774)
@@ -10321,4 +10321,13 @@
        }
 
+        /**
+        * @param hacking_tool
+        */
+        public void sendPacket(SystemMessageId hacking_tool)
+        {
+                sendMessage("Please try again after closing unnecessary programs!.");
+               
+        }
+
        @Override
        public final void sendDamageMessage(L2Character target, int damage, boolean mcrit, boolean pcrit, boolean miss)
Index: /TrunK/L2J_CORE/config/L2J.properties
===================================================================
--- /TrunK/L2J_CORE/config/L2J.properties (revision 773)
+++ /TrunK/L2J_CORE/config/*********.properties (revision 774)
@@ -269,4 +269,12 @@
 DisableRaidBossPetrification = False
 
+
+#--------------------------------------------------------------- 
+# Walker Protection                                  - 
+#---------------------------------------------------------------
+
+# L2Walker ( Bot ) Protection Enabled?
+L2WalkerProtection = False
+
 #------------------------------------------------#
 #    Recomendation Shop System Added by Rayder  #


Thenecro 08-04-2010 11:16 AM

tera cimo me pespplicar como adicionar?

obrigadoo

FanaticsGames 22-12-2010 09:56 AM

isso ai eh pra rev da *********... teria q fazer algumas modificações pra pode pegar em outra rev..
e outra ele faz consulta no arquivo "*********.properties" teria q mudar isso tb eh criar essa configs no arquivo .properties...

L2WalkerProtection = False para True

caso contrario não adiantaria add o pack... :s


Horários baseados na GMT -3. Agora são 08:43 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.