Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steam-tradeoffer-manager'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hi, i currently have a really short script for trading but it keeps on giving me that error. My current script: manager.on('newOffer', function (steamID, respond) { console.log('New offer from' + offer.partner.getSteam3RenderedID); if (offer.partner.getSteamID64() === 76561198259000054 || offer.itemsToGive.length === 0) { offer.accept(); } }); And on the start: var TradeOfferManager = require('steam-tradeoffer-manager'); var manager = new TradeOfferManager({ steam: client, community: community, language: 'en' });
  2. Hello, I have a problem with my bot. I have currently this script: //loading everything up var SteamUser = require('steam-user'); var SteamTotp = require('steam-totp'); var config = require('./config.js'); var SteamCommunity = require('steamcommunity'); var TradeOfferManager = require('steam-tradeoffer-manager'); var steamID = require('steamid'); var Winston = require('winston') var fs = require('fs') var client = new SteamUser(); var community = new SteamCommunity(); var manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); //logging in var logOnOptions = { accountName: 'username', password: 'password', twoFactorCode: SteamTotp.generateAuthCode('shared_secret') }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online); }); //new items client.on('newItems', function (count) { console.log(count + " new items in inventory"); }); //trading manager.on('newOffer', handleOffer); function handleOffer(tradeoffer) { console.log('New offer #'+ offer.id +' from '+ offer.partner.getSteam3RenderedID()); console.log('Checking: Gift offer/owner offer'); if (offer.partner.getSteamID64() === 76561198259000054 || offer.itemsToGive.length === 0) { logger.info('User '+ offer.partner.getSteam3RenderedID() +' offered gift/owner offer'); offer.accept(function (err) { console.log('Offer accepted'); }); } else { console.log('Offer is not a gift/owner offer'); } console.log('Checking: Trade hold'); offer.getUserDetails(function(err, me, them) { if (them.escrowDays > 0) { offer.decline(); console.log('Offer declined - Trade hold') } else { console.log('No trade hold') } }); }; // }); //}); //declining trade requests client.on('tradeRequest', function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", declining, sending message"); respond(false); client.chatMessage(steamID, 'Sorry, I dont respond to trade requests, use trade offers instead.') }); instead of manager.on('newOffer', handleOffer); function handleOffer(tradeoffer) { i have also tried manager.on('newOffer', function (steamID, respond) { It doesn't show an error on startup, but when i send a trade offer nothing seems too happen.
  3. Hello,I'd like to know how to correctly check item type for trading card. I tried: offer.itemsToReceive.forEach(function(item) { if (item.type.includes("Trading Card"){ My code } But this doesn't seem to work. Could anybody tell me how to do this correctly?
  4. Hello. There was such problem: when the bot sends two DIFFERENT trades at the same time, for example where there are two or three of the same case. One trade is accepted, the other gets the status "Items unavailable for trade" Items are sent by Market name (the classid and instanceid is always the same. they do not have sense). assetid in the offer and the inventory are different. The task such: to send items that are not currently in other trades of the account.
  5. How can you get item.tags for items in trades (if that's even possible) I tried if (item.tags == "Trading Card") but this obviously didn't work, can anyone help me form this correctly? (if it's possible)
  6. Hello. Please help. My 4 bot`s dont want work with proxy. Always error 429 Bot logged in, and after 1-2s Please give me example how to correct use proxy? I can set this more than 4 days(
  7. Hello, I've been trying to make tf2 trading card bot, but I've run into an issue with item tags, what I'm trying to do is check if the item (in trade) has a tag "Trading Card". Can anyone help me with that?
  8. Hi, need help about item name. How can I show the item name for item that I take from the bot? Currently it only shows the name of item that bot received.
  9. I am having issues with calling this function. I think it has something to do with the function waiting a little while. I have searched for callback etc. on the internet and I found a lot but I have no clue how to use them on the code... Question How do I use sync callback on the function: "getUserInventoryContents" This is what I have now: manager.getUserInventoryContents(config.accounts.steamid64[i],753, 6, true, (err, inventory) => { if (err) { console.log(err); return; } else if (err == null) { //The rest of the code I thought that this would work... I am not the best in node, basically just started... but hope you could help me
  10. hi some times i cant confrim offers in program and confirms on Mobiles Why ?
  11. im write a bot for Send Trade offer by this example -> https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/blob/master/examples/offloader.js and write a Mobile Confirmations+Game Idle Bot by this example -> i cant run 2 bots At a time
  12. Hi, I've been stuck with this issue for a while and can't figure any way around it, Right now I have a key bot and script is very simple - it checks if all items offered are keys and all items I give is refined, but keys never are round number so my question is how do you make script recognize metals and they value - here's my current script: manager.on("newOffer", function(offer) { var onlyKeys = (offer.itemsToReceive.every(function(item) { return item.name == "Mann Co. Supply Crate Key"; })); var onlyRef = (offer.itemsToGive.every(function(item) { return item.name == "Refined Metal"; })); if (onlyKeys, onlyRef) { keyAmount = offer.itemsToReceive.length refAmount = offer.itemsToGive.length console.log("Received trade offer containing " + keyAmount + " keys"); console.log("Payed" + refAmmount "Refined metal per key."); console.log("Accepting the trade."); if (keyAmount == refAmount * 27.66) offer.accept(function(err) { if (err) console.log(err); });
  13. Ä°s it trade bot right? Ä°f it is tradebot for csgo can I buy it without mobile confirim? I want to confirim manual just accept offers if overpay is it possible? And How To buy it?
  14. How do you receive market_hash_name when trade offer has been sent to you, and can you get information if the item is craftable?
  15. Is there any ways to get two factor code by typing in command and how to set up stock command in steam chat?
  16. Hi, I used this library with pretty much the default code in storehouse-steam.js like 8 months ago. Now if I try to use the library, I keep getting IP blocked by Steam. If I update all the dependencies, it still happens. Node is not my preferred language, and I am not a total idiot, but I am not sure how to resolve this in a simple and efficient matter. It only happens when I have a lot of pending orders to accept. Might just be an issue of "steam sucks", with the library is requesting too many offers at once, but I am not sure the best way to handle this. Just makes me frustrated with Steam that everything worked perfectly, and now I have spent tons of time trying to work out a proper way for this.. I just want to accept a lot of tradeoffers automatically :/
  17. i have script tradeoffer with node js. i want this script run in my website using php. how to call this script on php
  18. Hello! I'm trying to send offers. I can create them and I works fine But, when I try to send the confirmation, 80~90% of the times I get this error: "[Error: Could not find confirmation for object XXXXXXXXXX]" The offer is sent, but then I need to confirm it on my mobile device. What can I do to send the confirmation correctly? This is the code I'm using for send it var text_to_send = "Thanks for playing. Here is you reward :D"; var offer = manager.createOffer(trade_url); offer.addMyItems(items_to_send); offer.setMessage(text_to_send); offer.send(function(err, status) { if (err) { console.log(err); return; } if (status == 'pending') { console.log(`Offer #${offer.id} sent, but requires confirmation`); community.acceptConfirmationForObject(confirmation_key, offer.id, function(err) { if (err) { console.log(err); } else { console.log("Offer confirmed"); bbdd.save();//save to the ddbb } }); } else { console.log(`Offer #${offer.id} sent successfully`); bbdd.save();//save to the ddbb } What I'm doing wrong? Is there other way to confirm my offers sent? Thanks for reading this post and have a nice gaming!
  19. Hey Boys and Girls, My bot often get the error 28 because steam goes slow. How should I manage it, that the bot try to accept so long as he accepted it? Thanks for all, who gonna help me!
  20. I didnt want to submit an issue, because i dont know if its by design. By default the language for the steam-tradeoffer-manager is not set If somebody wants to set it, they need to set it up manually var SteamTradeOfferManager = require("steam-tradeoffer-manager"); manager = new SteamTradeOfferManager({"language": "en"}) ---- When the language is not set, some properties of the trade offer are not accurate. itemsToGive and itemsToReceive show the correct appid, contextid, assetid and classid which is important however marketable, commodity and market restrictions are showing wrong info, all those are false (0). i understand that setting up language will show different descriptions and names in some regions. and by not setting the language, you dont get extra info, which saves bandwidth, and speeds up things. So maybe its useful to set the language to "en" by default.
  21. Hi! How to i can get assetid items after accept offer offer.accept(function (err,result) retult return accept or pengind i need get new assetid on my inventory Thank you!
  22. Hello. I have troubles.When bot has error 28 he can`t try to accept offer repeatedly. He wait next trade. What can i do for he was trying to accept trade where he received 28 error manager.on('newOffer', (offer) => { var userID = offer.partner.getSteamID64(); var offerID = offer.id; var prefix = offerID + ' || '; log("New offer #" + offerID + " from " + userID); offer.getUserDetails((err, me, them) => { if(err) { log(err); return; } var i; offer.accept((err, status) => { if(err) { log(prefix + err); return; } else { community.checkConfirmations(); log(prefix + "Accepted trade."); } }); }); });
  23. Error: connect ENOBUFS 104.94.55.49:443 - Local (undefined:undefined) I get this error for loading inventory, sending trade offers on two of my bots? Same error message, any ideas?
×
×
  • Create New...