Quantcast
Download
(172 Kb)
Download
Updated: 01/19/21 03:47 PM
Pictures
File Info
Compatibility:
Markarth (6.2.5)
Updated:01/19/21 03:47 PM
Created:11/29/18 02:56 PM
Monthly downloads:8,115
Total downloads:318,672
Favorites:335
MD5:
LibPrice  Popular! (More than 5000 hits)
Version: 6.2.1
by: ziggr [More]
A library for gathering an item's cost from various add-ons:

As well as some hard-coded data from other sources:
  • The Crown Store
  • Rolis Hlaalu, the Mastercraft Mediator
  • Faustina Curio, the Achievement Mediator

GitHub Repo

https://github.com/ziggr/ESO-LibPrice

Example Code


Lua Code:
  1. function LibPrice_Example.SlashCommand()
  2.     local self = LibPrice_Example
  3.  
  4.     for _,item_link in ipairs(EXAMPLE_ITEMS) do
  5.                         -- Just tell me how much this thing costs.
  6.         local gold   = LibPrice.ItemLinkToPriceGold(item_link)
  7.  
  8.                         -- Okay, I changed my mind. Tell me a little more:
  9.                         -- where'd you get  this price from?
  10.                         -- (additional return values from same API)
  11.         gold, source_key, field_name
  12.                      = LibPrice.ItemLinkToPriceGold(item_link)
  13.         local header = self.FormatHeader(item_link, gold, source_key, field_name)
  14.         d(header)
  15.  
  16.                         -- Give me all the data you can find, I'll figure out
  17.                         -- what to do with it later.
  18.         local result = LibPrice.ItemLinkToPriceData(item_link)
  19.         LibPrice_Example.DumpTable(result)
  20.     end
  21. end

6.2.1 2021-01-19
  • Attempt to avoid nil error during FurnitureCatalogue lookup.
  • API Bump to Update 28/6.2.1/API 100032/Markarth

5.0.2 2019-05-05
  • ## IsLibrary: true so that Elsweyr can identify this as a library.

5.0.1 2019-05-05
  • Version and API bump. No code change.

4.2.2 2018-12-01
  • add crafting cost for craftable furnishings
  • bugfix achievement furnishings
  • bugfix Rolis Hlaalu furnishings
  • add Music Box, Blood and Glory = 800 crowns

4.2.1 2018-11-29
  • Initial release to support WritWorthy
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Uploader
Date
5.0.2
172kB
ziggr
05/05/19 03:26 PM
5.0.1
172kB
ziggr
05/05/19 03:15 PM
4.2.2
172kB
ziggr
12/01/18 04:41 PM
4.2.1
172kB
ziggr
11/29/18 02:56 PM


Post A Reply Comment Options
Unread 05/18/21, 11:52 PM  
BerZerK_Bayern
 
BerZerK_Bayern's Avatar

Forum posts: 0
File comments: 2
Uploads: 0
What figures are used as the basis for calculation

I came here because I wanted to know how the costs/gold for masterwrits is calculated when MM does not yet show any data (short after i logged in it always takes some minutes as i am in 4 major trading guilds), then i saw Anons comment and this is my opinion to this:

I produce and buy and sell lots of platings of any kind.
I can assure you there is no such thing as putting platings in and delete the listing shortly afterwards - that would be totally stupid anyways, because you have to pay 1% of the price each time you put it in as an offering fee. If I put something in for the lower TTC price at a very busy marketplace, it is immediately gone. There doesn't even have to stand a player directly at the trader, because the internal guild trading in large tradeguilds also goes back and forth particularly quickly, because a lot of wholesalers are active there and stand in the banks and constantly search through their 4-5 trade guilds.

Personally, I always evaluate prices as an average and I use TTC prices "mostly" as an average of (min+max)/2, but that also depends on the current demand situation, if something is bought very strongly, it can go quickly even (far) over TTCmax, if I want to get rid of junk quickly, I knock it out for TTCmin to get a sales slot free again as quickly as possible.

Anon, you also have to keep in mind what the ages of the prices on the TTT-site mean. Its not counted from when a seller lists something, but when some TTC user reports the price to the site. It can tell you the price is 1 minute old, but that only means that a TTC client uploaded the prices a minute ago. In between, a quarter of an hour may have passed, in which time a lot is bought and sold in large guilds and a particularly a cheap offer is gone in an instant, except perhaps in remote guilds or hideouts.

Btw: As of this writing (PC/EU 2021-05-19), Iridium Plating is 10.066 - 12.583

Originally Posted by anon379
As of this writing, Iridium Plating is 6,681 - 8,352. Using TTC lowest value leads to understating cost of things because it's difficult to find traders selling at that point. I think this is because of all the price manipulation that happens with TTC (players posting minimal sales, update TTC, and then cancel the sale before anyone buys it). I can't use MMC or ATT because my guilds don't trade lots.

I think it would be more helpful to use TTC highest suggested value for costs.
Last edited by BerZerK_Bayern : 05/19/21 at 12:07 AM.
Report comment to moderator  
Reply With Quote
Unread 05/31/20, 03:22 PM  
anon379

Forum posts: 0
File comments: 5
Uploads: 0
option to use TTC highests sugested price

As of this writing, Iridium Plating is 6,681 - 8,352. Using TTC lowest value leads to understating cost of things because it's difficult to find traders selling at that point. I think this is because of all the price manipulation that happens with TTC (players posting minimal sales, update TTC, and then cancel the sale before anyone buys it). I can't use MMC or ATT because my guilds don't trade lots.

I think it would be more helpful to use TTC highest suggested value for costs.
Report comment to moderator  
Reply With Quote
Unread 03/07/20, 08:28 PM  
Aldanga
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 240
Uploads: 5
Would it be possible to add the ability to get full pricing data from ATT instead of limiting it to 3 days when a sale within that range exists?
Report comment to moderator  
Reply With Quote
Unread 02/29/20, 03:08 AM  
Akopian Atrebates

Forum posts: 6
File comments: 190
Uploads: 0
Re: Re: Custom LibPrice sources, spreadsheets

Oh, and I wanted to add that the integration of all the pricing sources in a library was a great idea and made made the integration of all those addons working together a lot more coherent. So thanks, and I hope that more authors take advantage of your work.

Originally Posted by Akopian Atrebates
So no you won't do it, but the answer is that maybe it is possible. Neat. Maybe somebody one day. I have a feeling it is way above my ability level to do, but maybe one day it will not be.

Originally Posted by ziggr
Sorry, no.

Interesting idea, and certainly possible with some limitations and much coding. But not something I'm interested in adding right now.
  1. Add new data source "custom" to go along with existing sources "mm" "att" "ttc" and more
  2. Add new Lua file with placeholder table where folks can type in their hardcoded prices?
  3. ... or read prices from SavedVariables/LibPrice.lua and have folks type price data into there
  4. Modify WritWorthy.Util.MatPrice() to include prices from "custom".

Originally Posted by Akopian Atrebates
I am wondering if there is a way for me to draw from my own personal spreadsheets as a source for LibPrice's data?
Report comment to moderator  
Reply With Quote
Unread 02/29/20, 03:02 AM  
Akopian Atrebates

Forum posts: 6
File comments: 190
Uploads: 0
Re: Custom LibPrice sources, spreadsheets

So no you won't do it, but the answer is that maybe it is possible. Neat. Maybe somebody one day. I have a feeling it is way above my ability level to do, but maybe one day it will not be.

Originally Posted by ziggr
Sorry, no.

Interesting idea, and certainly possible with some limitations and much coding. But not something I'm interested in adding right now.
  1. Add new data source "custom" to go along with existing sources "mm" "att" "ttc" and more
  2. Add new Lua file with placeholder table where folks can type in their hardcoded prices?
  3. ... or read prices from SavedVariables/LibPrice.lua and have folks type price data into there
  4. Modify WritWorthy.Util.MatPrice() to include prices from "custom".

Originally Posted by Akopian Atrebates
I am wondering if there is a way for me to draw from my own personal spreadsheets as a source for LibPrice's data?
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 09:46 PM  
ziggr
 
ziggr's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 275
Uploads: 10
Custom LibPrice sources, spreadsheets

Sorry, no.

Interesting idea, and certainly possible with some limitations and much coding. But not something I'm interested in adding right now.
  1. Add new data source "custom" to go along with existing sources "mm" "att" "ttc" and more
  2. Add new Lua file with placeholder table where folks can type in their hardcoded prices?
  3. ... or read prices from SavedVariables/LibPrice.lua and have folks type price data into there
  4. Modify WritWorthy.Util.MatPrice() to include prices from "custom".

Originally Posted by Akopian Atrebates
I am wondering if there is a way for me to draw from my own personal spreadsheets as a source for LibPrice's data?
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 07:58 PM  
Akopian Atrebates

Forum posts: 6
File comments: 190
Uploads: 0
I am wondering if there is a way for me to draw from my own personal spreadsheets as a source for LibPrice's data?
Report comment to moderator  
Reply With Quote
Unread 12/05/18, 05:39 PM  
Architecture
 
Architecture's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 79
Uploads: 8
Nice job. Been wanting this sort of an integration for a while and I think you went above and beyond by covering more than just MM and TTC.
Report comment to moderator  
Reply With Quote
Unread 11/30/18, 06:12 AM  
Marazota
AddOn Author - Click to view AddOns

Forum posts: 232
File comments: 1396
Uploads: 2
excelent work!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: