示例#1
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (m_TurnedOn && IsLockedDown && (!m.Hidden || m.AccessLevel == AccessLevel.Player) && Utility.InRange(m.Location, this.Location, 2) && !Utility.InRange(oldLocation, this.Location, 2))
            {
                int[] sounds = MonsterStatuetteInfo.GetInfo(m_Type).Sounds;

                if (sounds.Length > 0)
                {
                    Effects.PlaySound(this.Location, this.Map, sounds[Utility.Random(sounds.Length)]);
                }
            }

            base.OnMovement(m, oldLocation);
        }
示例#2
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }
            else if (m_Type == MonsterStatuetteType.HalloweenGhoul)
            {
                Hue = 0xF4;
            }
        }