public static void BeginBleed(Mobile m, Mobile from, bool splintering = false) { BleedTimer timer = null; if (m_BleedTable.ContainsKey(m)) { if (splintering) { timer = m_BleedTable[m]; timer.Stop(); } else { return; } } BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Bleed, 1075829, 1075830, TimeSpan.FromSeconds(10), m, string.Format("{0}\t{1}\t{2}", "1", "10", "2"))); timer = new BleedTimer(from, m, CheckBloodDrink(from)); m_BleedTable[m] = timer; timer.Start(); from.SendLocalizedMessage(1060159); // Your target is bleeding! m.SendLocalizedMessage(1060160); // You are bleeding! if (m is PlayerMobile) { m.LocalOverheadMessage(MessageType.Regular, 0x21, 1060757); // You are bleeding profusely m.NonlocalOverheadMessage(MessageType.Regular, 0x21, 1060758, m.Name); // ~1_NAME~ is bleeding profusely } m.PlaySound(0x133); m.FixedParticles(0x377A, 244, 25, 9950, 31, 0, EffectLayer.Waist); }
public static void BeginBleed(Mobile m, Mobile from, bool splintering = false) { BleedTimer timer = null; if (m_BleedTable.ContainsKey(m)) { if (splintering) { timer = m_BleedTable[m]; timer.Stop(); } else { return; } } BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Bleed, 1075829, 1075830, TimeSpan.FromSeconds(10), m, String.Format("{0}\t{1}\t{2}", "1", "10", "2"))); timer = new BleedTimer(from, m, CheckBloodDrink(from)); m_BleedTable[m] = timer; timer.Start(); }