-
Posts
3575 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
You would probably want to do something like this: Initialize a variable to 0 to count the user's owned metal Loop over the user's inventory, and add 9 to that variable for every refined, 3 for every reclaimed, and 1 for every scrap If that variable is If it's >=, then loop over their inventory again, starting with refined and add ref until they don't have any more or the amount you need Keep going with rec and eventually scrap If, at the end, you're short a bit, add the smallest currency unit to go above your required price
-
No.
-
You probably need to set logonID in the logOn method to some nonzero value.
-
It's unlikely that chat in node-steamcommunity will be fixed since everything goes through the CM now, and that's what node-steam-user is designed for.
-
exclude Mysterious Trading Card
Dr. McKay replied to neverhood's topic in node-steam-tradeoffer-manager
You can use Array.prototype.filter to filter out things you don't want. -
It's a normal CM connection using normal CM protobuf messages. node-steam-user does all this. At some point I'll add support for new chat to steam-user but it'll be a bit.
-
How to add it?
-
Question Can't get market_hash_name in trade
Dr. McKay replied to romatello's topic in node-steam-tradeoffer-manager
You could always call the API yourself. But your bot is getting killed because you don't have enough memory. -
https://github.com/DoctorMcKay/node-steam-user#mynicknames
-
Nickname as in the private name you gave the user, or nickname as in the user's profile (persona) name?
-
How Can I Get The Offer Link Using Offer Object
Dr. McKay replied to Cool Guy123's topic in node-steam-tradeoffer-manager
https://steamcommunity.com/tradeoffer/ + offer.id -
Not as far as I'm aware.
- 1 reply
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
Question Resuming session using cookies
Dr. McKay replied to romatello's topic in node-steam-tradeoffer-manager
I dunno what to tell you. Everything you posted looks good, so you must be doing something wrong elsewhere. -
Question Resuming session using cookies
Dr. McKay replied to romatello's topic in node-steam-tradeoffer-manager
Are you using the cookies on the same IP as where they were created? I find generally you have to use the same IP. -
Question Resuming session using cookies
Dr. McKay replied to romatello's topic in node-steam-tradeoffer-manager
Can you show your code? -
Question Explanation of EFriendRelationship enums
Dr. McKay replied to nikikiker's topic in node-steam-user
I'm not 100% certain, but I think: Blocked = You blocked themIgnoredFriend = They're a friend, and you blocked themSuggestedFriend = Dunno, maybe unusedMax = Not a real value, just the maximum that enum goes up to -
Question Getting Market price of Steam Items
Dr. McKay replied to Meshi8's topic in node-steamcommunity
The appid for the item is 753. You should prefix the game's appid to the market_hash_name, e.g.: community.getMarketItem(753, "629960-:SoraSummerFlowerGaze2:", (err, item) => { }); -
Question Can't get market_hash_name in trade
Dr. McKay replied to romatello's topic in node-steam-tradeoffer-manager
You need to set a language in the constructor. -
Get packageid's that contain a certain appid?
Dr. McKay replied to Revadike's topic in node-steam-user
Unfortunately not. -
That generally happens when there's no longer anything happening in the script. For example: it got disconnected from Steam and there wasn't anything reconnecting or something.
-
I don't believe that's presently possible.
-
Of the account you're logged into? client.steamID.accountid