public static byte[] PrivateMessageRespond(byte type)
{
//Create new packet writer
PacketWriter Writer = new PacketWriter();
//Add the opcode to the packet
Writer.Create(Systems.SERVER_PM_SEND);
//Switch on type sended by our function
switch (type)
{
case 1:
//Failed
Writer.Byte(0x02);
Writer.Byte(0x0D);
Writer.Byte(0x64);
break;
case 2:
//Success
Writer.Byte(0x01);
break;
case 3:
//Inbox full
Writer.Byte(2);
Writer.Word(0x6414);
break;
}
//Return all bytes to the void
return Writer.GetBytes();
}