WoW LibCurrencyInfo addon Shadowlands/Burning Crusade Classic 2021
logo
wow addon LibCurrencyInfo

LibCurrencyInfo

Game Version: 9.1.0
Total Downloads: 13,350
Updated: Jun 28, 2021
Created: Jul 25, 2017
download LibCurrencyInfoDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
v1.23 +1 More release 17.79 KB Jun 28, 2021 9.1.0 0 download LibCurrencyInfo v1.23

+1 More releaseDownload
v1.22 +1 More release 17.23 KB May 19, 2021 9.0.5 86 download LibCurrencyInfo v1.22

+1 More releaseDownload
v1.21 +1 More release 16.07 KB May 18, 2021 9.0.5 46 download LibCurrencyInfo v1.21

+1 More releaseDownload
v1.18 +1 More release 15.12 KB Nov 22, 2020 9.0.2 7,263 download LibCurrencyInfo v1.18

+1 More releaseDownload
v1.17 +1 More release 15.06 KB Oct 20, 2020 9.0.1 121 download LibCurrencyInfo v1.17

+1 More releaseDownload
v1.16 +1 More release 14.66 KB Oct 18, 2020 9.0.1 277 download LibCurrencyInfo v1.16

+1 More releaseDownload
v1.15 +1 More release 14.43 KB Jun 28, 2020 8.3.0 1,307 download LibCurrencyInfo v1.15

+1 More releaseDownload
v1.14 +1 More release 14.04 KB Jan 19, 2020 8.3.0 168 download LibCurrencyInfo v1.14

+1 More releaseDownload
v1.13 +1 More release 14.00 KB Jan 16, 2020 8.3.0 76 download LibCurrencyInfo v1.13

+1 More releaseDownload
v1.12 +1 More release 13.89 KB Jan 7, 2020 8.2.5 91 download LibCurrencyInfo v1.12

+1 More releaseDownload
v1.11 +1 More release 13.88 KB Jan 7, 2020 8.2.5 10 download LibCurrencyInfo v1.11

+1 More releaseDownload
v1.10 +1 More release 13.83 KB Sep 2, 2019 8.2.0 108 download LibCurrencyInfo v1.10

+1 More releaseDownload
v1.09 +1 More release 13.38 KB Dec 17, 2018 8.1.0 186 download LibCurrencyInfo v1.09

+1 More releaseDownload
v1.08 +1 More release 13.26 KB Sep 4, 2018 8.0.1 138 download LibCurrencyInfo v1.08

+1 More releaseDownload
v1.07 +1 More release 13.20 KB Aug 11, 2018 8.0.1 134 download LibCurrencyInfo v1.07

+1 More releaseDownload
v1.06 +1 More release 42.97 KB Jul 25, 2018 8.0.1 118 download LibCurrencyInfo v1.06

+1 More releaseDownload
v1.05 +1 More release 42.89 KB Apr 25, 2018 7.3.5 137 download LibCurrencyInfo v1.05

+1 More releaseDownload
v1.04 +1 More release 41.42 KB Mar 28, 2018 7.3.5 83 download LibCurrencyInfo v1.04

+1 More releaseDownload
v1.03 +1 More release 41.40 KB Jan 22, 2018 7.3.5 128 download LibCurrencyInfo v1.03

+1 More releaseDownload
v1.02 +1 More release 40.37 KB Aug 29, 2017 7.3.0 121 download LibCurrencyInfo v1.02

+1 More releaseDownload
v1.01 +1 More release 40.35 KB Jul 26, 2017 7.2.5 87 download LibCurrencyInfo v1.01

+1 More releaseDownload
v1.00 +1 More release 40.28 KB Jul 25, 2017 7.2.5 71 download LibCurrencyInfo v1.00

+1 More releaseDownload
r46-alpha +1 More alpha 17.79 KB Jun 28, 2021 9.1.0 0 download LibCurrencyInfo r46-alpha

+1 More alphaDownload
r44-alpha +1 More alpha 15.12 KB Nov 22, 2020 9.0.2 6 download LibCurrencyInfo r44-alpha

+1 More alphaDownload
r42-alpha +1 More alpha 15.06 KB Oct 20, 2020 9.0.1 19 download LibCurrencyInfo r42-alpha

+1 More alphaDownload
r40-alpha +1 More alpha 14.66 KB Oct 18, 2020 9.0.1 25 download LibCurrencyInfo r40-alpha

+1 More alphaDownload
r39-alpha +1 More alpha 14.68 KB Aug 16, 2020 8.3.0 88 download LibCurrencyInfo r39-alpha

+1 More alphaDownload
r37-alpha +1 More alpha 14.43 KB Jun 28, 2020 8.3.0 31 download LibCurrencyInfo r37-alpha

+1 More alphaDownload
r36-alpha +1 More alpha 14.39 KB Jun 28, 2020 8.3.0 12 download LibCurrencyInfo r36-alpha

+1 More alphaDownload
r34-alpha +1 More alpha 14.04 KB Jan 19, 2020 8.3.0 20 download LibCurrencyInfo r34-alpha

+1 More alphaDownload
r32-alpha +1 More alpha 14.00 KB Jan 16, 2020 8.3.0 15 download LibCurrencyInfo r32-alpha

+1 More alphaDownload
r30-alpha +1 More alpha 13.89 KB Jan 7, 2020 8.2.5 22 download LibCurrencyInfo r30-alpha

+1 More alphaDownload
r28-alpha +1 More alpha 13.88 KB Jan 7, 2020 8.2.5 26 download LibCurrencyInfo r28-alpha

+1 More alphaDownload
r26-alpha +1 More alpha 13.83 KB Sep 2, 2019 8.2.0 14 download LibCurrencyInfo r26-alpha

+1 More alphaDownload
r24-alpha +1 More alpha 13.38 KB Dec 17, 2018 8.1.0 29 download LibCurrencyInfo r24-alpha

+1 More alphaDownload
r22-alpha +1 More alpha 13.26 KB Sep 4, 2018 8.0.1 31 download LibCurrencyInfo r22-alpha

+1 More alphaDownload
r20-alpha +1 More alpha 13.20 KB Aug 11, 2018 8.0.1 14 download LibCurrencyInfo r20-alpha

+1 More alphaDownload
r18-alpha +1 More alpha 42.97 KB Jul 25, 2018 8.0.1 13 download LibCurrencyInfo r18-alpha

+1 More alphaDownload
r16-alpha +1 More alpha 42.89 KB Apr 25, 2018 7.3.5 18 download LibCurrencyInfo r16-alpha

+1 More alphaDownload
r15-alpha +1 More alpha 41.47 KB Apr 12, 2018 7.3.5 39 download LibCurrencyInfo r15-alpha

+1 More alphaDownload
r14-alpha +1 More alpha 41.41 KB Apr 12, 2018 7.3.5 34 download LibCurrencyInfo r14-alpha

+1 More alphaDownload
r12-alpha +1 More alpha 41.42 KB Mar 28, 2018 7.3.5 19 download LibCurrencyInfo r12-alpha

+1 More alphaDownload
r10-alpha +1 More alpha 41.40 KB Jan 22, 2018 7.3.5 38 download LibCurrencyInfo r10-alpha

+1 More alphaDownload
r9-alpha +1 More alpha 40.88 KB Jan 22, 2018 7.3.5 33 download LibCurrencyInfo r9-alpha

+1 More alphaDownload
r7-alpha +1 More alpha 40.37 KB Aug 29, 2017 7.3.0 16 download LibCurrencyInfo r7-alpha

+1 More alphaDownload
r5-alpha +1 More alpha 40.35 KB Jul 26, 2017 7.2.5 33 download LibCurrencyInfo r5-alpha

+1 More alphaDownload
r4-alpha +1 More alpha 40.34 KB Jul 26, 2017 7.2.5 21 download LibCurrencyInfo r4-alpha

+1 More alphaDownload
r2-alpha +1 More alpha 40.28 KB Jul 25, 2017 7.2.5 28 download LibCurrencyInfo r2-alpha

+1 More alphaDownload

Description

Share this:

About

This is a library mainly for addon developer to get currencies’ related information.

 

API

lib:GetCurrencyByID(currencyID, lang)

Arguments

  • currencyID: Integer – ID of the currency to retrieve
  • lang (optional): String – language code which the language you would like to retrieve. If nil, then player’s game client language will be used.
    The valid input is specified below:
    • enUS
    • deDE
    • esES
    • esMX
    • frFR
    • itIT
    • koKR
    • ptBR
    • ruRU
    • zhCN
    • zhTW

Returns

  1. name: String – the name of the currency, localized to the language
  2. amount : Number – Current amount of the currency at index
  3. texture: Number – The textureID of the currency’s icon.
  4. earnedThisWeek: Number – The amount of the currency earned this week
  5. weeklyMax: Number – Maximum amount of currency possible to be earned this week
  6. totalMax: Number – Total maximum currency possible to stockpile
  7. isDiscovered: Boolean – Whether the character has ever got some of this currency
  8. rarity: Integer – Rarity indicator for this currency
  9. categoryID: Number – The currency’s corresponding categoryID
  10. categoryName: String – The currency’s corresponding category name
  11. currencyDesc: String – The currency’s description

The 1st to 8th return values will be retrieved by calling GetCurrencyInfo() within this function. If you don’t need the 9th ~ 11th values, then it’s up to you to use either GetCurrencyInfo() or lib:GetCurrencyByID().

 

lib:GetCurrencyByCategoryID(categoryID)

Arguments

  • categoryID: Integer – ID of currency’s category

Returns

  • currencyArray: Table – returns the table array for the specified currency category. The array contains the currency IDs belong to this category.

 

lib:GetCurrencyTokenStrings(currencyID, lang)

Arguments

  • currencyID: Integer – ID of the currency to retrieve
  • lang (optional): String – language code which the language you would like to retrieve. If nil, then player’s game client language will be used.
    The valid input is specified below:
    • enUS
    • deDE
    • esES
    • esMX
    • frFR
    • itIT
    • koKR
    • ptBR
    • ruRU
    • zhCN
    • zhTW

Returns

  • tooltipText: String – this will return a string with combination of currency name, currency description, and the gained amount of this currency.
    This is mainly to be used in GameToolTip. The format will be something like below:
    Legionfall War Supplies
    Use to further the construction of valuable structures on the Broken Shore.

    Total Cap: 100/1,000

Data

The currency data is set to global so if you would need some further specific need, then you can create your customized codes by accessing the library data.

lib.data.CurrencyByCategory

Array key is categoryID, array value is the currency IDs belong to this category.

For example:

	[1] = { -- Miscellaneous
		81, -- Epicurean's Award
		402, -- Ironpaw Token
		515, -- Darkmoon Prize Ticket
		1379, -- Trial of Style Token
	},

 

lib.data.CurrencyCategories

Stores the currency category’s display names, in all languages. For example:

[1] = { <br />&nbsp; enUS="Miscellaneous",<br />&nbsp; deDE="Verschiedenes",<br />&nbsp; esES="Miscel&aacute;nea",<br />&nbsp; esMX="Miscel&aacute;nea",<br />&nbsp; frFR="Divers",<br />&nbsp; itIT="Varie",<br />&nbsp; koKR="기타",<br />&nbsp; ptBR="Diversos",<br />&nbsp; ruRU="Разное",<br />&nbsp; zhCN="其它",<br />&nbsp; zhTW="雜項" <br />},

 

lib.data.Currencies

Stores all the currencies’ ID, categoryID, and a flag of hide set to true if this specific currency is inactive or not to be displayed in player’s game client.

Some examples:

[1] = { id=1, category=1, hide=true }, -- Currency Token Test Token 4, Miscellaneous
[2] = { id=2, category=1, hide=true }, -- Currency Token Test Token 2, Miscellaneous
[4] = { id=4, category=1, hide=true }, -- Currency Token Test Token 5, Miscellaneous
[22] = { id=22, category=41, hide=true }, -- Birmingham Test Item 3, Test
[42] = { id=42, category=1, hide=true }, -- Badge of Justice, Miscellaneous
[61] = { id=61, category=21 }, -- Dalaran Jewelcrafter's Token, Wrath of the Lich King
[81] = { id=81, category=1 }, -- Epicurean's Award, Miscellaneous

 

lib.data.CurrencyDesc

This is where we stored the currencies’ description. This is useful when we want to retrieve this information unless WoW release any API to fulfill this need.

Table example:

[61] = { <br />&nbsp; enUS="Tiffany Cartier's shop in Dalaran will gladly accept these tokens for unique jewelcrafting recipes.", <br />&nbsp; deDE="Tiffany Cartiers Gesch&auml;ft in Dalaran wird diese Symbole im Tausch gegen einzigartige Juweliersrezepte dankend annehmen.", <br />&nbsp; esES="La tienda de Tiffany Cartier en Dalaran cambiar&aacute; gustosamente estos talismanes por recetas de joyer&iacute;a.", <br />&nbsp; esMX="La tienda de Tiffany Cartier en Dalaran cambiar&aacute; gustosamente estos talismanes por recetas de joyer&iacute;a.", <br />&nbsp; frFR="La boutique de Tiffany Kartier, &agrave; Dalaran, accepte avec joie ces marques contre des dessins de joaillerie uniques.", <br />&nbsp; itIT="Il negozio di Tiffany Cartier a Dalaran accetter&agrave; volentieri questi emblemi in cambio di esclusivi modelli da orefice.", <br />&nbsp; koKR="달라란에 있는 티파니 까르티엘의 가게에서 보석세공 디자인으로 교환하는 데 사용합니다.", <br />&nbsp; ptBR="A loja Sojoia Kara em Dalaran aceita de bom grado essas fichas por instru&ccedil;&otilde;es de joalheria raras.", <br />&nbsp; ruRU="В магазине Тиффани Картье, что в Даларане, вам с радостью обменяют эти знаки на уникальные ювелирные эскизы.", <br />&nbsp; zhCN="达拉然的蒂凡妮&middot;卡蒂亚会欣然接受这些代币,并用稀有的珠宝加工图鉴来交换。", <br />&nbsp; zhTW="蒂芬妮&middot;卡地亞位於達拉然的商店相當願意用獨特的珠寶設計圖來交換這些徽章。" <br />},

 

Comments

Add a comment