view AuctionAddons/AuctionLite.lua @ 31:e732843b16d2 v0.1.6-BETA

Added an info box to the top of the general group. Removed the ?Don't queue when below threshold?, this is now default (can?t make it too complicated). Implemented working functionality for virtual groups. ?Include in local item data? can now be overridden in every group. Added help text at the replenishing stock indicating how auction values are used when queueing. The tabs ?add items? and ?current items? will now be hidden rather than disabled when you have a virtual group selected. The auction value/price threshold for items will now be used when queueing items.
author Zerotorescue
date Sat, 30 Oct 2010 23:04:45 +0200
parents 5006cb0e97c6
children ac1189599769
line wrap: on
line source
do
	
	local function GetValue(link)
		local history = AuctionLite:GetHistoricalPriceById(itemID);
		
		return (history and hist.items > 0 and math.floor(hist.price)) or -1;
	end
	
	local function IsEnabled()
		return (AuctionLite and AuctionLite.GetHistoricalPriceById);
	end
	
	IMRegisterPricingAddon("AuctionLite", GetValue, IsEnabled);
	
end