private String generateUserPack(int num)
    {
        Packet packet = new Packet();
        packet.addInt(this.bot[num].getLevel(), 2, false);
        int[] equip = this.bot[num].getEquipAll();
        for (int i = 0; i < 19; i++)
        {
            packet.addInt(equip[i], 4, false);
        }
        packet.addByte2((byte) 0x02, (byte) 0x00);
        packet.addByte2((byte) (this.roomnum[1]), (byte) this.roomid[num]);

        for (int i = 0; i < 4; i++)
        {
            packet.addByte(this.roomips[num][i]);
        }

        for (int i = 0; i < 2; i++)
        {
            packet.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);
        }
        packet.addByte2((byte) 0x00, (byte) 0x00);

        if (num == 0)
        //packet.addByte2((byte)27, (byte)(this.roomid[num]+161));
        {
            packet.addInt(this.roomport[num], 2, true);
        }
        else
        {
            packet.addByte2((byte) 0x00, (byte) 0x00);
        }

        for (int i = 0; i < 4; i++)
        {
            packet.addByte(this.roomips[num][i]);
        }

        for (int i = 0; i < 5; i++)
        {
            packet.addByte2((byte) 0x00, (byte) 0x00);
        }

        packet.addByte((byte) this.roomposi[num]);


        for (int i = 0; i < 5; i++)
        {
            packet.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);
        }

        packet.addInt(bot[num].getAttMin()+bot[num].getAttMinB(), 2, false);
        packet.addInt(bot[num].getAttMax()+bot[num].getAttMaxB(), 2, false);
        packet.addInt(bot[num].getAttMinTrans()+bot[num].getAttMinTransB(), 2, false);
        packet.addInt(bot[num].getAttMaxTrans()+bot[num].getAttMaxTransB(), 2, false);
        packet.addInt(bot[num].getHp()+bot[num].getHpB(), 2, false);
        packet.addInt(0, 2, false);
        packet.addInt(bot[num].getTransGauge()+bot[num].getTransGaugeB(), 2, false);
        packet.addInt(bot[num].getCrit()+bot[num].getCritB(), 2, false);
        packet.addInt(bot[num].getEvade()+bot[num].getEvadeB(), 2, false);
        packet.addInt(bot[num].getSpecialTrans()+bot[num].getSpecialTransB(), 2, false);
        packet.addInt(bot[num].getSpeed()+bot[num].getSpeedB(), 2, false);
        packet.addInt(bot[num].getTransDef()+bot[num].getTransDefB(), 2, false);
        packet.addInt(bot[num].getTransBotAtt()+bot[num].getTransBotAttB(), 2, false);
        packet.addInt(bot[num].getTransSpeed()+bot[num].getTransSpeedB(), 2, false);
        packet.addInt(bot[num].getRangeAtt()+bot[num].getRangeAttB(), 2, false);
        packet.addInt(bot[num].getLuk()+bot[num].getLukB(), 2, false);
        packet.addInt(bot[num].getBot(), 2, false);

        packet.addByte((byte) num);
        packet.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);

        String name = this.roomplayer[num];

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

        while (name.length() != 15)
        {
            name += nullbyte;
        }

        packet.addString(name);

        for (int i = 0; i < 21; i++)
        {
            packet.addByte((byte) 0x00);
        }

        return packet.getPacket();

    }