コード例 #1
0
 public override void OnSingleClick(Mobile from)
 {
     if (String.IsNullOrEmpty(Name))
     {
         LabelTo(from, String.Format("a {0} statuette ({1})", MonsterStatuetteInfo.GetInfo(m_Type).Name.ToLower(), m_TurnedOn ? "ON" : "OFF"));
     }
 }
コード例 #2
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            Weight   = 1.0;
            LootType = LootType.Blessed;

            m_Type = type;
        }
コード例 #3
0
 public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
 {
     Weight   = 1.0;
     LootType = LootType.Regular;
     Name     = MonsterStatuetteInfo.GetInfo(type).Description;
     m_Type   = type;
 }
コード例 #4
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;
            Dyable = true;
        }
コード例 #5
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (m_TurnedOn && IsLockedDown && Utility.InRange(m.Location, this.Location, 2) && !Utility.InRange(oldLocation, this.Location, 2))
            {
                int[] sounds = MonsterStatuetteInfo.GetInfo(m_Type).Sounds;

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

            base.OnMovement(m, oldLocation);
        }
コード例 #6
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (EnableSound && m_TurnedOn && IsLockedDown && (!m.Hidden || m.AccessLevel == AccessLevel.Player) && this.InRange(m, 2) && !this.InRange(oldLocation, 2))
            {
                int[] sounds = MonsterStatuetteInfo.GetInfo(m_Type).Sounds;

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

            base.OnMovement(m, oldLocation);
        }
コード例 #7
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }
        }
コード例 #8
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (m_TurnedOn && IsLockedDown && (!m.Hidden || m.IsPlayer()) && Utility.InRange(m.Location, Location, 2) && !Utility.InRange(oldLocation, Location, 2))
            {
                int[] sounds = MonsterStatuetteInfo.GetInfo(m_Type).Sounds;

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

            base.OnMovement(m, oldLocation);
        }
コード例 #9
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;
            }
            else if (m_Type == MonsterStatuetteType.ArchDemon)
            {
                Hue = 2021;
            }
            else if (m_Type == MonsterStatuetteType.SnowElemental)
            {
                Hue = 1150;
            }
            else if (m_Type == MonsterStatuetteType.SakkhranBirdOfPrey)
            {
                double ran = Utility.RandomDouble();
                if (0.01 > ran)
                {
                    Hue = 1907;
                }
                else if (0.1 > ran)
                {
                    Hue = 2562;
                }
                else if (0.25 > ran)
                {
                    Hue = 2525;
                }
                else
                {
                    Hue = 2309;
                }
            }
        }
コード例 #10
0
ファイル: MonsterStatuette.cs プロジェクト: nydehi/imagine-uo
        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;
            }

            ItemValue = ItemValue.Rare;
        }
コード例 #11
0
        public MonsterStatuette(MonsterStatuetteType type)
            : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            this.LootType = LootType.Blessed;

            this.m_Type = type;

            if (this.m_Type == MonsterStatuetteType.Slime)
            {
                this.Hue = Utility.RandomSlimeHue();
            }
            else if (this.m_Type == MonsterStatuetteType.RedDeath)
            {
                this.Hue = 0x21;
            }
            else if (this.m_Type == MonsterStatuetteType.HalloweenGhoul)
            {
                this.Hue = 0xF4;
            }
        }
コード例 #12
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     list.Add(String.IsNullOrEmpty(base.Name) ? (MonsterStatuetteInfo.GetInfo(m_Type).Name + " Statuette") : base.Name);
 }