private Packet getRoomPacket()
    {
        Packet packet = new Packet();
        packet.addHeader((byte) 0x28, (byte) 0x2F);
        packet.addPacketHead((byte) 0x01, (byte) 0x00);
        for (int i = 0; i < 8; i++)
        {
            if (this.roomsocks[i] != null)
            {
                packet.addString(this.generateUserPack(i));
            }
            else
            {
                for (int z = 0; z < 52; z++)
                {
                    packet.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);
                }
            }
        }
        packet.addByte2((byte) (this.roomnum[1] + 89), this.roomtyp);
        String cname = this.roomname;

        byte[] nullbyteb =
        {
            0x00
        };
        String nullbyte = new String(nullbyteb);

        while (cname.length() != 38)
        {
            cname += nullbyte;
        }

        packet.addString(cname);
        packet.addByte2((byte) this.roomtyp, (byte) 0x08);
        packet.addByte2((byte) 0x01, (byte) 0x00);
        packet.addByte2((byte) 0x00, (byte) 0x00);
        packet.addByte((byte) 0x00); //key
        packet.addByte2((byte) 0x00, (byte) 0x00);

        //16 --- locked
        return packet;
    }