Ta®oS™ Posted May 6, 2012 Posted May 6, 2012 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]
penglezos Posted May 6, 2012 Posted May 6, 2012 Already shared: http://www.maxcheaters.com/forum/index.php?topic=70306.0
Zake Posted May 6, 2012 Posted May 6, 2012 Already shared: http://www.maxcheaters.com/forum/index.php?topic=70306.0 it's not the same code, but it's simple.
penglezos Posted May 6, 2012 Posted May 6, 2012 it's not the same code, but it's simple. + SystemChatChannelId part is missing + Wrong creadits
Zake Posted May 6, 2012 Posted May 6, 2012 you cant send me in PM the code ? or post here Which code?
Ta®oS™ Posted May 6, 2012 Author Posted May 6, 2012 Which code? from here http://www.maxcheaters.com/forum/index.php?topic=70306.0 i dont have the post i need look the code
Zake Posted May 6, 2012 Posted May 6, 2012 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; + } +
penglezos Posted May 6, 2012 Posted May 6, 2012 is not the same codes the difference is between one _log check and systemchannelid that you forgot to post.Practically is the same thing
Recommended Posts