SRL Archive - Outdated / Broken

MIG (Merchant Information Gatherer)


Frt

2009-04-25 19:10:18

Here it is, the utiliy for mechanters:
The Merchant Information Gatherer!

How to:

Gathering the information:
When using this for the first time, set DoThis = 0.
This will create a .ini file of all items in GE with IDs lower than the constant Items. I put this at 10000 but feel free to put it higher. I haven't checked how high the ID's go but I'm sure it's higher than 10000.
Note: This takes several hours as it goes through all ID's at the GE so it'll have to do GetPage 10000 times :)

Updating the information:
Now here's the important thing. If you want to use this you should run the script with DoThis = 1. This updates all the items information and takes about 15-30 minutes depending on your connection and so.
If the current minimum price is lower than last check it will set it to this and the other way around with the max price. It will also set the Market price to what it's at.

Using the information:
Well, what are we supposed to do with all this information?
Well, how about we get how many percent the current market price is of the highest price seen and then output a list of all items that might be good to buy?
Sounds like a good idea? Well, then make DoThis = 3.

Note: This is only meant as a guideline for what to buy.

If you do not want to scan all pages yourself feel free to download this ini file and save in the top of your Scar folder: AucData.ini

Floor66

2009-04-25 19:11:46

Several HOURS?
Wowa. Can't you upload one INI/Txt on a webserver with it somewhere so we don't all have to d/l it.

Frt

2009-04-25 19:35:01

I've got the .ini file now but nowhere to upload.
Anyone has a host and wouldn't mind having it laying around?

EDIT: Here you go: http://www.filefactory.com/file/agd0964/n/MIGINI_ini
You should save in the top of you Scar folder.

Floor66

2009-04-25 19:42:26

How big is it?

3Garrett3

2009-04-25 20:36:04

Its a really small INI file. But once you save it, you need to rename it.

AucData.ini is what it should be called, in the main SCAR directory.

Frt

2009-04-25 21:15:09

Oh yeah, forgot about that.

mixster

2009-04-25 22:23:58

I would suggest using something like my old price downloader's method as a base - it runs by going through the a-z + other pages and the 1..x pages on those and collects the ID and then goes through all those ID's to collect the data. It takes a lot less than 7 hours to do it this way if I remember correctly as it doesn't go through all the non-existent ID's. Also, the highest item ID is over 12000, so you're missing out on quite a few of the newer items by doing it through a brute forcing method.

When using INI files, the point is to make them somewhat readable. Collecting all data onto one line is not the point and if you do wish to do it like that, it would be better to have it just write to a non-ini file using WriteFileString etc. rather than WriteINI.

I also fail to see how you can base whether or not to buy a product based on the ratio of the difference between market price and min price compared to the difference between max and min price. To me they do not correlate to something that would be worthwhile to buy as it just means you can put it in at a higher price than you bought, but it also means that the majority of items are being sold at a lower price than yours, so it would require the item price to rise before you would sell any of your own, but this is completely unrelated to the gathered data.

Frt

2009-04-25 22:32:08

From: mixster
I would suggest using something like my old price downloader's method as a base - it runs by going through the a-z + other pages and the 1..x pages on those and collects the ID and then goes through all those ID's to collect the data. It takes a lot less than 7 hours to do it this way if I remember correctly as it doesn't go through all the non-existent ID's. Also, the highest item ID is over 12000, so you're missing out on quite a few of the newer items by doing it through a brute forcing method.

When using INI files, the point is to make them somewhat readable. Collecting all data onto one line is not the point and if you do wish to do it like that, it would be better to have it just write to a non-ini file using WriteFileString etc. rather than WriteINI.

I also fail to see how you can base whether or not to buy a product based on the ratio of the difference between market price and min price compared to the difference between max and min price. To me they do not correlate to something that would be worthwhile to buy as it just means you can put it in at a higher price than you bought, but it also means that the majority of items are being sold at a lower price than yours, so it would require the item price to rise before you would sell any of your own, but this is completely unrelated to the gathered data.


Will look at your script when I get to my own computer as this doesn't have Scar installed. I didn't know what the highest item ID was but I'll make my computer scan upto 20000 this night and then upload the file so you have all items.

I'm not experienced in any kind of .ini files. In fact, this is the first time I've ever heard of them and I didn't know of any other ways to put the information than that. If you have any ideas feal free to tell me :)

The min/max prices holds the highest ever seen, which means that there is a chance that the item will raise to that again. No, this is not 100% reliable but to me it seems like it gives a list of items that are low and could be considered buying. It's only meant as a guideline for those who want to use it.

mixster

2009-04-25 22:46:59

RewriteFile / OpenFile give you an integer that relates to a file you can write or read from. OpenFile will open an existing file (crashes if doesn't exist) and RewriteFile creates the file if it doesn't exist else removes all content making it a blank file. From there, you can do ReadFileString to read what's in the file or WriteFileString to write to it. Lastly you use CloseFile with the integer you got at the beginning and it safely closes it. Those would be what you would use if you didn't want to use an INI file to store the data. I would suggest sticking with INI but instead using it how it should be by reading through an INI tutorial and see how they can be used to store relating but different data.

Also, if my downloader isn't anywhere, then I can send you it via PM - was a while back so I dunno what happened to it.

Frt

2009-04-26 12:12:39

From: mixster
RewriteFile / OpenFile give you an integer that relates to a file you can write or read from. OpenFile will open an existing file (crashes if doesn't exist) and RewriteFile creates the file if it doesn't exist else removes all content making it a blank file. From there, you can do ReadFileString to read what's in the file or WriteFileString to write to it. Lastly you use CloseFile with the integer you got at the beginning and it safely closes it. Those would be what you would use if you didn't want to use an INI file to store the data. I would suggest sticking with INI but instead using it how it should be by reading through an INI tutorial and see how they can be used to store relating but different data.

Also, if my downloader isn't anywhere, then I can send you it via PM - was a while back so I dunno what happened to it.


I changed the setup of the .ini, feel free to check it out :)

That means the scar file is changed so redownload ;)

Da 0wner

2009-04-27 03:13:41

Have your script gather it like every day or few hours and upload to your webserver automatically. Then people will not have to download.

Sabzi

2009-08-22 19:57:03

I have run it through 14000 items. I think there is no more.
If anyone wants the AucData.ini shoot me a PM.
Also next I will run more scripts like 4 or 5. One with items from 0 to 3000 then one from 3001 to 6000 ans so on.
Now I will try the advice option.

EDIT: I just can't understand what to do with those percentages. The bigger the better? Or opposite?
When I look the items up it seems the percentages are wrong? For example an item with 1% and a item with 49% got almost the same graph. (straight)