Jump to content
McKay Development

getting the steam id from offer.partner


Recommended Posts

offers.on('sentOfferChanged', function(offer, oldState) {
		logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state));
		if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) {
			offer.getReceivedItems(function(err, items) {
				if (err) {
					console.log("Couldn't get received items: " + err);
				} else {
					var names = items.map(function(item) {
						return item.name;
					});

					console.log("Received: " + names.join(', '));



				}
			});
		}
	});

I'm trying to get the steam id from the partner object but the steamId object only contains 4 properties.

 

partner: SteamID { universe: 1, type: 1, instance: 1, accountid: xxx },

 

Is there a way to get the steamId from this?

 

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