private void TryGetCorpse(Mobile m) { if (CanGetCorpse(m)) { m.PlaySound(0xF5); if (_SummonAll) { List <Corpse> corpses = GetCorpses(m); if (corpses != null) { m.SendLocalizedMessage(1071527, corpses.Count.ToString()); // The staff reaches out to ~1_COUNT~ of your corpses and tries to draw them to you... _Timers[m] = new CorpseRetrieveTimer(m, corpses, this); } else { m.SendLocalizedMessage(1071511); // The staff glows slightly, then fades. Its magic is unable to locate a corpse of yours to recover. } } else { Corpse corpse = GetCorpse(m); if (corpse != null) { m.SendLocalizedMessage(1071528); // The staff reaches out to your corpse and tries to draw it to you... _Timers[m] = new CorpseRetrieveTimer(m, new List <Corpse> { corpse }, this); } else { m.SendLocalizedMessage(1071511); // The staff glows slightly, then fades. Its magic is unable to locate a corpse of yours to recover. } } } }
private void TryGetCorpse(Mobile m) { if (CanGetCorpse(m)) { m.PlaySound(0xF5); if (_SummonAll) { var corpses = GetCorpses(m); if (corpses != null) { m.SendMessage("The bell rings loudly and tries to draw your {0} corpses to you", corpses.Count.ToString()); _Timers[m] = new CorpseRetrieveTimer(m, corpses, this); } else { m.SendLocalizedMessage(503381); //You feel a gathering of magical energy around you, but it strangely dissipates with no effect. } } else { var corpse = GetCorpse(m); if (corpse != null) { m.SendMessage("The bell rings loudly and tries to draw your corpse to you"); _Timers[m] = new CorpseRetrieveTimer(m, new List <Corpse> { corpse }, this); } else { m.SendLocalizedMessage(503381); // //You feel a gathering of magical energy around you, but it strangely dissipates with no effect. } } } }