namespace Server.Items { public class OphidianMageStatuette : BaseStatuette { private static readonly int[] m_Sounds = new int[] { 0x280, 0x281, 0x282, 0x283, 0x284 }; [Constructable] public OphidianMageStatuette() : base(0x25AB) { Name = "Ophidian Mage"; Weight = 5.0; } public OphidianMageStatuette(Serial serial) : base(serial) { } public override void OnMovement(Mobile m, Point3D oldLocation) { if (TurnedOn && IsLockedDown && (!m.Hidden || m.IsPlayer()) && Utility.InRange(m.Location, Location, 2) && !Utility.InRange(oldLocation, Location, 2)) Effects.PlaySound(Location, Map, m_Sounds[Utility.Random(m_Sounds.Length)]); base.OnMovement(m, oldLocation); } public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write(0); // version } public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); } } }