Painting is at least 70% preparation (sanding, caulking, filling etc..)
If your walls have peeling paint and or cracks... best 1st to scrape loose paint off. If cracks are larger, take a blade and make and enlarge a channel (like a v).. fill with a small beed of caulking.. once dry float with...