Enemtia
-
Posts
13 -
Joined
-
Last visited
Posts posted by Enemtia
-
-
Hi!
I use for this api:
I have 992 items and it only shows a few item.
"more_items":1,"last_assetid":"7213560531","total_inventory_count":992,"success":1,"rwgrsn":-2
How to show all items?
-
At first sight, the number of refined metal is wrong.
return Rmetal == 1
return Gmetal == 1It got a fixed value as 1. You need to increase the number of refined metal you have in the trade. This should be increased with:
return Rmetal++;
return Gmetal++;What was in the trade exactly? -
-
Did not the client page have any settings on the bot? I think that the browser has entered and sends the offers from there.
-
Not working.
Fail: if((matches = input.match(/^Steam...
TypeError: input.match is not a function
-
Hi guys!
How to send offer my friends, if i dont know partner trade url?
var offer = manager.createOffer('[U:1:46143802]');
SteamID3 not working.
-
/** * OFFLOADER * * Once logged in, sends a trade offer containing this account's entire tradable CS:GO inventory. */ var SteamUser = require('steam-user'); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var TradeOfferManager = require('steam-tradeoffer-manager'); // use require('steam-tradeoffer-manager') in production var fs = require('fs'); var client = new SteamUser(); var manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en" // We want English item descriptions }); var community = new SteamCommunity(); // Steam logon options var logOnOptions = { "accountName": "username", "password": "password", "twoFactorCode": SteamTotp.getAuthCode("sharedSecret") }; if (fs.existsSync('polldata.json')) { manager.pollData = JSON.parse(fs.readFileSync('polldata.json')); } client.logOn(logOnOptions); client.on('loggedOn', function() { console.log("Logged into Steam"); }); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); // Get our inventory manager.getInventoryContents(730, 2, true, function(err, inventory) { if (err) { console.log(err); return; } if (inventory.length == 0) { // Inventory empty console.log("CS:GO inventory is empty"); return; } console.log("Found " + inventory.length + " CS:GO items"); // Create and send the offer var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=xxxxxxxx"); offer.addMyItems(inventory[0]); 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`); } }); }); }); community.setCookies(cookies); }); manager.on('sentOfferChanged', function(offer, oldState) { console.log(`Offer #${offer.id} changed: ${TradeOfferManager.ETradeOfferState[oldState]} -> ${TradeOfferManager.ETradeOfferState[offer.state]}`); }); manager.on('pollData', function(pollData) { fs.writeFile('polldata.json', JSON.stringify(pollData), function() {}); }); /* * Example output: * * Logged into Steam * Got API key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx * Found 117 CS:GO items * Offer #1601569319 sent, but requires confirmation * Offer confirmed */
https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/blob/master/examples/offloader.js
-
For some reason it is not good either:
items.foreEach(function(item){
TypeError: items.forEach is not a function.
-
Yes. I would like to send 1 item. But it's not working inventory[0]. Can anyone help me?
-
Thanks guys! I found it.
-
Hey guys!
I would like to ask for help. Someone can tell me where to find it my shared_secret and identity_secret? I use Steam Desktop Authenticator (jessecar96).
Thanks for the help!
Unknown Command
in General
Posted
if - else if - else
or switch