Jump to content
McKay Development

Recommended Posts

Posted

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?

Posted

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.

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