Exemple #1
0
        /// <summary>
        /// Sends result of actions connected with groups
        /// </summary>
        /// <param name="client">the client to send to</param>
        /// <param name="resultType">The result type</param>
        /// <param name="resultCode">The <see cref="GroupResult"/> result code</param>
        /// <param name="name">name of player event has happened to</param>
        public static void SendResult(IPacketReceiver client, GroupResult resultCode, GroupResultType resultType,
                                      string name)
        {
            using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PARTY_COMMAND_RESULT, 4 + name.Length + 4 + 4))
            {
                packet.Write((uint)resultType);
                packet.WriteCString(name);
                packet.Write((uint)resultCode);
                packet.Write((uint)0); // 3.3.3, lfg cooldown?

                client.Send(packet);
            }
        }
Exemple #2
0
        /// <summary>
        /// Sends result of actions connected with groups
        /// </summary>
        /// <param name="client">the client to send to</param>
        /// <param name="resultType">The result type</param>
        /// <param name="resultCode">The <see cref="GroupResult"/> result code</param>
        /// <param name="name">name of player event has happened to</param>
        public static void SendResult(IPacketReceiver client, GroupResult resultCode, GroupResultType resultType,
            string name)
        {
            using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PARTY_COMMAND_RESULT, 4 + name.Length + 4 + 4))
            {
                packet.Write((uint)resultType);
                packet.WriteCString(name);
                packet.Write((uint)resultCode);
                packet.Write((uint)0); // 3.3.3, lfg cooldown?

                client.Send(packet);
            }
        }
Exemple #3
0
 /// <summary>
 /// Sends result of actions connected with groups
 /// </summary>
 /// <param name="client">the client to send to</param>
 /// <param name="resultCode">The <see cref="GroupResult"/> result code</param>
 public static void SendResult(IPacketReceiver client, GroupResultType resultType, GroupResult resultCode)
 {
     SendResult(client, resultCode, resultType, String.Empty);
 }
Exemple #4
0
		/// <summary>
		/// Sends result of actions connected with groups
		/// </summary>
		/// <param name="client">the client to send to</param>
		/// <param name="resultCode">The <see cref="GroupResult"/> result code</param>
		public static void SendResult(IPacketReceiver client, GroupResultType resultType, GroupResult resultCode)
		{
			SendResult(client, resultCode, resultType, String.Empty);
		}