Guest neFAST Posted October 6, 2010 Share Posted October 6, 2010 Hello, I would like to display remaining food for mount, but this currency has no ID. I ran that code to discover it Code: -- testlocal 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 = 14Info: 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 Quote Link to comment Share on other sites More sharing options...
Nikon Posted October 6, 2010 Share Posted October 6, 2010 I repeat this Code: sysName = myrrh, value = 2099sysName = 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 ... Quote Link to comment Share on other sites More sharing options...
Guest neFAST Posted October 6, 2010 Share Posted October 6, 2010 My question was not clear. I edited the first post. Quote Link to comment Share on other sites More sharing options...
Nikon Posted October 6, 2010 Share Posted October 6, 2010 Too has corrected the post Quote Link to comment Share on other sites More sharing options...
Guest neFAST Posted October 6, 2010 Share Posted October 6, 2010 Thanks ! Quote Link to comment Share on other sites More sharing options...
Guest neFAST Posted December 16, 2010 Share Posted December 16, 2010 Something changed with GetCurrencyId() on v 1.0.04 ? Quote Link to comment Share on other sites More sharing options...
SLA Posted December 19, 2010 Share Posted December 19, 2010 According to API 2.0.00, looks like no, no changes. We don't have an API for 1.1.04 (game devs forgot to update it in 1.1.04), but you can try using functions from both API 1.1.03 and API 2.0.00. You will find all APIs in API-1102-2001.7z file, which can be downloaded here: HOW-TO: Compatibility with EU/US versions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts