Divine-X 0 #1 Posted July 24, 2012 I know most of the 562 developers have moved onto RE/Matrix and like 600+ servers. But this is for the people who actually use 562 Rs2hd still. [code] public void sendClanChat(Player p2, String from, String clanName, String message) { int id = messageCounter; if(id > 16000000) { id = 1; } byte[] bytes = new byte[256]; bytes[0] = (byte) message.length(); int len = Misc.encryptPlayerChat(bytes, 0, 1, message.length(), message.getBytes())+1; StaticPacketBuilder spb = new StaticPacketBuilder().setId(137).setSize(Size.VariableByte); spb.addByte((byte) 1); spb.addString(Misc.upper(from).replaceAll("_", " ")); spb.addString(Misc.upper(from).replaceAll("_", " ")); spb.addLong(Misc.stringToLong(clanName)); spb.addShort(p2.getIndex()); spb.addByte((byte) ((id << 16) & 0xFF)); spb.addByte((byte) ((id << 8) & 0xFF)); spb.addByte((byte) ((id) & 0xFF));; spb.addByte((byte) p2.getRights()); spb.addBytes(bytes, 0, len); messageCounter++; player.getSession().write(spb.toPacket()); }[/code] Replace your sendClanChat code with the one above. Share this post Link to post Share on other sites
Hash 0 #2 Posted July 24, 2012 Still the one who is working on rs2hd ;) Thanks, will take a look at it. Share this post Link to post Share on other sites
Exotiic 0 #3 Posted July 24, 2012 Helps little newbs like me thanks Share this post Link to post Share on other sites
Divine-X 0 #4 Posted July 25, 2012 [quote name='Exotiic']Helps little newbs like me thanks[/QUOTE] You're welcome! Share this post Link to post Share on other sites