DanKud Posted May 2, 2016 Report Posted May 2, 2016 Prompt please a script by means of which it is possible to accept automatically empty offers (to whom I give nothing in exchange). I think a script will be very simple, but I don't understand it at all. It is necessary that the script scanned, for example time in 10 seconds, available offers and accepted them if nothing is necessary in exchange. Whether it is possible to make it by means of this bot? Two-factor authentication is, but whether it is necessary in this case for offers or only to log in? Quote
Dr. McKay Posted May 2, 2016 Report Posted May 2, 2016 if (offer.itemsToGive.length == 0 && offer.itemsToReceive.length > 0) { offer.accept(); } Use that inside of the newOffer event. If you don't know how to do that, check out the examples in the GitHub repo. Quote
sparkkZ Posted September 4, 2016 Report Posted September 4, 2016 after adding this line my account accepts ANY offer , my friend took my knife and it accepted how to fix? , got it back btw Quote
Dr. McKay Posted September 4, 2016 Report Posted September 4, 2016 after adding this line my account accepts ANY offer , my friend took my knife and it accepted how to fix? , got it back btw You somehow did it wrong. Couldn't tell you any more without seeing your code. Quote
sparkkZ Posted September 8, 2016 Report Posted September 8, 2016 http://pastebin.com/SGk1xhBN :s Quote
Dr. McKay Posted September 8, 2016 Report Posted September 8, 2016 You're doing that in the wrong place. The example accepts every offer. You need to write your code inside of the newOffer event. 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.