interbots Posted July 20, 2023 Report Posted July 20, 2023 (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, 2023 by interbots Quote
Dr. McKay Posted July 20, 2023 Report Posted July 20, 2023 It's possible that the items in question don't have market_hash_names. Quote
interbots Posted July 20, 2023 Author Report Posted July 20, 2023 I've sent csgo cases , skins and graffities to the bot and none seem to have the market hash name.. Quote
interbots Posted July 20, 2023 Author Report Posted July 20, 2023 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
Dr. McKay Posted July 21, 2023 Report Posted July 21, 2023 It's on the wiki. You need to specify a language. interbots 1 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.