Jump to content
McKay Development

UKF

Member
  • Posts

    8
  • Joined

  • Last visited

UKF's Achievements

  1. Just change the appid to 570, and change the context id, I have no idea if it's 0,1 or 2, just try it. The inventory is an array of your items, inventory.forEach(function (item)){ console.log(item.market_hash_name); } This will print the item's market hash name for example.
  2. manager.loadUserInventory(YOUR_TARGET_STEAMID, 730, 2, true, function (err, inventory, currencies) { if (err) { console.log(err.message); } else { console.log("Items in my inventory: " + inventory.length); } });
  3. Well, there are different ways on doing that. You can do that by: Using a proxy system and a list of proxy servers to override steam's inventory request limits.Having a random bot responsible for the deposits if you are fetching your information from the database (username/password/shared_secret/identity_secret and misc. data) and loading user's inventory.Running multiple bots by creating instances on start, making a communication between them (using socket.io which is highly recommended over database checking (of course it's important to log everything)).Lookup for the available item to withdraw from bot (fetch assetid -> check botid containing the item) -> transfer to main bot. It's basically an easy concept, just a lot of coding and fail-safes, and the last but not least, be careful when getting item prices or any other data, make sure to always null check the items or prices. Best regards UKF
  4. //730 for csgo, 2 for contextid, true for tradableOnly //This will load a user's inventory or you can use it for your own inventory (optional), but there's loadInventory which is used to get your own client's inventory. manager.loadUserInventory(YOUR_TARGET_STEAMID, 730, 2, true, function (err, inventory, currencies) { if (err) { console.log(err.message); } else { console.log(inventory); } }); More information can be found here. Best regards UKF
  5. I am new into the callback things and not a professional I got this to work somehow: var botName; setInterval(function () { if (botName == undefined) { client.getPersonas([client.steamID], function (persona) { botName = persona[client.steamID].player_name; }); } }, 5000); Is it the right usage? Or is there a better way?
  6. Could you please show me how to use the getPersonas getter to get the name? Thank you Best regards UKF
  7. I got it to work by using on('friendRelationship') If I'm not wrong, it should be client.on('friendRelationship'), function(parameters) { ... }); Also, a question, these #paramaters, can be used such as client.on('parameter') etc...? And how could I get the the user's steam name? (not 64bit ID). Thank you UKF
  8. Hello, How can I add a friend if a friend request is received? I tried using addFriend(steamID), here's the code, am I doing something wrong? var SteamUser = require('steam-user'); var client = new SteamUser(); client.on("friend", function (steamID) { client.addFriend(steamID); } ); Thanks for the help! UKF
×
×
  • Create New...