interbots Posted July 20 Report Share Posted July 20 (edited) tradeOfferManager.on('newOffer', (offer) => { if (offer.itemsToGive.length == 0){ offer.itemsToReceive.forEach(EconItem => { console.log(EconItem.market_hash_name) }); // offer.accept(false , (err , status)=>{ // console.log(status); // }) } }); Printing undefined each time.I noticed on the wiki it said CEconItem was the same as EconItem Edited July 20 by interbots Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 20 Report Share Posted July 20 It's possible that the items in question don't have market_hash_names. Quote Link to comment Share on other sites More sharing options...
interbots Posted July 20 Author Report Share Posted July 20 I've sent csgo cases , skins and graffities to the bot and none seem to have the market hash name.. Quote Link to comment Share on other sites More sharing options...
interbots Posted July 20 Author Report Share Posted July 20 I fixed it by getting the users invetory using node steamcommunity and comparing the offer item ids with the inventory ids.I recommend you update the wiki since it might confuse other people too Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 21 Report Share Posted July 21 It's on the wiki. You need to specify a language. interbots 1 Quote Link to comment Share on other sites More sharing options...
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.