mar71n Posted January 22, 2017 Report Posted January 22, 2017 At this point in my code, I just want to accept the offer, until its accepted for real. I'm aware that errors can happen, for example when steam is beeing slow or laggy. In this case I just wanna keep trying until the offer is either accepted or expired. offer.accept(true, function (err){ if(err){ while(offer.state!=3 || offer.state!=8){ offer.accept(); } } }); Could this work, how would it be done better? Quote
Dr. McKay Posted January 23, 2017 Report Posted January 23, 2017 That will send accept requests to Steam literally as quickly as possible, forever. So no, that won't work. Offer properties don't automatically get updated. You need to request the offer's new status from Steam if you want to know the current data. You also want to add some delays so you don't spam Steam and get banned. 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.