SELECT SUM( ROUND( go.r_beauty + IF( goc.percents IS NULL , 0, IF( goc.percents <=50, (
(
go.r_beauty + s.value
) * goc.percents / s2.value ) , (
- ( go.r_beauty + s.value ) * goc.percents /100 ) ) )
) + ROUND( go.r_prestige + IF( gof.percents IS NULL , 0, IF( gof.percents <=50, (
go.r_prestige * gof.percents / s3.value
), - ( go.r_prestige * gof.percents
(
Read more... )