
Originally Posted by
Moogra
I remember adding sthis a month ago. After I tried it. I couldn't make more characters (lol) so I removed it. I'm guessing it works though. I'm pretty sure there's a thing in MaplePacketCreator that also needs to be edited. It's tells the max character limit.
Of course, I forgot...
Code:
public static MaplePacket getCharList(MapleClient c, int serverId) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.CHARLIST.getValue());
mplew.write(0);
List<MapleCharacter> chars = c.loadCharacters(serverId);
mplew.write((byte) chars.size());
for (MapleCharacter chr : chars) {
addCharEntry(mplew, chr);
}
mplew.writeInt(c.getCSlots());
return mplew.getPacket();
}