Skip to content

[Share] Anti Critical Error PHX

Featured Replies

Hello again share one java code for your server

 

go to

/java/net/sf/l2j/gameserver/clientpackets/say2.java

and find this

                L2PcInstance activeChar = getClient().getActiveChar();

and down of this put this lines

 

+
+		if(_type2Check == SystemChatChannelId.CHAT_NONE || _type2Check == +SystemChatChannelId.CHAT_ANNOUNCE || _type2Check == +SystemChatChannelId.CHAT_CRITICAL_ANNOUNCE || _type2Check == +SystemChatChannelId.CHAT_SYSTEM || _type2Check == SystemChatChannelId.CHAT_CUSTOM || +(_type2Check == SystemChatChannelId.CHAT_GM_PET && !activeChar.isGM()))
+		{
+			_log.warning("[Anti-PHX Announce] Illegal Chat channel was used by character: [" + activeChar.getName() + "]");
+			return;
+		}
+		
+		
+		                 if (_text.length() >= 100)
+		                       {
+			                       _log.warning("Say2: Max input exceeded.");
+			                       return;
+		                        }		

 

Special Thanks to VHailor [L2jSigmo Onwer]

it's not the same code, but it's simple.

 

+ SystemChatChannelId part is missing

+ Wrong creadits

  • Author

you cant send me in PM the code ? or post here

from here http://www.maxcheaters.com/forum/index.php?topic=70306.0 i dont have the post

i need look the code

Index: C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/say2.java
===================================================================
--- C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/say2.java (Revision 1434)
+++ C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/say2.java 	(working copy)

                L2PcInstance activeChar = getClient().getActiveChar();
	                if (activeChar == null)
	                {
	                        _log.warning("[say2.java] Active Character is null.");
	                        return;
	                }
+
+
+                 if (_text.length() >= 100)
+                       {
+	                       _log.warning("Say2: Max input exceeded.");
+	                       return;
+                        }
+

is not the same codes

the difference is between one _log check and systemchannelid that you forgot to post.Practically is the same thing

Already shared by Devon. Locked.

Guest
This topic is now closed to further replies.

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.