Jump to content


Photo

Getting skins from the trade

node.js node-steam-tradeoffer-manager

  • Please log in to reply
1 reply to this topic

#1 Zorenko

Zorenko

    Member

  • Member
  • PipPip
  • 13 posts

Posted 20 April 2019 - 09:16 AM

How to get all the skins of their exchange, then to create an exchange with the same skins?

			let offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=149081977&token=Cb2UfEHh");
			offer.addMyItems(???????????);
			offer.send(function(err, status) 


#2 SnaBe

SnaBe

    Advanced Member

  • Member
  • PipPipPip
  • 31 posts
  • LocationDenmark

Posted 21 April 2019 - 11:41 AM

You could create a loop that goes trough you and your partners inventory, if it finds any items that both users own, add them to an array.

 

The array of items can then be parsed to offer.addMyItems(); & offer.addTheirItems();


"Truth can only be found in one place: the code." - Robert C. Martin






Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users