Zerotorescue@13: do Zerotorescue@13: Zerotorescue@13: local function GetValue(link) Zerotorescue@13: local history = AuctionLite:GetHistoricalPriceById(itemID); Zerotorescue@13: Zerotorescue@13: return (history and hist.items > 0 and math.floor(hist.price)) or -1; Zerotorescue@13: end Zerotorescue@13: Zerotorescue@13: local function IsEnabled() Zerotorescue@13: return (AuctionLite and AuctionLite.GetHistoricalPriceById); Zerotorescue@13: end Zerotorescue@13: Zerotorescue@13: IMRegisterPricingAddon("AuctionLite", GetValue, IsEnabled); Zerotorescue@13: Zerotorescue@13: end