public void BuyIfLowerThan(ListingInfo listing, float wear) { Bot.RequestFloat(listing.InspectLink, v => { ReplyReceived = true; if (v <= wear) { Bot.BuyMarketItem(listing); SendChatMessage("Bought listing " + listing.InternalId + ", Float: " + v); Log.Success("Bought listing " + listing.InternalId + ", Float: " + v); } else { Log.Warn("Didn't buy " + listing.Name + ", Float too high: " + v); } }); }