Jump to content
McKay Development

Andrei Elvis

Member
  • Posts

    12
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://echo-services.xyz
  • Skype
    mr.echotm

Profile Information

  • Gender
    Male
  • Interests
    Web Developer

Recent Profile Visitors

513 profile views

Andrei Elvis's Achievements

  1. It is useless with classid... as I have an array with the skin names , but thanks for reply. I had the script to get the image of a skin name, it was requesting the steam market with the skin name given and it were getting the skin image. But I do not have the code and I do not have any idea how to make it right now :'(
  2. Hello, Can someone help me with the url from where I can get the skin image just by knowing the skin name. So in node.js is like request("link, link / skin name", function(x,y,z) { if(y.statusCode == 200) { skinImage = blabla; } });Hope someone can help me !
  3. Hello, I've saw that there's an error when the bot tries to reconnect after a session expires [ERROR] default - Error: Cannot log onto steamcommunity.com without first being connected to Steam network at SteamUser.webLogOn (/var/www/node_modules/steam-user/components/web.js:9:9) at SteamCommunity.<anonymous> (/var/www/socket/main.js:1453:29) at emitOne (events.js:96:13) at SteamCommunity.emit (events.js:188:7) at SteamCommunity._notifySessionExpired (/var/www/node_modules/steamcommunity/components/http.js:85:7) at /var/www/node_modules/steamcommunity/components/confirmations.js:21:10 at /var/www/node_modules/steamcommunity/components/confirmations.js:272:4 at SteamCommunity._checkHttpError (/var/www/node_modules/steamcommunity/components/http.js:90:3) at Request._callback (/var/www/node_modules/steamcommunity/components/http.js:50:61) at self.callback (/var/www/node_modules/request/request.js:186:22) And I want to know if there's a callback, so when an error comes in to just return;Can I do like: client.webLogOn(function(err) { if(err) return; }); Or something like this? Please help me. Thanks!
  4. To get just the token from a tradeurl you can use this example: var tradelink = 'https://steamcommunity.com/tradeoffer/new/?partner=6969696969&token=testtest123'; var token = tradelink.split('token=')[1]; console.log(token); //OUTPUT: testtest123
  5. When you add items to the offer (with .addMyItem and .addTheirItem) you need to specify appid and contextid of items. So, instead of offer.addMyItem(myItem); Replace with: offer.addMyItem({ 'assetid': myItem.assetid, 'appid': appid, 'contextid': contextid }); Same for offer.addTheirItem(theirItem); Replace with: offer.addTheirItem({ 'assetid': theirItem.assetid, 'appid': appid, 'contextid': contextid });
  6. That processOffer should be like this: function processOffer(offer, oldstate) { if (offer.isGlitched() || (offer.state === 11 && oldstate == 2)) { //console.log("Offer was glitched, declining."); declineOffer(offer); } else if (offer.partner.getSteamID64() === config.ownerID) { acceptOffer(offer); var item = ourItems[i].market_name; } else { //my_code } And at the event 'sentOfferChanged' you should put the function: processOffer(offer, oldstate);Note: On the event 'sentOfferChanged' put the oldstate to be same as on the processOffer function.
  7. Instead of this: offer.addMyItems(inventory[0]); Replace with this: (the code below will add all items from bot to the offer). for(var k in inventory) { offer.addMyItem({ 'assetid': inventory[k].assetid, 'appid': 730, 'contextid': 2 }); }
  8. Hello, How can I fix the Error: "Not Logged In" error after some hours. I know I need to login the bot again but I did some code for bot to login again. Maybe I didn't do correct. So, someone can explain me how to login again bot when the session expires? Thanks!
  9. It should look like this: function acceptOffer(offer) { offer.accept((err) => { community.checkConfirmations(); if (err) console.log("There was an error accepting the offer."); manager.getOffer(offer.id, function(er, of) { if(er) throw er; var itemsReceived = of.itemsToReceive; var newOffer = manager.createOffer(SOMEID); newOffer.addMyItem(itemsReceived[0]); newOffer.send(function(err, status) {console.log('error: '+err+' status: '+status)}); console.log(newOffer.state); }); }); };Hope it works!
  10. You can do something like: var keysToAdd = [] // ARRAY WITH THE ASSETIDS OF THE KEYS. for(var i in keysToAdd) { offer.addMyItem({ 'appid': appid, 'contextid': contextid, 'assetid': keysToAdd[i] }); } //YOU NEED TO ADD THIS BEFORE <offer.send> function
  11. Hello, I have this error since 3 days and I didn't change anything on the scripts, I just restarted the node. Can someone help me, pls?
×
×
  • Create New...