Jump to content
McKay Development

[Question]. How to create a TradeOffer with two identical items?


Recommended Posts

Hey Dr. McKay,

The bot has several identical items in inventory. 

[{
  	market_hash_name: 'Inscribed Tormented Staff',
    pos: 1,
    // ... other fields
  }, {
  	market_hash_name: 'Inscribed Tormented Staff',
    pos: 2,
    // ... other fields
  }]


My task is to create 2 TradeOffers for different people and send one of the items.
The problem is that all requests are asynchronous.

And he creates trades offer for the same item, which is in the same bot inventory position (pos = 1).

If you accept one trade, then the second trade is no longer available. What is the best way to solve this problem?

Thank you for your attention and thank you for your work! :)

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