spock Posted April 8, 2016 Report Posted April 8, 2016 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? Quote
Mole Posted April 8, 2016 Report Posted April 8, 2016 Come on, do some research on your own https://github.com/DoctorMcKay/node-steamid#getsteamid64 offer.partner.getSteamID64(); Quote
Recommended Posts
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.