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

    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
  • Topics

×
×
  • Create New...