public virtual void LockPick(Mobile from) { Locked = false; Picker = from; HarvestSystem.LogHarvest(from, this.GetType()); if (this.TrapOnLockpick && ExecuteTrap(from)) { this.TrapOnLockpick = false; } }
public void Carve(Mobile from, Item item) { if (DateTime.UtcNow < m_NextWoolTime) { // This sheep is not yet ready to be shorn. PrivateOverheadMessage(MessageType.Regular, 0x3B2, 500449, from.NetState); return; } from.SendLocalizedMessage(500452); // You place the gathered wool into your backpack. from.AddToBackpack(new Wool(/*Map == Map.Felucca ?*/ 2 /*: 1*/)); HarvestSystem.LogHarvest(from, typeof(Wool)); NextWoolTime = DateTime.UtcNow + TimeSpan.FromHours(3.0); // TODO: Proper time delay }