This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
mikemaster
So i found a code which was supposed to enable a custom chat only for players that had reached a certain ammount of pvps
+++ java/net/sf/l2j/gameserver/network/clientpackets/Say2.java +import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; if(Config.ENABLE_PVP_CHAT) + { + if(_text.startsWith("-")) + { + if(activeChar.getPvpKills() >= Config.PVP_CHAT_COUNT) + { + for(L2PcInstance p:L2World.getInstance().getAllPlayers().values()) + { + p.sendPacket(new CreatureSay(0,16,activeChar.getName(),_text)); + return; + } + } + else + activeChar.sendMessage("You don't have enough pvps in order to talk to this chat"); + } + }I think there are still lots to be done cause it pops the message when someone doesn't have enough pvps but when he does nothing happens so..
Edited by mikemaster10 answers to this question
Recommended Posts