This paper extends our previous work on contact points planning in two ways. First, by taking advantage of the possibilities offered by our initial posture generator, we include additional tasks that are not related to locomotion within the planning. The output motion will be generated so as to cope with these tasks. Second, we refine the potential function that guides the planner by introducing potential fields acting each on a single body. This helps escaping local minima of the original potential field and thus to deal with more challenging scenarios. We then test these novelties on difficult problems with success, and experiment the output of one of the planned scenario on a HRP-2 humanoid robot.