
Originally Posted by
chunkarama
Oh, well you hadn't pasted it so I was unsure what you were writing. Yeah you have a ternary boolean for ranks so it won't write if false. Mind posting your structure for addCharEntry?
Allright sorry, can indeed imagine it would be hard to determine since i didn't post all of it. :D (Reason i did is was because i was 100% sure it wasn't being sent)
Here ya go!
Code:
private static void addCharEntry(MaplePacketLittleEndianWriter mplew, MapleCharacter chr, boolean ranking, boolean viewAll) {
PacketHelper.addCharStats(mplew, chr);
PacketHelper.addCharLook(mplew, chr, true, false);
if (GameConstants.isZero(chr.getJob())) {
PacketHelper.addCharLook(mplew, chr, true, true);
}
if (!viewAll) {
mplew.write(0);
}
mplew.write(ranking ? 1 : 0);
if (ranking) {
mplew.writeInt(chr.getRank());
mplew.writeInt(chr.getRankMove());
mplew.writeInt(chr.getJobRank());
mplew.writeInt(chr.getJobRankMove());
}
}