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

New program for writers

We turn from quantity to quality and tell you how we will supplement the Allods Team program with rewards in rubles.


The new Updater

Let us to introduce the new addon updater software and to share the details

Read more

Alloder 2.0

We have started the process of project evolve, and this relates not only, and not even primarily of the site's view

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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