Jump to content
McKay Development

Recommended Posts

Posted

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? 

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...