Jump to content

Recommended Posts

Posted

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]

Posted

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;
+                        }
+

Guest
This topic is now closed to further replies.


×
×
  • Create New...