Author Topic: Interlude Close CommunityBoard  (Read 57 times)

Online onefinal

  • Vassal
  • *
  • Posts: 8
Close CommunityBoard
« on: January 13, 2022, 10:27:21 PM »
To close community board on client you do not need to change the package much

Code: [Select]
player.sendPacket(new HideBoard());

Code: [Select]
package org.l2jmobius.gameserver.network.serverpackets;

import java.util.List;

import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.commons.util.StringUtil;
import org.l2jmobius.gameserver.network.OutgoingPackets;

public class HideBoard implements IClientOutgoingPacket
{


@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.SHOW_BOARD.writeId(packet);
packet.writeC(0x00); // 1 to show, 0 to hide
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
packet.writeS("");
return true;
}
}