public bool SetControlMaster( Mobile m )
{
if ( m == null )
{
ControlMaster = null;
Controlled = false;
ControlTarget = null;
ControlOrder = OrderType.None;
Guild = null;
Delta( MobileDelta.Noto );
}
else
{
ISpawner se = this.Spawner;
if ( se != null && se.UnlinkOnTaming )
{
this.Spawner.Remove( this );
this.Spawner = null;
}
if ( m.Followers + ControlSlots > m.FollowersMax )
{
m.SendLocalizedMessage( 1049607 ); // You have too many followers to control that creature.
return false;
}
CurrentWayPoint = null;//so tamed animals don't try to go back
ControlMaster = m;
Controlled = true;
ControlTarget = null;
ControlOrder = OrderType.Come;
Guild = null;
if ( m_DeleteTimer != null )
{
m_DeleteTimer.Stop();
m_DeleteTimer = null;
}
Delta( MobileDelta.Noto );
}
InvalidateProperties();
return true;
}