505152535455565758
packet.addBits(offsets[0], 5); packet.addBits(offsets[1], 5); packet.addBits(p.getSprite(), 4); packet.addBits(0, 1); } RSCPacket pkt = packet.toPacket(); return pkt; }
343344345346347348349350351
* Confirm logout allowed */ public RSCPacket sendLogout() { RSCPacketBuilder s = new RSCPacketBuilder(); s.setID(222); RSCPacket packet = s.toPacket(); packets.add(packet); return packet; }
114115116117118119120121122123
*/ public static RSCPacket decryptRSA(byte[] pData) { try { BigInteger bigInteger = new BigInteger(pData); pData = bigInteger.modPow(key, modulus).toByteArray(); return new RSCPacket(null, 0, pData, true); } catch (Exception e) { return null; } }