maraya Posted April 4, 2017 Report Posted April 4, 2017 What is DIfferent of receivedOfferChanged and sentOfferChanged? when i used this functionmanager.on('sentOfferChanged', function(offer, oldState) {if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) {......}} and when i send item [a,b,c,d] and when bot is accept name of item bot receive is random like this. [b,c,a,d] when i used this functionmanager.on('receivedOfferChanged ', function(offer, oldState) {if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) {......}} and when i send item [a,b,c,d] and when bot is accept name of item bot receive is random like this. [[a,b,c,d] Quote
Dr. McKay Posted April 4, 2017 Report Posted April 4, 2017 One is emitted when offers you sent change, and the other is emitted when offers you received change. Quote
maraya Posted April 4, 2017 Author Report Posted April 4, 2017 why, if i send item from steam site to my bot, the bot use this function -> manager.on('receivedOfferChanged ', function(offer, oldState) {if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) {......}} and when i send from my website to bot, the bot use this function ->manager.on('sentOfferChanged', function(offer, oldState) {if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) {......}} i think both is send.and why the bot use different function? Quote
Dr. McKay Posted April 4, 2017 Report Posted April 4, 2017 One is emitted when offers you sent change, and the other is emitted when offers you received change. It's because that's the way it is. Quote
maraya Posted April 4, 2017 Author Report Posted April 4, 2017 (edited) can u help me to fix this.when i send item to bot with multi item and price, like this.item1 is $1, item2 is $2, item3 is $3.and the bot know where is item the price is $1, $2 and $3. is there any other way to solved it? Edited April 4, 2017 by maraya Quote
Dr. McKay Posted April 4, 2017 Report Posted April 4, 2017 https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getexchangedetailsgetdetailsiffailed-callback 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.