View Single Post
Originally Posted by Insanity View Post
Timmy i can do 10k or the2 textures, u pick.

Nicely done solax. This could be handy.
Idk if timmy is way off. I think your code is inacurate because i have many items that are higher then market price, because i only lower one at a time if somebody lowers theire item. So many of them are above lowest market price. But nicely done. I wish i could code like that.
Also, does it count items with non alpha numerical characters?

If u want u can pick an item worth 10k or underfrom my market items.

THX guys.
13kk, thats a lot. Now i just have to wait 2 to 3 yrs to sell them all :D

Oh right, I wasn't really that clear.

What the program does is it looks at every item you have in your market inventory. The value that it gives the item isn't how much you have it up for sale in the market at the moment. The value it's given is whatever the cheapest price that item can be bought for on the market at the moment - 1.
Take the first example in the example output. It tells you you have one sapphire torso and that its value is 1199 since the cheapest on the market not including yours is 1200.
This checks out: http://forum.toribash.com/tori_marke...sapphire+torso
The cheapest on the market not including yours costs 1200 so the value of yours is 1199 as per your instructions in the OP.
In that particular case you already have your sapphire torso up for sale at the best value price for it so nothing needs to be done there.

Hopefully that explains a bit better how it works. It's calculating the value according to your (market price - 1) formula in the OP, not just a sum of the prices of what all of your current items in the market cost. :D

I checked my code again today and found a little bug so I'll fix that sometime today and run it again and let you know the final result if you're still interested.

EDIT: Ok all fixed. The grand total I get: 13,686,719
So decently close to what others have said.
Full text output in the spoiler

(see below)
2 things to note:

1. Items not on the market and with no price in the shop have a value of 0 (Eg world championship 2008). Pretty much means you can charge whatever you want for it.

2. There's a small bug with some items, looks mostly like varios 3d items and things like getas, boxing gloves etc. I'll get it fixed up soon so your total value is a bit more than the figure said above.

I'll probably just release the code once I clean it up since it could be fairly useful to others. And as I said, hoping to have some stuff up on GitHub in the near future relating to this sort of thing.

Edit2: Fixed the other bug. Will run this again and add (hopefully) the final and correct figures and list.

Edit3: So this is what I get now that it's all fixed.
Total comes to 14,617,329 by my code. Still doesn't account for items that are not in the shop for purchase or the market for purchase. Still doesn't check for items in sets (but I can add that np).

Results

Last edited by Solax; Sep 17, 2015 at 05:48 AM.