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")); } }
public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID) { Weight = 1.0; LootType = LootType.Blessed; m_Type = type; }
public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID) { Weight = 1.0; LootType = LootType.Regular; Name = MonsterStatuetteInfo.GetInfo(type).Description; m_Type = type; }
public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID) { LootType = LootType.Blessed; m_Type = type; Dyable = true; }
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); }
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); }
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; } }
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); }
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; } } }
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; }
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; } }
public override void AddNameProperty(ObjectPropertyList list) { list.Add(String.IsNullOrEmpty(base.Name) ? (MonsterStatuetteInfo.GetInfo(m_Type).Name + " Statuette") : base.Name); }