UKF
-
Posts
8 -
Joined
-
Last visited
Posts posted by UKF
-
-
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);
}
}); -
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
-
//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
-
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
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?
-
Could you please show me how to use the getPersonas getter to get the name?
Thank you
Best regards
UKF
-
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
-
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
How get all Items in DOTA2 , TF2 , CS:GO ?
in General
Posted
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,
This will print the item's market hash name for example.