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:5,383
Total downloads:99,304
Favorites:178
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 12/05/18, 05:39 PM  
Architecture
 
Architecture's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 73
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: 145
File comments: 1126
Uploads: 0
excelent work!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: