Stat Reduce script / fast edit

Hello. I recently starter a project to “merge” TBC and WOTLK into one expansion. SO what I kinda need help with, is reducing the stats on item from itemlevel 200 to 284. So they will be like listed before, from the highest tbc stats, choosing randomly between adding 1-3 more stats on items on Itemlevel, and so on with the rest,

Doing this manually will take forever. I appreciate all help. Thanks.

ItemLevel: 200 = 1-3 more stats from highest TBC

ItemLevel: 213 = 2-4 more stats from highest TBC

ItemLevel: 219 = 3-5 more stats from highest TBC

ItemLevel: 226 = 4-6 more stats from highest TBC

ItemLevel: 232 = 5-7 more stats from highest TBC

ItemLevel: 239 = 6-8 more stats from highest TBC

ItemLevel: 245 = 7-9 more stats from highest TBC

ItemLevel: 251= 8-10 more stats from highest TBC

ItemLevel: 258 = 9-11 more stats from highest TBC

ItemLevel: 264 = 10-12 more stats from highest TBC

ItemLevel: 270 = 11-13 more stats from highest TBC

ItemLevel: 271 = 12-14 more stats from highest TBC

ItemLevel: 277 = 13-15 more stats from highest TBC

ItemLevel: 284 = 14-16 more stats from highest TBC

highest TBC items stats.

Int

39

Strenght

50

Agility

42

Spirit

57

Crit

50

Arp

48

AP

126

SP

293

Armor

6662

hit

37

Exp

28

Wep dps

148.7

Wep dmg.

404 - 607

Haste

50

So what you want is for someone to do the work for you? this is pretty easy via SQL.