Advertisement
raptorjesusss

Untitled

Aug 1st, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public static MaplePacket getWhisper(String sender, int channel, String text) {
  2. MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
  3.  
  4. mplew.writeShort(SendPacketOpcode.WHISPER.getValue());
  5. mplew.write(0x12);
  6. mplew.writeMapleAsciiString(sender);
  7. mplew.writeShort(channel - 1); // I guess this is the channel
  8. mplew.writeMapleAsciiString(text);
  9.  
  10. return mplew.getPacket();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement