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
 Share

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

Code:
-- 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)

   end

 end

end

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

Code:
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 ??

EDIT:

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

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

Code:

local myrrhId = avatar.GetCurrencyId( "myrrh" )

if myrrhId then

  local info = avatar.GetCurrencyInfo( myrrhId )

  if info then

    local currentValue = info.value

  end

end

Link to comment
Share on other sites

I repeat this

Code:
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

Quote:
mount.GetStableInfo()

...

-- Returned values-

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

...

foodCount: number (integer) - Available quantity of meal

...

xfLfiCwc0uFD5mj.jpg
Link to comment
Share on other sites

  • 2 months later...
Guest
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.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use