WoW LibCurrencyInfo addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon LibCurrencyInfo

LibCurrencyInfo

Game Version: 10.0.5 +3
Total Downloads: 23,315
Updated: Feb 5, 2023
Created: Jul 25, 2017
download LibCurrencyInfoDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
v1.39 +1 More release 25.45 KB Feb 5, 2023 10.0.5 +3 265 download LibCurrencyInfo v1.39
+1 More releaseDownload
v1.38 +1 More release 25.42 KB Feb 4, 2023 10.0.5 +3 55 download LibCurrencyInfo v1.38
+1 More releaseDownload
v1.37 +1 More release 24.02 KB Nov 29, 2022 10.0.2 +3 491 download LibCurrencyInfo v1.37
+1 More releaseDownload
v1.36 +1 More release 23.50 KB Nov 19, 2022 10.0.2 +3 168 download LibCurrencyInfo v1.36
+1 More releaseDownload
v1.35 +1 More release 23.49 KB Nov 3, 2022 10.0.0 +3 180 download LibCurrencyInfo v1.35
+1 More releaseDownload
v1.34 +1 More release 23.48 KB Nov 3, 2022 10.0.0 +3 18 download LibCurrencyInfo v1.34
+1 More releaseDownload
v1.33 +1 More release 21.71 KB Aug 17, 2022 9.2.7 +2 208 download LibCurrencyInfo v1.33
+1 More releaseDownload
v1.32 +1 More release 21.24 KB Jul 17, 2022 9.2.5 +2 159 download LibCurrencyInfo v1.32
+1 More releaseDownload
v1.31 +1 More release 21.24 KB Jul 17, 2022 9.2.5 +2 101 download LibCurrencyInfo v1.31
+1 More releaseDownload
v1.30 +1 More release 21.23 KB Jul 17, 2022 9.2.5 +2 119 download LibCurrencyInfo v1.30
+1 More releaseDownload
v1.29 +1 More release 19.29 KB Mar 1, 2022 9.2.0 238 download LibCurrencyInfo v1.29
+1 More releaseDownload
v1.28 +1 More release 19.24 KB Mar 1, 2022 9.2.0 +2 139 download LibCurrencyInfo v1.28
+1 More releaseDownload
v1.27 +1 More release 18.83 KB Feb 23, 2022 9.2.0 +2 167 download LibCurrencyInfo v1.27
+1 More releaseDownload
v1.26 +1 More release 18.83 KB Feb 9, 2022 1.14.2 +2 172 download LibCurrencyInfo v1.26
+1 More releaseDownload
v1.25 +1 More release 17.95 KB Feb 2, 2022 9.1.5 125 download LibCurrencyInfo v1.25
+1 More releaseDownload
v1.24 +1 More release 17.82 KB Jun 29, 2021 9.1.0 231 download LibCurrencyInfo v1.24
+1 More releaseDownload
v1.23 +1 More release 17.79 KB Jun 28, 2021 9.1.0 129 download LibCurrencyInfo v1.23
+1 More releaseDownload
v1.22 +1 More release 17.23 KB May 19, 2021 9.0.5 194 download LibCurrencyInfo v1.22
+1 More releaseDownload
v1.21 +1 More release 16.07 KB May 18, 2021 9.0.5 170 download LibCurrencyInfo v1.21
+1 More releaseDownload
v1.18 +1 More release 15.12 KB Nov 22, 2020 9.0.2 7,472 download LibCurrencyInfo v1.18
+1 More releaseDownload
v1.17 +1 More release 15.06 KB Oct 20, 2020 9.0.1 306 download LibCurrencyInfo v1.17
+1 More releaseDownload
v1.16 +1 More release 14.66 KB Oct 18, 2020 9.0.1 472 download LibCurrencyInfo v1.16
+1 More releaseDownload
v1.15 +1 More release 14.43 KB Jun 28, 2020 8.3.0 1,383 download LibCurrencyInfo v1.15
+1 More releaseDownload
v1.14 +1 More release 14.04 KB Jan 19, 2020 8.3.0 255 download LibCurrencyInfo v1.14
+1 More releaseDownload
v1.13 +1 More release 14.00 KB Jan 16, 2020 8.3.0 136 download LibCurrencyInfo v1.13
+1 More releaseDownload
v1.12 +1 More release 13.89 KB Jan 7, 2020 8.2.5 171 download LibCurrencyInfo v1.12
+1 More releaseDownload
v1.11 +1 More release 13.88 KB Jan 7, 2020 8.2.5 70 download LibCurrencyInfo v1.11
+1 More releaseDownload
v1.10 +1 More release 13.83 KB Sep 2, 2019 8.2.0 171 download LibCurrencyInfo v1.10
+1 More releaseDownload
v1.09 +1 More release 13.38 KB Dec 17, 2018 8.1.0 300 download LibCurrencyInfo v1.09
+1 More releaseDownload
v1.08 +1 More release 13.26 KB Sep 4, 2018 8.0.1 268 download LibCurrencyInfo v1.08
+1 More releaseDownload
v1.07 +1 More release 13.20 KB Aug 11, 2018 8.0.1 222 download LibCurrencyInfo v1.07
+1 More releaseDownload
v1.06 +1 More release 42.97 KB Jul 25, 2018 8.0.1 188 download LibCurrencyInfo v1.06
+1 More releaseDownload
v1.05 +1 More release 42.89 KB Apr 25, 2018 7.3.5 259 download LibCurrencyInfo v1.05
+1 More releaseDownload
v1.04 +1 More release 41.42 KB Mar 28, 2018 7.3.5 158 download LibCurrencyInfo v1.04
+1 More releaseDownload
v1.03 +1 More release 41.40 KB Jan 22, 2018 7.3.5 224 download LibCurrencyInfo v1.03
+1 More releaseDownload
v1.02 +1 More release 40.37 KB Aug 29, 2017 7.3.0 230 download LibCurrencyInfo v1.02
+1 More releaseDownload
v1.01 +1 More release 40.35 KB Jul 26, 2017 7.2.5 144 download LibCurrencyInfo v1.01
+1 More releaseDownload
v1.00 +1 More release 40.28 KB Jul 25, 2017 7.2.5 202 download LibCurrencyInfo v1.00
+1 More releaseDownload
r79-alpha +1 More alpha 25.45 KB Feb 5, 2023 10.0.5 +3 5 download LibCurrencyInfo r79-alpha
+1 More alphaDownload
r77-alpha +1 More alpha 25.42 KB Feb 4, 2023 10.0.5 +3 8 download LibCurrencyInfo r77-alpha
+1 More alphaDownload
r75-alpha +1 More alpha 24.02 KB Nov 29, 2022 10.0.2 +3 10 download LibCurrencyInfo r75-alpha
+1 More alphaDownload
r73-alpha +1 More alpha 23.50 KB Nov 19, 2022 10.0.2 +3 7 download LibCurrencyInfo r73-alpha
+1 More alphaDownload
r71-alpha +1 More alpha 23.49 KB Nov 3, 2022 10.0.0 +3 10 download LibCurrencyInfo r71-alpha
+1 More alphaDownload
r69-alpha +1 More alpha 23.48 KB Nov 3, 2022 10.0.0 +3 9 download LibCurrencyInfo r69-alpha
+1 More alphaDownload
r67-alpha +1 More alpha 21.71 KB Aug 17, 2022 9.2.7 11 download LibCurrencyInfo r67-alpha
+1 More alphaDownload
r65-alpha +1 More alpha 21.24 KB Jul 17, 2022 9.2.5 86 download LibCurrencyInfo r65-alpha
+1 More alphaDownload
r63-alpha +1 More alpha 21.24 KB Jul 17, 2022 9.2.5 66 download LibCurrencyInfo r63-alpha
+1 More alphaDownload
r61-alpha +1 More alpha 21.23 KB Jul 17, 2022 9.2.5 106 download LibCurrencyInfo r61-alpha
+1 More alphaDownload
r59-alpha +1 More alpha 19.29 KB Mar 1, 2022 9.2.0 82 download LibCurrencyInfo r59-alpha
+1 More alphaDownload
r57-alpha +1 More alpha 19.24 KB Mar 1, 2022 9.2.0 77 download LibCurrencyInfo r57-alpha
+1 More alphaDownload
r55-alpha +1 More alpha 18.83 KB Feb 23, 2022 9.2.0 95 download LibCurrencyInfo r55-alpha
+1 More alphaDownload
r53-alpha +1 More alpha 18.83 KB Feb 9, 2022 9.1.5 130 download LibCurrencyInfo r53-alpha
+1 More alphaDownload
r52-alpha +1 More alpha 18.82 KB Feb 9, 2022 9.1.5 59 download LibCurrencyInfo r52-alpha
+1 More alphaDownload
r50-alpha +1 More alpha 17.95 KB Feb 2, 2022 9.1.5 414 download LibCurrencyInfo r50-alpha
+1 More alphaDownload
r48-alpha +1 More alpha 17.82 KB Jun 29, 2021 9.1.0 54 download LibCurrencyInfo r48-alpha
+1 More alphaDownload
r46-alpha +1 More alpha 17.79 KB Jun 28, 2021 9.1.0 101 download LibCurrencyInfo r46-alpha
+1 More alphaDownload
r44-alpha +1 More alpha 15.12 KB Nov 22, 2020 9.0.2 97 download LibCurrencyInfo r44-alpha
+1 More alphaDownload
r42-alpha +1 More alpha 15.06 KB Oct 20, 2020 9.0.1 163 download LibCurrencyInfo r42-alpha
+1 More alphaDownload
r40-alpha +1 More alpha 14.66 KB Oct 18, 2020 9.0.1 189 download LibCurrencyInfo r40-alpha
+1 More alphaDownload
r39-alpha +1 More alpha 14.68 KB Aug 16, 2020 8.3.0 164 download LibCurrencyInfo r39-alpha
+1 More alphaDownload
r37-alpha +1 More alpha 14.43 KB Jun 28, 2020 8.3.0 179 download LibCurrencyInfo r37-alpha
+1 More alphaDownload
r36-alpha +1 More alpha 14.39 KB Jun 28, 2020 8.3.0 95 download LibCurrencyInfo r36-alpha
+1 More alphaDownload
r34-alpha +1 More alpha 14.04 KB Jan 19, 2020 8.3.0 84 download LibCurrencyInfo r34-alpha
+1 More alphaDownload
r32-alpha +1 More alpha 14.00 KB Jan 16, 2020 8.3.0 94 download LibCurrencyInfo r32-alpha
+1 More alphaDownload
r30-alpha +1 More alpha 13.89 KB Jan 7, 2020 8.2.5 143 download LibCurrencyInfo r30-alpha
+1 More alphaDownload
r28-alpha +1 More alpha 13.88 KB Jan 7, 2020 8.2.5 127 download LibCurrencyInfo r28-alpha
+1 More alphaDownload
r26-alpha +1 More alpha 13.83 KB Sep 2, 2019 8.2.0 113 download LibCurrencyInfo r26-alpha
+1 More alphaDownload
r24-alpha +1 More alpha 13.38 KB Dec 17, 2018 8.1.0 144 download LibCurrencyInfo r24-alpha
+1 More alphaDownload
r22-alpha +1 More alpha 13.26 KB Sep 4, 2018 8.0.1 153 download LibCurrencyInfo r22-alpha
+1 More alphaDownload
r20-alpha +1 More alpha 13.20 KB Aug 11, 2018 8.0.1 73 download LibCurrencyInfo r20-alpha
+1 More alphaDownload
r18-alpha +1 More alpha 42.97 KB Jul 25, 2018 8.0.1 125 download LibCurrencyInfo r18-alpha
+1 More alphaDownload
r16-alpha +1 More alpha 42.89 KB Apr 25, 2018 7.3.5 78 download LibCurrencyInfo r16-alpha
+1 More alphaDownload
r15-alpha +1 More alpha 41.47 KB Apr 12, 2018 7.3.5 123 download LibCurrencyInfo r15-alpha
+1 More alphaDownload
r14-alpha +1 More alpha 41.41 KB Apr 12, 2018 7.3.5 123 download LibCurrencyInfo r14-alpha
+1 More alphaDownload
r12-alpha +1 More alpha 41.42 KB Mar 28, 2018 7.3.5 95 download LibCurrencyInfo r12-alpha
+1 More alphaDownload
r10-alpha +1 More alpha 41.40 KB Jan 22, 2018 7.3.5 144 download LibCurrencyInfo r10-alpha
+1 More alphaDownload
r9-alpha +1 More alpha 40.88 KB Jan 22, 2018 7.3.5 109 download LibCurrencyInfo r9-alpha
+1 More alphaDownload
r7-alpha +1 More alpha 40.37 KB Aug 29, 2017 7.3.0 169 download LibCurrencyInfo r7-alpha
+1 More alphaDownload
r5-alpha +1 More alpha 40.35 KB Jul 26, 2017 7.2.5 125 download LibCurrencyInfo r5-alpha
+1 More alphaDownload
r4-alpha +1 More alpha 40.34 KB Jul 26, 2017 7.2.5 129 download LibCurrencyInfo r4-alpha
+1 More alphaDownload
r2-alpha +1 More alpha 40.28 KB Jul 25, 2017 7.2.5 186 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