Quantcast
Download
(172 Kb)
Download
Updated: 05/05/19 03:26 PM
Pictures
File Info
Compatibility:
Elsweyr (5.0.5)
Wrathstone (4.3)
Updated:05/05/19 03:26 PM
Created:11/29/18 02:56 PM
Monthly downloads:7,308
Total downloads:202,818
Favorites:278
MD5:
LibPrice  Popular! (More than 5000 hits)
Version: 5.0.2
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

5.0.2 2019-05-05
  • ## IsLibrary: 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 (3)
File Name
Version
Size
Uploader
Date
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/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: 194
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: 181
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: 181
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: 26
File comments: 257
Uploads: 9
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: 181
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

Forum posts: 213
File comments: 1324
Uploads: 0
excelent work!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: