Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

How do I access certain currency values

Guest neFAST

Recommended Posts

Guest neFAST

Hello, I would like to display remaining food for mount, but this currency has no ID.

I ran that code to discover it

-- test

local ids = avatar.GetCurrencies()

if ids then

 for i = 0, 10 do

  local info = avatar.GetCurrencyInfo( ids     )

  if info then

    LogInfo( "sysName = " .. info.sysName .. ", value = " .. info.value)




and got this (mount feed is the first value = 14 :

Info: addon DeathinSurance: sysName = , value = 14

Info: addon DeathinSurance: sysName = world_chat, value = 0

Info: addon DeathinSurance: sysName = , value = 1

Info: addon DeathinSurance: sysName = RubyCallOption, value = 1

Info: addon DeathinSurance: sysName = TalentPoint, value = 41

Info: addon DeathinSurance: sysName = Ruby, value = 34

Info: addon DeathinSurance: sysName = myrrh, value = 1770

Info: addon DeathinSurance: sysName = SkillSlot, value = 2

Info: addon DeathinSurance: sysName = zone_chat_special, value = 7

So what should I do ??


This is how I retrieve myrra, I use the keyword "myrrh".

My problem : I need keyword for mount food, but this keyword is empty.


local myrrhId = avatar.GetCurrencyId( "myrrh" )

if myrrhId then

  local info = avatar.GetCurrencyInfo( myrrhId )

  if info then

    local currentValue = info.value



Link to comment
Share on other sites

I repeat this

sysName = myrrh, value = 2099

sysName = world_chat, value = 0

sysName = SkillSlot, value = 1

sysName = , value = 3

sysName = TalentPoint, value = 1

sysName = Ruby, value = 0

sysName = zone_chat_special, value = 0

On a screenshot - a stall



-- Returned values-

table or nil - If there is a stable, the table with fields:


foodCount: number (integer) - Available quantity of meal


Link to comment
Share on other sites

  • 2 months later...
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using our site you agree to the Terms of Use