Jump to content
McKay Development


  • Content Count

  • Joined

  • Last visited

Everything posted by EnelGy

  1. Hey, I keep getting error 429 even if I set pollInterval to 5000ms, where can be problem ? let manager = new TradeOfferManager({ steam: client2, community: community, language: 'en', pollInterval: 5000 });
  2. How can I check ? I knew what is offer.id but didnt know how to check ...
  3. But what if I want it to have that handler on specific trade ? There are 2 diffrent sending trades functions, first is the bot doesnt give anything, and this i want to check if is confirmed, second is the bot is giving.. (I have solved it wuth adding if statements on itemstogive == 0) 1. How can I know that first sent trade offer is matching with some id ?? like if (offer.id === ______)... I need something that says if (offer.id.state === "accepted"), but this code wont work, how can i do it ?? 2. Some developer told that i can fix this using polldata, is it possible
  4. Could you please help me ?? So how could I prevent that bot will not respond both users when only 1 user confirmed the trade offer ?? It is really frustrating to see it and really dont know how to prevent it in chat it looks like this: (1 - user "EnelGy" accepted the trade, 2 - user "Command" wrote the same command, but didnt accept the trade...) And if the user who won accept the trade that bot is sending his winnings, it resets(like he registered sentOfferChanged() - accepted offer) and generates another game where also are 2 users: After accepting the win: this is
  5. I there any code/function to detect last accepted offer and say what was opponents trade link ??? The reason why do I need it is because when 2 different users got offers, and 1 of them accepts the trade, bot doesnt know who confirmed, (but registered that someone confirmed) so bot sends them both message like "Success trade confirmed "
  6. I have copied this code and need help what i need to change to make it work... Items that bot is requiring opponent has, so the item is existing and if the guy doesnt have the item, console says that. I got this error and dont know why.. . the script is here if(isNaN(amount) || amount === undefined){ console.log('invalid number'); } else{ var count = 0; var i = 0; console.
  7. And if I already filtred my inv ? How do i find the item ?? Send me here some coded example please
  8. How can I simply add multiple same items ? For example opponent says 20 keys, so i create offer with 20 keys. I have just tried something like var myItem = .....; addMyItems(myItem).repeat(amount); But dont know what to set after var myItem What should I set there ?
  9. I think i have set the language but if I try something like newSetItems.name, it gives "undefined"
  10. I dont know how to add items by knowing their names and without any others numbers.
  11. I have full trade-links in my database and i want to use them to create direct trade offer
  12. mainly i dont understand how to send offer that we are not giving any items, but opponent is giving... please someone post the code here (would be really cool if you included the sending trade with trade-link i get all the time this error(after changing var myItem = myInv['5']; to var myItem = myInv[null];
  13. How can i create new offer with trade-link of the partner ???
  14. How to convert this .newassetid to name of an item ??
  15. Please post here node-steam-tradeoffer-manager documentation / library, i cant find it I need to know how to get partners steam profile url link
  16. where to set the logonID ?? in logon.js ???
  17. Hello I have seen the answer on this "And the reason is because you need to set logonID to something unique in logOn if you're logging into the same account from the same public IP." Can you be with this answer more specific ??? What should I do here ? let logonId = details.logonID; if (logonId) { let maxUint32 = Math.pow(2, 32) - 1; if (typeof logonId == 'string' && logonId.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)) { logonId = StdLib.IPv4.stringToInt(logonId) ^ PRIVATE_IP_OBFUSCATION_MASK;
  • Create New...