Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3388
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. The asset ID for an item is also referred to as just the item's "id". In GetPlayerItems, "id" is the same as "assetid". Asset IDs do change when traded for Valve games (and some others). You can get the new IDs from the getReceivedItems method.
  2. You can use this to accept all outstanding confirmations at once, but the entire request will fail if any one confirmation fails to be confirmed.
  3. I believe your problem is stemming from the fact that you're trying to confirm all your pending confirmations at once. A key can only be used once, so if you try to confirm multiple confirmations in the same second, you'll generate the same key so it won't work.
  4. Formatted code so it's actually readable: client.requestPasswordChangeEmail(password, function(err) { console.log("Req: "+ err); var rl = require('readline').createInterface({ "input": process.stdin, "output": process.stdout }); rl.question('Code: ', function(code) { client.changePassword(password, newpassword, code, function(err) { console.log(err); }); console.log(code); rl.close(); }); }); Where are you getting 8? When you request the email, or when you call changePassword?
  5. offer.itemsToReceive contains an array of the items you'd receive if you accepted this offer. For each item in this array, check appid to make sure it's CS:GO and name to make sure it's a key. For example: var allItemsAreGood = offer.itemsToReceive.every(function(item) { return item.appid == 730 && item.name == "CS:GO Case Key"; });
  6. I don't know, but it makes sense to me. Are you requesting your own inventory while logged in, or others'?
  7. Nobody knows what goes on at Valve, but the rate-limit for inventories was made much more strict yesterday. Nobody knows if it will change again in the future.
  8. They're provided to the callback. The second argument (on success) is an object which has a property trades, which is an array of objects which contain trade data.
  9. Set a language in your constructor if you haven't already, and then the item should have a name property you can check.
  10. Data types shouldn't matter. The module should convert everything internally for you. Are you absolutely sure you're using asset IDs which are owned by the account you're logged into? Maybe you mixed up some accounts?
  11. It usually helps to print out values of variables when debugging. In this case, I suspect one of appid, contextid, or assetid is undefined or not the value you are expecting.
  12. If you want to do anything that limited users can't do, then you need to spend $5 on Steam.
  13. https://github.com/DoctorMcKay/node-steam-user#myfriends
  14. "Currencies" are a weird thing that I don't think anyone except Spiral Knights uses.
  15. You must use assetid. You can't use classid or instanceid when sending a trade offer.
  16. Never throw away an error. Check err before you try to do anything. Also, I sincerely hope that isn't your actual secret.
  17. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#sessionexpired When your session expires, just log in again. If you logged in via steam-user, call webLogOn again. If you logged in via steamcommunity, call login again.
×
×
  • Create New...