dixianren Posted September 7, 2020 Report Posted September 7, 2020 hi,dear doc,i‘m so sorry to trouble you,but I'm really confused,. When i use node-steam-tradeoffer-manager ,it work well for accepted and confirmed new offer,but sometimes it seemed not accepted or confirmed some offer,so always have 1~2 offer left and it not manage this old offer again ,how i can do for this ?I used the same code as the example. Quote
Dr. McKay Posted September 8, 2020 Report Posted September 8, 2020 You can use the offerList event to see if any old offers are still active. Quote
dixianren Posted September 9, 2020 Author Report Posted September 9, 2020 (edited) 17 hours ago, Dr. McKay said: 您可以使用offerList事件来查看是否有任何旧的报价仍处于活动状态。 how i can let node-steam-tradeoffer-manager accept and comfirm them agin?have any example?sorry i have so many noob question Edited September 9, 2020 by dixianren Quote
dixianren Posted September 18, 2020 Author Report Posted September 18, 2020 On 2020/9/8 at PM4点42分, Dr. McKay said: 您可以使用offerList事件来查看是否有任何旧的报价仍处于活动状态。 hi,doc,when i use offlist ,set filter is EOfferFilter.ActiveOnly but there have some historical offers present in the output.how i can only get the active offer? Quote
Dr. McKay Posted September 18, 2020 Report Posted September 18, 2020 Just filter the list to only active offers. Quote
dixianren Posted September 18, 2020 Author Report Posted September 18, 2020 1 hour ago, Dr. McKay said: Just filter the list to only active offers. I'm sorry,i'm so noob,how to filter the list to only active offers?the EOfferFilter only have three of the following "ActiveOnly": 1, "HistoricalOnly": 2, "All": 3 Quote
Dr. McKay Posted September 18, 2020 Report Posted September 18, 2020 received = received.filter(offer => offer.state == TradeOfferManager.ETradeOfferState.Active) Quote
dixianren Posted September 29, 2020 Author Report Posted September 29, 2020 Ty,Doc,i use manager.on('offerList', function(filter, sent, received) and it work well,but it polling and work per 30s, how i can let it delay more time?i set delay(settimeout) in it,but not useful. 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.