Jump to content
McKay Development

Getting Item Details from CSGO Casket Items


Testnet

Recommended Posts

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"));
      });
    }
  }

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...