Search the Community
Showing results for tags 'Question'.
-
Question What are all the offer item variables
Sluethen posted a topic in node-steam-tradeoffer-manager
I can't seem to find how to get the quality of an item in my/their offer. If I could actually just get all of the offer item variables that would be much appreciated. Thanks!- 1 reply
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
I am a games collector. Recently I bought random Steam key, and tried to activate it on my account via helper bot I made. I received "AlreadyPurchased" result, but package id in response does not match package I own for this game (I own 79549, and failed to redeem key with 80925). I'm interested, in which cases Steam considers I already have this product? Is it compare app ids, or depots ids in packages, or something another? What if I want to own two packages with one game? For example, Call of Duty: Modern Warfare 3, that present in store (12205) does not have depot with russian language. But russian retail CD version (11616) contains ONLY russian. What can I do, if I want all languages? Can I activate both packages in some way, if I buy keys in retail? Thank's for answer.
-
Hello, what I should to change if I want to use that custom useragent during login to Steam? const USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36";
-
Question Using .createOffer() with variables
McMuffinDK posted a topic in node-steam-tradeoffer-manager
I have this code to get the items of a specific user, but it should work for every user in the world, so i want to use a variable instead of hardcoding the steamID64 into it, but i just can't get it to work var qqdata = steamID64; // the steamid64 of the user i want to get the inventory from const offer = manager.createOffer + qqdata; offer.getPartnerInventoryContents(730, 2, (err, inventory) => { if (err) { console.log(err); } else { for (var i = 0; i < inventory.length; i++) { setTimeout(function (i) { var name = "'" + inventory[i].market_hash_name + "'"; var image = "'" + inventory[i].icon_url + "'"; var sql = "INSERT INTO `inventorys`.`" + qqdata + "` (name, icon_url) VALUES (" + name + ", " + image + ")"; con.query(sql, function (err) { if (err) { console.log(err); } }); }, 10 * i, i); } } }); -
2 Questions. First one friendOrChatMessage triggers when a room message is typed but it also triggers when a steam message is typed? the room parm can be the room it is typed in or the steam id... Soooo how do i know if its a message in the room? or a message from a user? and 2. How do i send a message to a room that im in?
-
Question Automatically selling steam items, error 400
frej4189 posted a topic in node-steamcommunity
As has also been the case earlier, I am trying to create an automatic steam market seller, however I get error 400 when trying to do so. I have tried multiple ways, ending up trying to use httpRequestPost from the steamcommunity package community.httpRequestPost('https://steamcommunity.com/market/sellitem/', { form: { sessionid: community.getSessionID(), appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: item.price }, headers: { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Connection': 'keep-alive', 'Cookie': cookies, 'Host': 'steamcommunity.com', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.5' }, json: true }, (err, response, json) => { if(err) { console.log(err.toString()); return; } console.log(json); }, "steamcommunity"); This will return error 400, and I have no clue as to why that is, any suggestions? -
Hi, so I want to make a bot that will send trade offers with specific items already selected on my website to a user. So the bot will ask for that user items bot will not give any from own inventory. I guess I have to do something with this code but I have not idea what. var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=157268861&token=N_0bQbD4"); offer.addMyItems(inventory); offer.setMessage("Here, have some items!"); offer.send(function(err, status) { if (err) { console.log(err); return; } if (status == 'pending') { // We need to confirm it console.log(`Offer #${offer.id} sent, but requires confirmation`); community.acceptConfirmationForObject("identitySecret", offer.id, function(err) { if (err) { console.log(err); } else { console.log("Offer confirmed"); } }); } else { console.log(`Offer #${offer.id} sent successfully`); } }); So this code, send items from "our" / bot inventory, but I need to send a trade offer with items from a specific user from steam and then he has to accept it.
-
What is Steam? Why would I want Steam? How do I get started using Steam?
-
If I want to connect my website and node.js server I would need to put the ip of the server in my source code but isn't this unsafe because everyone is able to see this if you use javascript, and people could like attack it or something? Also is using socket.io generally the 'best' way to connect a bot and a website or would using socket.io be called 'non-proffesional' and what other options exist? I also haven't seen a big site using socket.io so that makes me wondering, or do they hide it somehow?
- 4 replies
-
- Socket.io
- JavaScript
-
(and 2 more)
Tagged with:
-
Is it possible to get a list of all CS:GO or PUBG items?
-
How to delete crates automatically with the tf2 package
-
Hey! I'm kinda new to node, and to async programming at all. So I'm sending multiple trade offers with a for loop and Im getting a null offer.id on them. I understood that I have to do a callback but I don't know how. Can you please tell me how to do a callback on the offer.send function. Thanks in advance!
-
var trade = manager.createOffer(steamid); trade.setMessage('ID:' + drop.id + ', Item:' + drop.market_hash_name + ', Steam ID:' + steamid + ', token:' + tradetoken); trade.setToken(tradetoken); trade.addMyItem(drop); console.log(trade) return: TradeOffer { partner: SteamID { universe: 1, type: 1, instance: 1, accountid: 389643249 }, id: null, message: 'ID:21851, Item:Baseball cap, Steam ID:76561198349908977, token:fGUAlI2j', state: 1, itemsToGive: [ { id: '1234567890123456789', //steamid assetid: '1234567890123456789', //steamid appid: 578080, contextid: '2', amount: 1 } ], itemsToReceive: [], isOurOffer: true, created: null, updated: null, expires: null, tradeID: null, fromRealTimeTrade: false, confirmationMethod: null, escrowEnds: null, rawJson: '' } trade.send(function (err, status) { if (err) { logger.error('Bank sendTrade error trade.send'.blue + err); return; } if (status == "sent" || status == "pending") { ... } }) trade.send return error: There was an error sending your trade offer. Please try again later. (26) This error only for PUBG items. CS GO and Dota send without problems. I noticed that the items have a unique id that is 8 characters longer than VS GP and STEAM How to solve this problem? Thank you in advance for your help
- 2 replies
-
- node.js
- node-steam-tradeoffer-manager
- (and 3 more)
-
Hi. How can I restrict the input of the trade link if I want to save it for each user via my website? For example, if instead of the trade link I put google.com, if I send a trade, it will give me this error: throw new Error("Unknown SteamID input format \"" + input + "\""); ^ Error: Unknown SteamID input format "google.com"Any idea on how to stop this from happening?
-
My server console was fulled of this warming what can i do
-
Hello guys, i've got a problem which my brain cant solve Bot should send message to admin (via steam chat) after accepting trade offer (for example), but he dont do it.. Thats my not working code: manager.on('newOffer', (offer) => { if (offer.itemsToGive.length === 0) { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`[!]Trade Accepted! Status: ${status}.`); client.chatMessage(76561198074539527, 'Trade accepted! Check bot's inventory!'); }
-
Sorry for my English. Today one of the proxy stopped working, I had to buy a new one. I sent the test trade to bot, and it accept trade immediately. The difference with the old ip is very noticeable, before bot accept trades for 20-40 seconds. I suspect that Steam imposes sanctions on the bot for exceeding the number of requests and translates it with a slow mode. Two options come to mind immediately: limit the number of requests or change the proxy once per hour. But I'm not sure that a proxy change will help. In this regard, questions. 1. How to avoid sanctions? 2. What is the limit of requests to not get slow mode? I hope that you can help with information and I can give it to the my programmer.
-
I have a problem restoring cookies after a Bot looses its webSession. I call SteamUser.webLogOn but don't get an webSession callback at all. Currently I have 3 Bots running parallel on the same host. After about 1-2 days (sometimes even 7 days!) one of the three won't get a webSession ever again. The other 2 still run great and webSession fires normally for them. I setup a cronJob which refreshes the Login and calls webLogOn every hour and I also call it on sessionExpired. I logged the client error output but it won't throw any error. Code: https://pastebin.com/jYaDE45x Log: 26-07-2017 21:23:05: STEAMBOT Steam session expired: xx - Error: Not Logged In 26-07-2017 21:23:05: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 1385.8219997882843s ago 26-07-2017 21:23:05: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 00:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 9414.178000211716s ago 27-07-2017 00:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 03:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10799.992999792099s ago 27-07-2017 03:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 06:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10800.00100016594s ago 27-07-2017 06:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
- 4 replies
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
Hey. I need help. My bot is randomly or after spamming Session Expired will be disconnect. At the same time internet-connection is stable. Why is this happening? Logs: http://ibb.co/gvnUyR http://ibb.co/hnA2k6 Code: community.on('sessionExpired', function (err) { console.log("## Session Expired, relogging."); client.webLogOn();}); setInterval(function () { count++; console.log("## Session: " + count + ", relogging..."); client.webLogOn();}, 10 * 60 * 1000); client.on('disconnected', function (eresult) { console.log("Disconnected from Steam. Reason '"+SteamUser.EResult[eresult]+" ["+eresult+]'");}); client.on('webSession', function (sessionID, cookies) { manager.setCookies(cookies, function (err) { if (err) { console.log(err); process.exit(1); } else { community.setCookies(cookies); community.chatLogon(); inv.getInventory(client.steamID).then(inventory => { currentInventory = inventory; client.gamesPlayed("B: " + (1000 - Object.keys(currentInventory).length) + " ? " + config.prices.buying_price + " руб | S: " + Object.keys(currentInventory).length + " ? " + config.prices.selling_price + " руб"); }) .catch(err => { console.log(err); }); } });});
-
Hello McKay. First of all I wanna say thank you for your contribution. I saw all these node-steam-* modules and came this forum. I wanna say I'm proud of you and you are doing great libraries here. I'm a deeply experienced javascript developer. If you have some problems to fix or maintain some modules, maybe I can help you. NOTE: I don't know anything about steam dev api and how trade works... Can we have some section for contributors talk about internal issues? That way I can learn very fast how steam trade works and other stuffs too... Maybe 'Developers' or 'Contributors' might be good name for new section. What do you think? BTW: If I did something wrong please forgive me. I don't have much experience with Forum
-
Is that possible to make the bot crosscheck the listing price of the bp.tf website?
-
Hello, is there a function / method to redeem wallet code? I want my bot to have command to redeem wallet code via chat message..
-
Hello, I have problem getting new assetid's after trade. Sometimes steam is just giving bad new assetid. I tryed offer.getReceivedItems() and offer.getExchangeDetails(). For example: - offer.getReceivedItems() - https://pastebin.com/9BHN8zQK - offer.getExchangeDetails() - https://pastebin.com/B83595WH but new item have completely different assetid: https://pastebin.com/xKT0pQmr Steam is still showing wrong assetid it only happens with first item of trade rest have good id's. There is a solution to fix this, because this bug is annoying?
-
Hello, I'm writing very rarely in the forum, I usually solve problems, but this one exceeded me There was a problem getting new identifiers from the accepted offer. (offer.getReceivedItems()). The problem is very rare and again retrieving IDs does not help. There are 21 items available. Only one item has invalid identifiers, and owner value is "0" instead of openID account. Link to account on which are the items from the offer:https://steamcommunity.com/profiles/76561198361335405/inventory/json/730/2 Link to the JSON file with the content of the offer:https://pastebin.com/06HRjeSU Please press Ctrl + F and search "id" : "12569687364". This item has returned an invalid identifier and the value "owner". The correct ID is 12702283129. classid and instance id is valid. The remaining 20 items are correct.
-
Hello! How to implement this function: So for example sets lets say your profile id number is 1234567892 The bot is told to get the first number 1234567890 It ads it to the profile link and gets http://steamcommunity.com/profiles/1234567890 Then the coding tells the bot to load the page and look for error messages Error message found, it now goes to the next one... 1234567891 it loads up http://steamcommunity.com/profiles/1234567891 gets an error message it loads up http://steamcommunity.com/profiles/1234567892 It doesn't get an error message. Code for the bot now tells it to load the code for adding the account as a friend.