Jump to content
McKay Development

Do AssetIDs change?


Recommended Posts

        parsed_items.forEach(function (item)
        {
            offer.received_items.forEach(function (rec_item)
            {
                if(rec_item.assetid == item.assetid)
                {
                    item.assetid = rec_item.new_assetid;
                }

            });
        });

I use this code to update the AssetIDs when a trade my bot sentĀ gets it status changed to Accepted.
parsed_items contains information about items that the bot used to create the trade.
I believe that sometimes this code doesn't do it's job, because the bot can't find the item in the inventory, am I doing something wrong here?

Link to comment
Share on other sites

Assuming we're talking about Valve games and games using Steam Inventory Service (which is not all games on Steam), asset IDs change when:

  • The item is traded
  • The item is modified (e.g. painted in TF2, renamed in TF2/CSGO)
  • The item is attempted to be traded but the trade fails and is rolled back

There are probably also a few other weird cases where an asset ID changes because this is Valve we're talking about.

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...