Level 80 needed to talk on Global/Trade Chat
Posted: Sun Nov 21, 2010 4:23 pm
someone know how to set it like in topic guys?
Thanks
Thanks
L2J Server Discussion Board
https://www.l2jserver.com/forum/
Code: Select all
### by Zoey76#P L2_GameServerIndex: java/com/l2jserver/gameserver/network/clientpackets/Say2.java===================================================================--- java/com/l2jserver/gameserver/network/clientpackets/Say2.java (revision 4422)+++ java/com/l2jserver/gameserver/network/clientpackets/Say2.java (working copy)@@ -196,6 +196,13 @@ if (Config.USE_SAY_FILTER) checkText(); + + if ((activeChar.getLevel() < 80) && (_type == TRADE || _type == SHOUT || _type == HERO_VOICE))+ {+ activeChar.sendMessage("Shout, trade and hero chatting cannot be used until level 80.");+ return;+ }+ IChatHandler handler = ChatHandler.getInstance().getChatHandler(_type); if (handler != null) handler.handleChat(_type, activeChar, _target, _text);
Code: Select all
### by Zoey76#P L2_GameServerIndex: java/com/l2jserver/gameserver/network/clientpackets/Say2.java===================================================================--- java/com/l2jserver/gameserver/network/clientpackets/Say2.java (revision 4422)+++ java/com/l2jserver/gameserver/network/clientpackets/Say2.java (working copy)@@ -196,6 +196,13 @@ if (Config.USE_SAY_FILTER) checkText(); + + if ((activeChar.getLevel() < 80) && (_type == TRADE || _type == SHOUT))+ {+ activeChar.sendMessage("Shout and trade chatting cannot be used until level 80.");+ return;+ }+ IChatHandler handler = ChatHandler.getInstance().getChatHandler(_type); if (handler != null) handler.handleChat(_type, activeChar, _target, _text);