Esempio n. 1
0
 public override void OnDoubleClick(Mobile from)
 {
     if (Utility.RandomDouble() < 0.05)
     {
         from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Rare));
     }
     else
     {
         if (Utility.RandomBool())
         {
             from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Common));
         }
         else
         {
             from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.UnCommon));
         }
     }
     Delete();
 }
Esempio n. 2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (Utility.RandomDouble() < 0.05)
            {
                from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Rare));
            }
            else
            {
                if (Utility.RandomBool())
                {
                    from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Common));
                }
                else
                {
                    from.AddToBackpack(MusicBoxGears.RandomMusixBoxGears(TrackRarity.UnCommon));
                }
            }

            from.SendLocalizedMessage(1115723); // You have polished the dirty gear...

            Delete();
        }
Esempio n. 3
0
        protected override void OnAfterDeath(Container c)
        {
            base.OnAfterDeath(c);

            if (!Summoned && Utility.RandomDouble() < 0.05)
            {
                if (IsParagon)
                {
                    c.DropItem(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Rare));
                }
                else
                {
                    if (Utility.RandomBool())
                    {
                        c.DropItem(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Common));
                    }
                    else
                    {
                        c.DropItem(MusicBoxGears.RandomMusixBoxGears(TrackRarity.UnCommon));
                    }
                }
            }
        }
Esempio n. 4
0
 public VeritaesTreasureBox() : base()
 {
     AddItem(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Rare));
 }