Cracker
-
Posts
2 -
Joined
-
Last visited
Posts posted by Cracker
-
-
So i am building a steambot to interact with a website! Is there a specific variable in the item array that i could use to identify the item once the item is given to the bot? I heard that people use assetid but that it can change after making a trade.
manager.on('sentOfferChanged', function(offer, oldState) { if(TradeOfferManager.ETradeOfferState[offer.state] == "Declined") { console.log("Declined"); } else if (TradeOfferManager.ETradeOfferState[offer.state] == "Active") { } else if (TradeOfferManager.ETradeOfferState[offer.state] == "Accepted") { offer.itemsToReceive.forEach(function(entry) { console.log(entry.id); }); } else { console.log("Changed?"); console.log(TradeOfferManager.ETradeOfferState[offer.state]); } });
Also, where does the bot get the item data from? I dont see assetid for the items in http://api.steampowered.com/IEconItems_440/GetPlayerItems/v0001/
Steambot Identify items by a unique number
in node-steam-tradeoffer-manager
Posted
I tried that but it didnt work the id was different but ill try it again q.q