drakoo Posted October 11, 2010 Posted October 11, 2010 Hello everybody! I would like to place an order. A mod block java command \ n in chat l2 because it caused a huge headache ... Thank you! With you Conto Quote
0 piotress Posted October 11, 2010 Posted October 11, 2010 if u can be more explicit i can help you Quote
0 Versus Posted October 11, 2010 Posted October 11, 2010 Easy fix.. Just go to clientpackets/Say2.java and add this if (_text.contains("\n")) _text.replace("\n", ""); it will replace all \n with space (blank) Quote
0 drakoo Posted October 11, 2010 Author Posted October 11, 2010 excuse-me for my bad english view print Quote
0 piotress Posted October 11, 2010 Posted October 11, 2010 you are in wrong place...error about client here and i thyn is in systemmsg.dat Quote
0 pipiou21 Posted October 11, 2010 Posted October 11, 2010 On 10/11/2010 at 9:42 PM, piotress said: you are in wrong place...error about client here and i thyn is in systemmsg.dat He is in the right section, btw, do as Versus told u but replace this with a letter, i think it will works, they will just spam a letter, and they will get chatbanned from the system, i'm i right? This will maybe work... if (_text.contains("\n")) _text.replace("\n", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); The character will get chatbanned because it is something like he write too much letters to a message, or no? Quote
0 drakoo Posted October 11, 2010 Author Posted October 11, 2010 Versus the problem continues. View Code: // player chat banned? if (activeChar.isChatBanned()) { activeChar.checkBanChat(true); return; } + // Block \n + if (_text.contains("\n")) + _text.replace("\n", "N"); // player jailed? if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT) { if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE) { activeChar.sendMessage("You Have been Chat Banned"); return; } } Quote
0 Versus Posted October 12, 2010 Posted October 12, 2010 What happens if you type in game \n? After you compiled your project with the code i gave you. Btw to fix all your problems.. simply do that if (_text.contains("\n")) return; Now when the player writes \n and hits enter nothing will happen, he won't write anything at the chat :) Quote
Question
drakoo
Hello everybody!
I would like to place an order.
A mod block java command \ n in chat l2
because it caused a huge headache ...
Thank you!
With you Conto
7 answers to this question
Recommended Posts
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.