daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void SendOpenTrade(cPlayer player, cPlayer player2)
  2.         {
  3.             byte opcode = 0xAD;// D:
  4.             PacketWriter packet = new PacketWriter();
  5.             packet.WriteByte(opcode);
  6.             packet.WriteByte(0x05);
  7.             packet.WriteByte(0x03);
  8.             packet.WriteByte(0x02);
  9.             packet.WriteShort(1);
  10.             if (player2 != null)
  11.             {
  12.                 AddPlayerDisplay(packet, player2);
  13.                 packet.WriteMapleString(player.Name);
  14.                 packet.WriteBytes(new byte[13 - player.Name.Length]);
  15.                 packet.WriteByte(1); // Location in the window
  16.             }
  17.             AddPlayerDisplay(packet, player);
  18.             packet.WriteMapleString(player.Name);
  19.             packet.WriteBytes(new byte[13 - player.Name.Length]);
  20.             packet.WriteSByte(-1); // Location in the window
  21.             //Logger.WritePacket(packet.ToArray(), packet.Length);
  22.             //System.Windows.Forms.Clipboard.SetText(packet.ToArray().ToString());
  23.             player.SendPacket(packet);
  24.         }
RAW Paste Data
Top