public override void Confirm(Mobile from) { if (m_Collection == null || !from.InRange(m_Location, 2)) { return; } if (from is PlayerMobile) { m_Collection.Reward((PlayerMobile)from, m_Item, m_Hue); } }
public override int LabelNumber => 1074975; // Are you sure you wish to select this? public override void Confirm(Mobile from) { if (m_Collection == null || !from.InRange(m_Location, 2)) { return; } if (from is PlayerMobile player) { if (player.GetCollectionPoints(m_Collection.CollectionID) < m_Item.Points) { player.SendLocalizedMessage(1073122); // You don't have enough points for that! } else if (m_Item.CanSelect(player)) { m_Collection.Reward(player, m_Item, m_Hue); } } }