Fixing login with cellky HD/LD on pali's NIO source
Hey,
Well I was looking through the section and found a thread about fixing the login on pali's NIO source for the HD/LD cellky clients. It hurt my eyes to see that a section was being replaced with gibberish, when all you have to do is comment out one line. Ok so lets start...
Find this chunk in PacketManager.java
Code:
if (clientVersion != 508) {
returnCode = 3;
}
p.stream.readSkip(3);
short width = (short) p.stream.readUnsignedShort();
short height = (short) p.stream.readUnsignedShort();
if (width < 0 || height < 0) {
returnCode = 3;
}
p.stream.readSkip(8);
String clientString = p.stream.readString();
if (clientString == null) {
returnCode = 3;
}
p.stream.readSkip(116);
p.stream.readSkip(1);
byte byteCheck = (byte) p.stream.readUnsignedByte();
if (byteCheck != 10 && byteCheck != 64) {
returnCode = 3;
}
Now comment out the line
Code:
p.stream.readSkip(1);
to make it look like this...
Code:
//p.stream.readSkip(1);
Save. Compile. and you done!
~Lumby