public static CommandInfo RecvCommand(Packet p)
        {
            p.Skip(2);
            byte type = p.ReadByte();
            byte action = p.ReadByte();
            byte something = p.ReadByte();
            byte something2 = p.ReadByte();

            CommandInfo c = new CommandInfo
            {
                Type = type,
                Action = action,
                Something = something,
                Something2 = something2
            };

            return c;
        }
 public static byte[] SendCommand(Character ch, CommandInfo ci)
 {
     Packet p = new Packet(200);
     p.WriteInt(ch.CharacterId);
     p.WriteByte(ci.Type);
     p.WriteByte(ci.Action);
     p.WriteByte(ci.Something);
     p.WriteByte(ci.Something2);
     return p.GetWrittenBuffer(PacketIds.SendCommand);
 }
 public ClientCommandInfoEventArgs(CommandInfo c)
 {
     this.com = c;
 }