mardi 14 avril 2015

Steam Web API GetPlayerItems

Semi-new to programming. How can I use the results of this query:


http://ift.tt/1H64cUF


to understand the attributes of individual weapons in CS:GO.? The values I get for a players inventory look like this:



"id": 2062813155,
"original_id": 262087494,
"defindex": 7,
"level": 1,
"quality": 4,
"inventory": 93,
"quantity": 1,
"custom_name": "big blu",
"rarity": 5,
"attributes": [
{
"defindex": 6,
"value": 1110441984,
"float_value": 44
},
{
"defindex": 7,
"value": 1147016758,
"float_value": 888.3470458984375
},
{
"defindex": 8,
"value": 1039827197,
"float_value": 0.12231633812189102
},
{
"defindex": 111,
"value": "big blu"
},
{
"defindex": 147,
"value": "models/weapons/stattrack.mdl"
},
{
"defindex": 39,
"value": 0,
"float_value": 0.43999999761581421
},
{
"defindex": 40,
"value": 0,
"float_value": 0.10000000149011612
},
{
"defindex": 145,
"value": "models/weapons/w_rif_ak47_mag.mdl"
}


Qualities like the first defindex and rarity are pretty straight forward. How or where can I find the meaning of the attribute defindexs. I know that defindex:8 attribute is wear value, what do the others mean or where can I find out?


Thanks!





Aucun commentaire:

Enregistrer un commentaire