我正在尝试使用 genericInventory 类列出 SteamBot 的项目,我可以列出所有项目和项目名称,但不能列出项目的质量或浮动。
TradeManager tm = new TradeManager(Bot.ApiKey, Bot.SteamWeb);
Trade t = tm.CreateTrade(Bot.SteamUser.SteamID, steamId);
TradeOffer offer = Bot.NewTradeOffer(steamId);
GenericInventory GI = new GenericInventory(Bot.SteamWeb);
List<long> contextId = new List<long>();
contextId.Add(2);
GI.load(730, contextId, steamId);
foreach (GenericInventory.Item item in GI.items.Values)
{
GenericInventory.ItemDescription ID = GI.getDescription(item.assetid);
//SendChatMessage("App ID: " + item.appid + " ContextID: " +
// item.contextid + " Asset ID: " + item.assetid);
SendChatMessage(ID.name + "|" + ID.ToString());
}