Exemple #1
0
 /// <summary>
 /// Dumps all currently applied auras to the given chr
 /// </summary>
 /// <param name="receiver"></param>
 /// <param name="includePassive">Whether to also include invisible effects (eg through items etc)</param>
 public void DumpTo(IChatTarget receiver, bool includePassive)
 {
     if (m_auras.Count > 0)
     {
         receiver.SendMessage("{0}'s Auras:", m_owner.Name);
         foreach (var aura in m_auras.Values)
         {
             if (includePassive || !aura.Spell.IsPassive)
             {
                 receiver.SendMessage("	{0}{1}", aura.Spell, aura.HasTimeout ? " [" + TimeSpan.FromMilliseconds(aura.TimeLeft).Format() + "]" : "");
             }
         }
     }
     else
     {
         receiver.SendMessage("{0} has no active Auras.", m_owner.Name);
     }
 }
Exemple #2
0
 /// <summary>Dumps all currently applied auras to the given chr</summary>
 /// <param name="receiver"></param>
 /// <param name="includePassive">Whether to also include invisible effects (eg through items etc)</param>
 public void DumpTo(IChatTarget receiver, bool includePassive)
 {
     if (this.m_auras.Count > 0)
     {
         receiver.SendMessage("{0}'s Auras:", (object)this.m_owner.Name);
         foreach (Aura aura in this.m_auras.Values)
         {
             if (includePassive || !aura.Spell.IsPassive)
             {
                 receiver.SendMessage("\t{0}{1}", (object)aura.Spell,
                                      aura.HasTimeout
                         ? (object)(" [" + TimeSpan.FromMilliseconds((double)aura.TimeLeft).Format() + "]")
                         : (object)"");
             }
         }
     }
     else
     {
         receiver.SendMessage("{0} has no active Auras.", (object)this.m_owner.Name);
     }
 }
Exemple #3
0
        /// <summary>
        /// Sends the list of Raids completed and In progress and when they will reset.
        /// </summary>
        public void SendRaidTimes(IChatTarget listener)
        {
            var bindings = m_bindings[(int)BindingType.Hard];

            if (bindings != null)
            {
                foreach (var binding in bindings)
                {
                    listener.SendMessage("Raid {0} #{1}, Until: {1}", binding.MapId, binding.InstanceId, binding.NextResetTime);
                }
            }
        }
Exemple #4
0
        /// <summary>
        /// Sends the list of Raids completed and In progress and when they will reset.
        /// </summary>
        public void SendRaidTimes(IChatTarget listener)
        {
            List <InstanceBinding> binding = m_bindings[1];

            if (binding == null)
            {
                return;
            }
            foreach (InstanceBinding instanceBinding in binding)
            {
                listener.SendMessage("Raid {0} #{1}, Until: {1}", (object)instanceBinding.MapId,
                                     (object)instanceBinding.InstanceId, (object)instanceBinding.NextResetTime);
            }
        }
Exemple #5
0
		/// <summary>
		/// Sends the list of Raids completed and In progress and when they will reset.
		/// </summary>
		public void SendRaidTimes(IChatTarget listener)
		{
			var bindings = m_bindings[(int)BindingType.Hard];
			if (bindings != null)
			{
				foreach (var binding in bindings)
				{
					listener.SendMessage("Raid {0} #{1}, Until: {1}", binding.MapId, binding.InstanceId, binding.NextResetTime);
				}
			}
		}
Exemple #6
0
		/// <summary>
		/// Dumps all currently applied auras to the given chr
		/// </summary>
		/// <param name="receiver"></param>
		/// <param name="includePassive">Whether to also include invisible effects (eg through items etc)</param>
		public void DumpTo(IChatTarget receiver, bool includePassive)
		{
			if (m_auras.Count > 0)
			{
				receiver.SendMessage("{0}'s Auras:", m_owner.Name);
				foreach (var aura in m_auras.Values)
				{
					if (includePassive || !aura.Spell.IsPassive)
					{
						receiver.SendMessage("	{0}{1}", aura.Spell, aura.HasTimeout ? " [" + TimeSpan.FromMilliseconds(aura.TimeLeft).Format() + "]" : "");
					}
				}
			}
			else
			{
				receiver.SendMessage("{0} has no active Auras.", m_owner.Name);
			}
		}