public static void Resurrect(PlayerMobile m, AnkhOfSacrificeAddon ankh) { if (m == null) { } else if (!m.InRange(ankh.GetWorldLocation(), 2)) { m.SendLocalizedMessage(500446); // That is too far away. } else if (m.Alive) { m.SendLocalizedMessage(1060197); // You are not dead, and thus cannot be resurrected! } else if (m.AnkhNextUse > DateTime.UtcNow) { TimeSpan delay = m.AnkhNextUse - DateTime.UtcNow; if (delay.TotalMinutes > 0) { m.SendLocalizedMessage(1079265, Math.Round(delay.TotalMinutes).ToString()); // You must wait ~1_minutes~ minutes before you can use this item. } else { m.SendLocalizedMessage(1079263, Math.Round(delay.TotalSeconds).ToString()); // You must wait ~1_seconds~ seconds before you can use this item. } } else { m.CloseGump(typeof(AnkhResurrectGump)); m.SendGump(new AnkhResurrectGump(m, ResurrectMessage.VirtueShrine)); } }
public ResurrectEntry(Mobile mobile, AnkhOfSacrificeAddon ankh) : base(6195, 2) { m_Mobile = mobile; m_Ankh = ankh; }
public LockKarmaEntry(PlayerMobile mobile, AnkhOfSacrificeAddon ankh) : base(mobile.KarmaLocked ? 6197 : 6196, 2) { m_Mobile = mobile; m_Ankh = ankh; }