16austin16 Posted May 29, 2016 Report Posted May 29, 2016 So im trying to make a withdraw system on my site and i found out assetids change after the trade. So how can i get the new one to store in a database? Quote
Dr. McKay Posted May 29, 2016 Report Posted May 29, 2016 Use offer.getReceivedItems, which will contain the new asset IDs of those items. Quote
elixir Posted June 3, 2016 Report Posted June 3, 2016 Use offer.getReceivedItems, which will contain the new asset IDs of those items.I currently work on the same thing and there is one problem I don't know how to solve. I have two bots between which I move my items. The info about items and their locations (account name) is stored in database and after trade I want to update item's assetid and location in database. The problem is that I don't know how to map the objects returned by offer.getReceivedItems with old assetid's. I thought about mapping by market_hash_name of old and new items, but I'm not sure it's proper way because some items' prices depend on their visual charecteristics. For example, in CS:GO there can be two items with equal market_hash_name, but with different prices because of the different pattern position. That's why I'm worried about real mapping of the received items with sent items. Do you think there is any way of real mapping? Quote
Dr. McKay Posted June 3, 2016 Report Posted June 3, 2016 Do you think there is any way of real mapping? Unfortunately there isn't. You'll need to just avoid moving two items which might get mixed up inside of one trade. Quote
elixir Posted June 3, 2016 Report Posted June 3, 2016 Unfortunately there isn't. You'll need to just avoid moving two items which might get mixed up inside of one trade.I think there's a way to do it for CS:GO items. As I know (my friend told me), image is generated for each asset personally. So I think we can compare the images and if there's 100% match we can be sure that item's with different prices doesn't mix up. Quote
Dr. McKay Posted June 3, 2016 Report Posted June 3, 2016 No, images for two items with identical classid/instanceid pairs (which is not uncommon) will be identical. Plus I believe it can change from time to time unpredictably. 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.