Here is how I've rebuilt the stator of my bike, a Yamaha yp250 scooter, branded here in Italy as Majesty 250. It might be also valid for other brands.
The original part is WAY too expensive here (more than 600$), so I HAD to invent ways to solve the problem. I drove the bike using this rebuilt stator for about 600 miles now and its still working. Im not sure that the insulating paint I've used will stand the eat from the engine motor oil as the original.
So far so good....
Step 5 has a picture with the complete schematic of the wiring.
Suggestions and criticism are welcome.
Step 1: Original Stator.
This is the original faulty stator. It has all of its 3 windings shorted to the metal body.