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(); }
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(); }
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)); } } } }
public VeritaesTreasureBox() : base() { AddItem(MusicBoxGears.RandomMusixBoxGears(TrackRarity.Rare)); }