Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Quick question about Trade.AddItem and Trade.OtherOfferedItems #173

Closed gamemaster1494 closed 11 years ago

gamemaster1494 commented 11 years ago

So with the Trade.OtherOfferedItems, how would you tell what quality it is? I know that you do the GetItem(defindex) but what if they have several of the same wep with different qualities? does it handle that?

gamemaster1494 commented 11 years ago

So when I do Trade.AddItem() i won't be able to target a quality?

gamemaster1494 commented 11 years ago

But the trade.additem only accepts a defindex. That doesn't include the quality...

oojava commented 11 years ago

I believe that you would have to search the backpack for all items with the defindex and then put that in an array and parse that for the quality that you want and add by id...

On Mon, Feb 18, 2013 at 8:53 PM, gamemaster1494 notifications@github.comwrote:

But the trade.additem only accepts a defindex. That doesn't include the quality...

— Reply to this email directly or view it on GitHubhttps://github.com/Jessecar96/SteamBot/issues/173#issuecomment-13752923.

gamemaster1494 commented 11 years ago

What I'm asking is, with that Trade.OtherInventory.GetItem(id), does it get the item that they actually put up? Or the first item with that id in the backpack regardless of its quality?