item stat names

89 Human Warrior
0
Hello,

For the item json data, is there an api to look up the stat names (localized) by id? In the bonusStats array each stat has "stat": 4. I'm currently going through and building up data structures manually, but wanted to know if there was some way to look this up, especially for all of the locales supported. Thanks love the api!

For example: http://us.battle.net/api/wow/item/90507

snippet:

"bonusStats": [
{
"amount": 752,
"stat": 4
},
{
"amount": 1047,
"stat": 14
},
{
"amount": 523,
"stat": 31
},
{
"amount": 1642,
"stat": 7
}
],
Reply Quote
90 Night Elf Hunter
11770
we have had a cuple posts on this... here is my list


$lang['apiitem']['itemstat'] = array(
'1' => '+%s Health',
'2' => '+%s Mana',
'3' => '+%s Agility',
'4' => '+%s Strength',
'5' => '+%s Intellect',
'6' => '+%s Spirit',
'7' => '+%s Stamina',
'46' => 'Equip: Restores %s health per 5 sec.',
'44' => '+%s Armor Penetration',
'38' => '+%s Attack Power',
'15' => '+%s Shield Block',
'48' => 'the block value of your shield by %s.',
'19' => '+%s Melee Critical strike',
'20' => '+%s Ranged Critical strike',
'32' => '+%s Critical Strike',
'21' => '+%s Spell Critical strike',
'25' => '+%s Melee Critical avoidance',
'26' => '+%s Ranged Critical avoidance',
'34' => '+%s Critical Avoidance',
'27' => '+%s Spell critical avoidance',
//ITEM_MOD_DAMAGE_PER_SECOND_SHORT => 'Damage Per Second',
'12' => '+%s Defense',
'13' => '+%s Dodge',
'37' => '+%s Expertise',
'40' => 'attack power by %s in Cat, Bear, Dire Bear, and Moonkin forms only.',
'28' => '+%s Melee Haste',
'29' => '+%s Ranged Haste',
'36' => '+%s Haste',
'30' => '+%s Spell Haste',
'16' => '+%s Melee Hit',
'17' => '+%s Ranged Hit',
'31' => '+%s Hit',
'18' => '+%s Spell Hit',
'22' => '+%s Melee Hit Avoidance',
'23' => '+%s Ranged Hit Avoidance',
'33' => '+%s Hit Avoidance',
'24' => '+%s Spell Hit Avoidance',
'43' => 'Equip: Restores %s mana per 5 sec.',
'49' => '+%s Mastery',
'14' => '+%s Parry',
'39' => '+%s Ranged Attack Power',
'35' => '+%s PvP Resilience',
'57' => '+%s PvP Power',
'41' => 'damage done by magical spells and effects by up to %s.',
'42' => 'healing done by magical spells and effects by up to %s.',
'47' => '+%s Spell Penetration',
'45' => '+%s Spell Power'
);

where %s is where the amount of the stat goes
Reply Quote
89 Human Warrior
0
Thanks Ulminia. I should have mentioned that I definitely saw your list. Your list is what I started with for my in memory NSDictionary.

I've just been discovering some that were not in your list, for example stat id = 50 (still not sure what that one is)

I was hoping there was an official way to get the name so I can support all of the available localizations. I might just have to get the english version and then have them translated.

Thanks.
Reply Quote
90 Night Elf Hunter
11770
id like t5he item id for that one ... then i can find out lol
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]