Exemple #1
0
        public static void setCharacterLevel(Character chr, byte level)
        {
            OutPacket p = new OutPacket(40);
            p.WriteInt(40);
            p.WriteShort(0x05);
            p.WriteShort(0x20);
            p.WriteByte(0x01);
            p.WriteByte(0x39);
            p.WriteByte(0x07);
            p.WriteByte(0x08);
            p.WriteInt(chr.getuID());
            p.WriteShort(level);
            p.WriteShort(chr.getStatPoints());
            p.WriteInt(chr.getSkillPoints());
            p.WriteInt(chr.getMaxHP());
            p.WriteShort((short)chr.getMaxMP());
            p.WriteShort(chr.getMaxSP());
            chr.getAccount().mClient.WriteRawPacket(p.ToArray());

            chr.setLevel(level);
        }