Op1x3r Posted August 5, 2020 Report Posted August 5, 2020 (edited) Hello, Do assetIDs change while the item is in your inventory? (Without trading it to anyone) Edited August 5, 2020 by Op1x3r Clarify. Quote
Op1x3r Posted August 5, 2020 Author Report Posted August 5, 2020 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? Quote
Dr. McKay Posted August 5, 2020 Report Posted August 5, 2020 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. CUTONI8 and vrtgn 2 Quote
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.