Guest User

Untitled

a guest
Jan 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public static void Find(Character victim, string who, int map, sbyte dunno, bool isChannel) {
  2. PacketWriter pw = new PacketWriter();
  3. pw.WriteByte(0x2E);
  4. if (map != -1) {
  5. pw.WriteByte(0x09);
  6. pw.WriteMapleString(who);
  7. if (map == -2) {
  8. // In cashshop
  9. pw.WriteByte(0x02);
  10. }
  11. else if (isChannel) {
  12. pw.WriteByte(0x01);
  13. pw.WriteInt(map);
  14. pw.WriteInt(0);
  15. }
  16. else {
  17. pw.WriteByte(0x03);
  18. pw.WriteInt(map);
  19. }
  20. pw.WriteInt(0);
  21. }
  22. else {
  23. pw.WriteByte(0x0A);
  24. pw.WriteMapleString(who);
  25. pw.WriteSByte(dunno);
  26. }
  27. victim.sendPacket(pw);
Add Comment
Please, Sign In to add comment