Diablo® III

Sockets and gems

Is there any ETA of sockets/gems? Currently the only websites which are working "properly" are the ones which are fetching gems from armory html instead of API, like theasiangamer for example.
Reply Quote
Waiting for this too. It's the only thing missing for a complete item visualisation.
You could use the data from the tooltip scripts but that's just a little dirty workaround.
Reply Quote
Web & Mobile Team
The gems field should be available in all regions now:

http://us.battle.net/api/d3/data/item/CIKr_NgFEgcIBBWDsaRoHVugG9gdKRJz4B1l3mdxHe0woCgdhgJj6h05byLFIgsIARWIQgMAGAAgHjAJOFxAAEgDUBBg8gJqIQoMCAAQ6uqK1YCAgOA4EhEIABIHCAQVz122ejAJOABAAQ

"gems": [
{
"item": {
"id": "Topaz_11",
"name": "Star Topaz",
"icon": "topaz_11_demonhunter_male",
"displayColor": "white",
"tooltipParams": "item/ChEIABIHCAQVz122ejAJOABAARie97KrDw"
},
"attributesRaw": {
"Magic_Find": {
"min": 0.25,
"max": 0.25
}
},
"attributes": [
"25% Better Chance of Finding Magical Items"
]
}
]
Reply Quote
Thanks a lot guys, this is simply awesome :)
Reply Quote
Really good but now we also need the paragon levels to calculate stats from gear :(
Reply Quote
6 Blood Elf Warrior
0
I really like that the gems field has been added and it works great :).

However, I'm also interested in knowing if a piece of equipment has a socket but has no gem placed in it. It doesn't seem like there is any way to get this information with the API at its current state.

Maybe I'm overlooking something, and if I am, please point me in the direction. But if I'm not, can I expect something like this to become available any time in the future?
Reply Quote
I really like that the gems field has been added and it works great :).

However, I'm also interested in knowing if a piece of equipment has a socket but has no gem placed in it. It doesn't seem like there is any way to get this information with the API at its current state.

Maybe I'm overlooking something, and if I am, please point me in the direction. But if I'm not, can I expect something like this to become available any time in the future?


You can check for sockets, then check for the param "attributesRaw", if no value there = no gem
Reply Quote
Thanks! :D
Reply Quote
Can anyone tell me how to get the tooltipParams for gems?

Example:
I can get the max number of sockets like this
<path>->attributesRaw->Sockets->max;

I simply can't get the gems like:
<path>->gems->item->tooltipParams;

Been trying so mny things but nothing.

Anyone can show me the the light? :)
Reply Quote
I'm not sure to understand your question, but did you miss the fact that "gems" is an array and not an object ?
If I use this gems attribute of one of my items (json):
"gems": [
{
"item": {
"id": "Amethyst_19",
"name": "Flawless Royal Amethyst",
"icon": "amethyst_19_demonhunter_male",
"displayColor": "blue",
"tooltipParams": "item/ChsI1-HJ4AISBwgEFRif2KswjwI4AEABWASQAQAYz4O7wgo"
},
"attributes": {
"primary": [
{
"text": "+23% Life",
"affixType": "default",
"color": "blue"
}
],
"secondary": [],
"passive": []
},
"attributesRaw": {
"Hitpoints_Max_Percent_Bonus_Item": {
"min": 0.23,
"max": 0.23
}
}
}
]

(item)->gems[0]->item->tooltipParams is the pseudo code to use to get it.
But I'm pretty sure it's not your point ^^.
Edited by Tok#2360 on 6/30/2014 1:08 AM PDT
Reply Quote
06/30/2014 01:08 AMPosted by Tok

(item)->gems[0]->item->tooltipParams
is the pseudo code to use to get it.
But I'm pretty sure it's not your point ^^.


Exactly my point. Thanks a bunch for the heads up. Been looking at it for too long. Works like a charm now!
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]