Zerotorescue@13: do Zerotorescue@13: Zerotorescue@13: local function GetValue(link) Zerotorescue@13: local _, _, _, lowerBuyout, _, _, numAuctions, _ = AucMasGetCurrentAuctionInfo(link, false, true); Zerotorescue@13: --local avgBid, avgBuyout, lowerBid, lowerBuyout, upperBid, upperBuyout, numAuctions, numBuyouts Zerotorescue@13: Zerotorescue@13: return (numAuctions > 0 and lowerBuyout) or -1; Zerotorescue@13: end Zerotorescue@13: Zerotorescue@13: local function IsEnabled() Zerotorescue@13: return (AucMasGetCurrentAuctionInfo); Zerotorescue@13: end Zerotorescue@13: Zerotorescue@13: IMRegisterPricingAddon("AuctionMaster", GetValue, IsEnabled); Zerotorescue@13: Zerotorescue@13: end