Jump to content
McKay Development

UKF

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by UKF

  1. Thanks. But i need get all items (example DOTA2 have ~ 10 000 items ...) . 

     

    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. 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

  3. //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

  4. The names are the player_name property in each object in the array provided in the callback.

     

    I am new into the callback things and not a professional :D

    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?

  5. 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...