Jump to content

L2WalkerProtection Fix! (Anti-Bot)


Recommended Posts

Well i say on l2jfree forum a code... not exactly like that but about the walker protection... and i make some change for option like enable/disable and other correction.

 

I see on l2j for this fix and don't exist ...!

 

So here we go, This is latest l2j core;

 

Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties
===================================================================
--- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties	(revision 2796)
+++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties	(working copy)
@@ -161,4 +161,9 @@
#----------------------------------
EnableWarehouseSortingClan = False
EnableWarehouseSortingPrivate = False
-EnableWarehouseSortingFreight = False
\ No newline at end of file
+EnableWarehouseSortingFreight = False
+
+#---------------------------------
+# Walker Protection (By Cobra)
+#---------------------------------
+L2WalkerProtection = False
\ No newline at end of file
Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java
===================================================================
--- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java	(revision 2796)
+++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java	(working copy)
@@ -80,6 +80,7 @@   /******************************************************************************************************************************************************/
     /** L2J Property File Definitions End Here**/
	/******************************************************************************************************************************************************/
@@ -560,6 +561,8 @@
     public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;
     public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE;
     public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
+    // L2WalkerProtection
+    public static boolean      KICK_L2WALKER;
     
     /** ************************************************** **/
	/** L2JMods Settings -End                              **/
@@ -1767,6 +1770,8 @@
	                L2JMOD_ENABLE_WAREHOUSESORTING_CLAN     = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
	                L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE  = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
	                L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT  = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
+	                // L2Walker Protection
+	                KICK_L2WALKER                           = Boolean.parseBoolean(L2JModSettings.getProperty("L2WalkerProtection", "False"));

	                if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
	                {
Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java
===================================================================
--- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java	(revision 2796)
+++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java	(working copy)
@@ -23,6 +23,9 @@
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.network.serverpackets.PartyMemberPosition;
+import net.sf.l2j.gameserver.network.SystemMessageId;
+import net.sf.l2j.gameserver.util.IllegalPlayerAction;
+import net.sf.l2j.gameserver.util.Util;

/**
  * This class ...
@@ -71,6 +74,12 @@
		catch (BufferUnderflowException e)
		{
			// ignore for now
+			 if(Config.KICK_L2WALKER)
+				 {
+				 L2PcInstance activeChar = getClient().getActiveChar();
+				 activeChar.sendPacket(SystemMessageId.HACKING_TOOL);
+				 Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " trying to use l2walker!", IllegalPlayerAction.PUNISH_KICK);
+				 }
		}
	}

Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 2796)
+++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -11971,4 +11971,13 @@
     		}
     	}
     }
+
+	/**
+	 * @param hacking_tool
+	 */
+	public void sendPacket(SystemMessageId hacking_tool)
+	{
+		sendMessage("Please try again after closing unnecessary programs!.");
+		
+	}
}

 

I'll put the diff file wen i have time.

 

Test it and feed back for any bug.

 

Regards Cobra.

 

                            --------------------------------------------------------

 

 

For Interlude Users Do what KidZor Say's .

 

u mean:

activeChar.sendPacket(new SystemMessage(SystemMessageId.HACKING_TOOL));

and ofc if u have interlude..:

add that shit...after the closest nr to it..

/**
 * ID: 769<br>
 * Message: A hacking tool has been discovered. Please try again after closing unnecessary programs.
 */
HACKING_TOOL(769),

 

and delete that bro..

+	/**
+	 * @param hacking_tool
+	 */
+	public void sendPacket(SystemMessageId hacking_tool)
+	{
+		// TODO Auto-generated method stub
+		
+	}
}

 

 

                            --------------------------------------------------------

 

 

Version 1.1 Untested! At Gracia! Removed sisnce no one don't want to test it!

 

Link to comment
Share on other sites

u mean:

activeChar.sendPacket(new SystemMessage(SystemMessageId.HACKING_TOOL));

and ofc if u have interlude..:

add that shit...after the closest nr to it..

/**
 * ID: 769<br>
 * Message: A hacking tool has been discovered. Please try again after closing unnecessary programs.
 */
HACKING_TOOL(769),

 

and delete that bro..

+	/**
+	 * @param hacking_tool
+	 */
+	public void sendPacket(SystemMessageId hacking_tool)
+	{
+		// TODO Auto-generated method stub
+		
+	}
}

 

Link to comment
Share on other sites

I had no problems inserting the code. Although I haven't managed to test it I think it works fine , I will test later cause now I have to go, anyway GJ Cobra!

Link to comment
Share on other sites

This is not for IL xD is for gracia anyway thanks for Feed Back ;]

 

Hide your replay xD

edited...well i left that interlude thingy 2..maybe some one will find it useful :P

Link to comment
Share on other sites

well i am going to test in my server and tomorrow i will give u feedback cobra

1 question

 

what does exactly?kick the bots?

and ingame bots or out of game

pretty cool share

 

 

Yes kick the player .... in game if he use walker!

 

edit: As you can see in game .... !

Link to comment
Share on other sites

som1 sticky this topic

also posts 300 or more will be good if it works :P

 

 

Cobra do u have problems on the checkout?i currently can't give you feedback because it stucks on checkout and says connection with server closed.Any1 have this problem?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • a beautiful response from a liar who is not even a man to admit it, at least it is recorded here that you are nothing more than a thief, this is your character as a person, which I hope one day you will have the courage and apologize to whoever you stole from, which I don't even need to talk about anymore, you know very well who you stole each job from, here I end the attacks, because someone deserved to come here and unmask you to the l2 community.
    • Yes Sir. Of course Sir, you know everything, Sir. If you said so, Sir. What about asking your "friends" where they get it they patch from? Kappa
    • Let's make one thing clear here, you don't have a patch/rev, what you have is a complete theft of codes, and if you are a real man, admit it, because my BR friends know very well that you are known for being the so-called interface copy/paste, because you don't create anything, you take advantage of years of work from people and steal it and sell it and you have the courage to talk about my patch, be ashamed of yourself.
    • i dont know why im the topic here if this is not even my patch, it seems you love me, even know my whole story... xd but good old times when we would EXCHANGE stuff betwen our selfs to make interfaces to our usage and likening... never talked to much with OMGz, but seems like a good guy   good old times when was all just having fun and editing stuff and playing, today is all about clout and money, i have that u dont hahahah   they will never come back..   i already left anything beside long time ago idk why think on me too much, just want to enjoy my free time to play some games and have fun.. but looks like somehow find a way to relate me to something, maybe you think on me to much idk, kinda weird.. unfortunately, you are looking at this code thinking that  "oh it has his name and abreviation, its from him" but i must say its not... i dont need to stay here saying that this and that happened, because i know very well that you know exactly what happened... peace for all PS: and.. my main language is pt br, not spanish like in the src...
    • Hi, i copy patch from L2acdc but have problem with 2 things... HP indicator, target animation... some1 know fix it ? i think need edit .dll files for it. Or its working it here in this patch ? thx    
  • Topics

×
×
  • Create New...