public virtual void OnChop(Mobile from) { BaseGalleon galleon = null; if (this.LinkedSingleCannonPlace != null) { galleon = this.LinkedSingleCannonPlace.Galleon; } if (this.LinkedMultiCannonPlace != null) { galleon = this.LinkedMultiCannonPlace.Galleon; } if (galleon != null && (galleon.Owner == from) && galleon.Contains(this)) { Effects.PlaySound(this.GetWorldLocation(), this.Map, 0x3B3); from.SendLocalizedMessage(500461); // You destroy the item. this.Delete(); HeavyCannonDeed deed = new HeavyCannonDeed(); from.AddToBackpack(deed); } }
public virtual void OnChop(Mobile from) { BaseGalleon galleon = null; if (this.LinkedSingleCannonPlace != null) galleon = this.LinkedSingleCannonPlace.Galleon; if (this.LinkedMultiCannonPlace != null) galleon = this.LinkedMultiCannonPlace.Galleon; if (galleon != null && (galleon.Owner == from) && galleon.Contains(this)) { Effects.PlaySound(this.GetWorldLocation(), this.Map, 0x3B3); from.SendLocalizedMessage(500461); // You destroy the item. this.Delete(); HeavyCannonDeed deed = new HeavyCannonDeed(); from.AddToBackpack(deed); } }