Jump to content
McKay Development

pewpewAttack

Member
  • Posts

    4
  • Joined

  • Last visited

pewpewAttack's Achievements

  1. thanks i figured it out. It had to do with one of the secrets as to why it was not confirming. one was a shared secret and the was another secret forgot the name. I used the same secret which is why it was not confirming.
  2. Is there a way i can get my partners steamid from a offer object? I've tried the following. manager.on('newOffer', function(offer){ offer.getUserDetails(function(err,me,them){ console.log(me); console.log(them); }); }); This prints out like the games they have and stuff but I need a way to get their steamid to check if the user is banned on bp.tf or other trading websites. also if you print the offer object you get something like this. partner: SteamID { universe: 1, type: 1, instance: 1, accountid: someidhere }, what is accountid and does it do anything?
  3. Hello I've been following the tutorial listed here. Its a great tutorial and everything works so far. However I am able to send a trade request, I am not however able to confirm mobile auth to actually send it. below is my code. please for the love of gaben help me. var SteamUser = require('steam-user');var client = new SteamUser();var SteamTotp = require('steam-totp'); var SteamCommunity = require('steamcommunity');var TradeOfferManager = require('steam-tradeoffer-manager');var community = new SteamCommunity();var manager = new TradeOfferManager({ steam: client, community: community, language: 'en'}); var logOnOptions = { accountName: 'sadface', password: 'sadface', twoFactorCode: SteamTotp.generateAuthCode('superTopSecretLoL')}; client.logOn(logOnOptions);client.on('loggedOn',function(){ console.log('Logged into Steam'); // online status client.setPersona(SteamUser.Steam.EPersonaState.Online); // set to appear to be playing tf2 client.gamesPlayed(440); }); client.on('webSession', function(sessionid, cookies){ console.log('websession being executed'); manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, 'SuperTopSecretLoL'); sendOffer(); }); function sendOffer(){ var partner = '76561198049686559'; var appid = 440; var contextid = 2; var offer = manager.createOffer(partner); //load my inventory manager.loadInventory(appid, contextid, true, function(err, myInv){ if (err) { console.log(err); } else { var myItem = myInv[Math.floor(Math.random() * myInv.length - 1)]; offer.addMyItem(myItem); // loads partners inventory manager.loadUserInventory(partner, appid, contextid, true, function(err, theirInv){ //console.log(countCurrency(theirInv)); if (err) { console.log(err); } else { var theirItem = theirInv[Math.floor(Math.random() * theirInv.length - 1)]; // console.log(theirInv); offer.addTheirItem(theirItem); offer.setMessage(`Will you trade your ${theirItem.name} for my ${myItem.name}?`); offer.send(function(err, status){ if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); community.checkConfirmations(); } }); } }); } });} community.on('confKeyNeeded', function(tag, callback) { console.log('confKeyNeeded Called'); var time = Math.floor(Date.now() / 1000); callback(null, time, SteamTotp.getConfirmationKey('superTopSecretLoL', time, tag));});
×
×
  • Create New...