Nico31 Posted July 1, 2017 Report Posted July 1, 2017 Hi everyone! I'm new to node, js and steam related scripting, so thanks Dr McKay for the place. I'm trying to make some logic for a card trade bot, but I can't find a way to get the appid of the game to which belong the trading card.I've already debbuged all the properties of the items in a trade offer, but no one match what I'm looking for. The closest I got was by using the numbers which precede in market_hash_name, but this is not a constant in all trading cards, so I need some advice to continue my project. Thanks in advance for any help and sorry for my bad english! Quote
Dr. McKay Posted July 1, 2017 Report Posted July 1, 2017 The numbers which precede the market_hash_name are indeed the item's corresponding appid. All trading cards have that. You can also use the market_fee_app property. Quote
Nico31 Posted July 2, 2017 Author Report Posted July 2, 2017 Oh I've read in other topic you made that market_hash_name may not be present in every item, I will try with market_fee_app. Thank you very much! Quote
Dr. McKay Posted July 2, 2017 Report Posted July 2, 2017 market_hash_name will be present on every trading card. Quote
Nico31 Posted July 2, 2017 Author Report Posted July 2, 2017 (edited) market_hash_name will be present on every trading card. I missread here, I thought this applies to trading cards aswell The market hash name is never localized, and may not exist if the item isn't marketable. Copied from this post: https://dev.doctormckay.com/topic/332-identifying-steam-items/ I'm testing and all seems fine! Thank you Edited July 2, 2017 by Nico31 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.