Finally, it works. I've tried AlexDeloy's Code for a long time and it just didn't show any flares.

I have now found out that it doesn't work when ShadeC is activated at the same time. I guess it has something to do with the layers.

Thanks for the script and the flares!