|
|
so im looking at the new character talent output in the api .. and unless this changes but is there a field for specialization?
|
|
It's there. You can find it between glyphs and talents. You can see it here in this structure page:
http://www.defiantguild.net/character_talents.cfm |
That is a cute display pic, whatever it is supposed to be. |
'Tis a Zergling :) |
|
Edited by Vester on 8/29/12 1:47 PM (PDT)
An example of the spec field from the API:
[spec] => Array When I output the icon using the standard icon paths I have, I get a file not found. Has the path for spec icons changed? Answered my own question. Do not use backgroundImage field when looking for icon, use icon field. /facepalm. |
|
|
its a standard spell icon now
URLhttp://us.media.blizzard.com/wow/icons/36/ability_racial_bearform.jpg |
|
|
i use the background images :) my talents look fancy lol
|
Is this the intended behavior for people who have not chosen their talents yet? "talents":[null],Shouldn't it be: "talents":[]
|
|
Web & Mobile Team
|
It will be when their profile is updated to not be a 4.3.4 profile (When they log out of the game). |
#10
8/29/2012
|
|
|
i dont know what blizzard is using but i got mine from the game files
|
|
I think it just me, but how can i distinguish between the two specs names on a guild roster? Like for instance i can pull the primary spec name easily but not the secondary spec name?
code: $primary = $p['character']['spec']['name'];
|
|
Web & Mobile Team
|
I think it just me, but how can i distinguish between the two specs names on a guild roster? Like for instance i can pull the primary spec name easily but not the secondary spec name? The guild roster does not contain the secondary spec. |
#15
8/31/2012
|
|
Peratryn,
First off, I would like to thank you for taking your time and responding to my post. I think you misunderstood what I'm talking about, but let me try to clarify it. I'm making a guild roster with PHP and the only spec I'm able to pull from the character talents api is the primary or "selected" spec. Say for instance i'm a Death Knight and I have Blood spec and Frost spec, what I'm trying to do is pull those two names from the URL below on to my guild roster and display those names on my PHP page to the viewer. http://us.battle.net/api/wow/character/whisperwind/Lucyifer?fields=talents Hope this helps, Thanks Kneep |
|
|
Talent info allways is displayed primary then secondary in the api as it looks.. but i allways use there active spck as the one i display this is my code
$a is your character array with talent info foreach ($a['talents'] as $build => $spec)
|
|
Web & Mobile Team
|
As Ulminia already stated, you just have to look at the two talent groups listed, same as in the old api.
Here is the data from your provided url, with all non-relevant fields removed for now: talents: [The talent block that includes the "selected: true" field is the one currently active, and the other is not. Right now the two talent groups correspond directly with the primary and secondary specs in game. |
#18
9/4/2012
|
