Jump to content
McKay Development

Recommended Posts

Posted

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! :)

Posted
8 minutes ago, Dr. McKay said:

You need to keep track of the asset IDs of items you already have offers out for, and filter them out of your inventory when you're sending additional offers.

I only thought to keep their position... Thanks Dr. McKay

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