CFStat 1.0.2
ManageStore 1.1.1
CFStat is an attempt to make a utility and encapsulate it in a file. It defines a record (itemdata) and a function (salesVolume) that takes an item as input and returns an instance of the record. The record contains the average price and total sales volume for the item from ColdFront over the past seven days. It also contains a date string indicating when the data was fetched. salesVolume will cache data in a map file (CDdata.txt) so that ColdFront will only be queried once a day per item. It is packaged as a utility in case other scripters are interested in it. I'm pretty sure Destroy All Bacon wrote the code I started from although I'm not sure how much is left.
ManageStore looks at all the items in your store. It then offers the opportunity to autosell or sell on kBay all the items that are priced at the mall minimum, have a low (see below) sales volume or a ColdFront average price that is greater than the mall minimum.
Calling it as a script requires three parameters, SIM, VOL and useKbay. If SIM is true then it just reports items that fit the criteria. Otherwise it tries to get rid of them. VOL is an integer. If there are more items in the store than VOL times the sales volume for the past week, then the item will be disposed of. If useKbay is true then the items will be offered on kBay, otherwise they will be autosold. The kBay opening bid will be the number of items times the autosell value. Currently if the kBay opening is not at least 2500 meat then the auction will not occur.
After the routine initialize is called there is a map, myStore, that contains all of the items in a store. Since I could not find an ash primitive to do this scriptwriters might consider including ManageStore, calling initialize and then referencing the array.
1.0.0 11 APR 2012 - Initial release.
1.0.1 12 APR 2012 - ManageStore - Detect and report not enough to list on kBay when simulating. Make kBay threshold global in anticipation of conversion to zLib variable. Turns out script was grabbing mall price for everything and not using it. Don't do that since fetching mall prices is a time sink.
23 JUN 2016 - Bumped version numbers and converted to SVN for distribution. Fixed typo in CFStat versioning. In theory CFStat is a dependency of ManageStore now.
18 OCT 2018 - ManageStore will pulverize. See post on page 6 or thereabouts.
ManagedStore
CFStat
ManageStore 1.1.1
CFStat is an attempt to make a utility and encapsulate it in a file. It defines a record (itemdata) and a function (salesVolume) that takes an item as input and returns an instance of the record. The record contains the average price and total sales volume for the item from ColdFront over the past seven days. It also contains a date string indicating when the data was fetched. salesVolume will cache data in a map file (CDdata.txt) so that ColdFront will only be queried once a day per item. It is packaged as a utility in case other scripters are interested in it. I'm pretty sure Destroy All Bacon wrote the code I started from although I'm not sure how much is left.
ManageStore looks at all the items in your store. It then offers the opportunity to autosell or sell on kBay all the items that are priced at the mall minimum, have a low (see below) sales volume or a ColdFront average price that is greater than the mall minimum.
Calling it as a script requires three parameters, SIM, VOL and useKbay. If SIM is true then it just reports items that fit the criteria. Otherwise it tries to get rid of them. VOL is an integer. If there are more items in the store than VOL times the sales volume for the past week, then the item will be disposed of. If useKbay is true then the items will be offered on kBay, otherwise they will be autosold. The kBay opening bid will be the number of items times the autosell value. Currently if the kBay opening is not at least 2500 meat then the auction will not occur.
After the routine initialize is called there is a map, myStore, that contains all of the items in a store. Since I could not find an ash primitive to do this scriptwriters might consider including ManageStore, calling initialize and then referencing the array.
1.0.0 11 APR 2012 - Initial release.
1.0.1 12 APR 2012 - ManageStore - Detect and report not enough to list on kBay when simulating. Make kBay threshold global in anticipation of conversion to zLib variable. Turns out script was grabbing mall price for everything and not using it. Don't do that since fetching mall prices is a time sink.
23 JUN 2016 - Bumped version numbers and converted to SVN for distribution. Fixed typo in CFStat versioning. In theory CFStat is a dependency of ManageStore now.
18 OCT 2018 - ManageStore will pulverize. See post on page 6 or thereabouts.
ManagedStore
Code:
svn checkout https://svn.code.sf.net/p/kolmafiascripts/shop/code/
CFStat
Code:
svn checkout https://svn.code.sf.net/p/kolmafiascripts/cfstat/code/
Attachments
Last edited: