Testnet Posted September 7, 2022 Report Share Posted September 7, 2022 Hi there, I am currently trying to get the "market_name" or "market_hash_name" from items in a CSGO casket. It seems that inspectItem is not available in a CSGO instance, so what would be the best way to retrieve that item name? Best Quote Link to comment Share on other sites More sharing options...
Testnet Posted September 7, 2022 Author Report Share Posted September 7, 2022 So I have tried to get item details Bia inspectItem, but this does not seem to work for me.. happy for any help on how to get to a market name for (let i in csgo.inventory) { if (csgo.inventory[i].casket_contained_item_count) { csgo.getCasketContents(csgo.inventory[i].id, function (err, data) { if (err) return console.error(err); for (let i in data) { csgo.inspectItem( client.steamID, data[i].id, "730", function (err, data) { if (err) return console.error(err); console.log(data); } ); } // FS.writeFileSync(new Date().toISOString() + "_casket.json", JSON.stringify(data, null, "\t")); }); } } Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 8, 2022 Report Share Posted September 8, 2022 All of the details are already available on the objects in the data array. Quote Link to comment Share on other sites More sharing options...
Testnet Posted September 15, 2022 Author Report Share Posted September 15, 2022 But it seems that there is no market name in data for casket items? { "attribute": [ { "def_index": 272, "value": null, "value_bytes": { "type": "Buffer", "data": [ 109, 113, 17, 234 ] } }, { "def_index": 273, "value": null, "value_bytes": { "type": "Buffer", "data": [ 4, 0, 0, 0 ] } } ], "equipped_state": [], "id": "20508387521", "account_id": 118098, "inventory": 1, "def_index": 4548, "quantity": 1, "level": 1, "quality": 4, "flags": 0, "origin": 0, "custom_name": null, "custom_desc": null, "interior_item": null, "in_use": false, "style": null, "original_id": null, "rarity": 1, "position": 1, "casket_id": "21106880877" }, Or am I missing something? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 15, 2022 Report Share Posted September 15, 2022 That's correct. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.