public void EndSacrifice(Mobile from, ChampionSkull skull) { if (this.Deleted) { return; } if (this.m_Skull != null && this.m_Skull.Deleted) { this.Skull = null; } if (from.Map != this.Map || !from.InRange(this.GetWorldLocation(), 3)) { from.SendLocalizedMessage(500446); // That is too far away. } else if (!Harrower.CanSpawn) { from.SendMessage("The harrower has already been spawned."); } else if (skull == null) { this.SendLocalizedMessageTo(from, 1049488, ""); // That is not my champions awakening skull! } else if (this.m_Skull != null) { this.SendLocalizedMessageTo(from, 1049487, ""); // I already have my champions awakening skull! } else if (!skull.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1049486); // You can only sacrifice items that are in your backpack! } else { if (skull.Type == this.Type) { skull.Movable = false; skull.MoveToWorld(this.GetWorldTop(), this.Map); this.Skull = skull; } else { this.SendLocalizedMessageTo(from, 1049488, ""); // That is not my champions awakening skull! } } }
public void EndSacrifice(Mobile from, ChampionSkull skull) { if (Deleted) { return; } if (m_Skull != null && m_Skull.Deleted) { Skull = null; } if (from.Map != this.Map || !from.InRange(GetWorldLocation(), 3)) { from.SendAsciiMessage("That is too far away."); } else if (!Harrower.CanSpawn) { from.SendMessage("The harrower has already been spawned."); } else if (skull == null) { SendAsciiMessageTo(from, "That is not my champions awakening skull!"); } else if (m_Skull != null) { SendAsciiMessageTo(from, "I already have my champions awakening skull!"); } else if (!skull.IsChildOf(from.Backpack)) { from.SendAsciiMessage("You can only sacrifice items that are in your backpack!"); } else { if (skull.Type == this.Type) { skull.Movable = false; skull.MoveToWorld(GetWorldTop(), this.Map); this.Skull = skull; } else { SendAsciiMessageTo(from, "That is not my champions awakening skull!"); } } }
public void EndSacrifice(Mobile from, ChampionSkull skull) { if (Deleted) { return; } if (m_Skull != null && m_Skull.Deleted) { Skull = null; } if (from.Map != Map || !from.InRange(GetWorldLocation(), 3) || !from.InLOS(this)) { from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that. } else if (!Harrower.CanSpawn) { from.SendMessage("The harrower has already been spawned."); } else if (skull == null) { SendLocalizedMessageTo(from, 1049488, ""); // That is not my champions awakening skull! } else if (m_Skull != null) { SendLocalizedMessageTo(from, 1049487, ""); // I already have my champions awakening skull! } else if (!skull.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1049486); // You can only sacrifice items that are in your backpack! } else { if (skull.Type == Type) { skull.Movable = false; skull.MoveToWorld(GetWorldTop(), Map); Skull = skull; } else { SendLocalizedMessageTo(from, 1049488, ""); // That is not my champions awakening skull! } } }