Jump to content
McKay Development

Steambot Identify items by a unique number


Cracker

Recommended Posts

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/

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...