} // This statuette will be destroyed when its trapped creature is summoned. The creature will be bonded to you but will disappear if released. <br><br>Do you wish to proceed? public override void Confirm(Mobile from) { if (m_Item == null || m_Item.Deleted) { return; } BaseMount m = null; if (m_Item is IMountStatuette) { m = Activator.CreateInstance(((IMountStatuette)m_Item).MountType) as BaseMount; } if (m != null) { if ((from.Followers + m.ControlSlots) >= from.FollowersMax) { m.Delete(); from.SendLocalizedMessage(1114321); // You have too many followers to control that pet. } else { m.SetControlMaster(from); m.IsBonded = true; m.MoveToWorld(from.Location, from.Map); m_Item.Delete(); } } }
public override void OnAfterDelete() { if (m_Mount != null) { m_Mount.Delete(); } m_Mount = null; base.OnAfterDelete(); }