Interesting, just a few tips though:
1) You might want to pull prices from online. To my knowledge, RSBuddy's API is down, but there are likely other places you can use.
2) There is a lot of repeated code here that could be condensed into just a few loops. I'd recommend looking into arrays, enums, and for loops.
Good idea for the script!