Ejemplo n.º 1
0
        public static void Control(this BaseCreature pet, Mobile master)
        {
            if (pet == null || pet.Deleted || master == null || master.Deleted)
            {
                return;
            }

            pet.CurrentWayPoint = null;

            pet.ControlMaster = master;
            pet.Controlled    = true;
            pet.ControlTarget = null;
            pet.ControlOrder  = OrderType.Come;
            pet.Guild         = null;

            pet.Delta(MobileDelta.Noto);
        }