Holy shitballs! If this movie ends with the king being a giant green vegetable covered in slime and contains cyborgs, I think it may be one of my earlies childhood memories.
No, that's Robot Holocaust. This is the Italian post-apoc film that ends with the last fertile woman on Earth being taken on a colony ship bound for a planet near Alpha Centauri.