view Plugins/AuctionAddons/AuctionMaster.lua @ 217:ca05b8ade1ea

Removed old database patcher. Don?t think anybody needs it anymore and it just acts confusing.
author Zerotorescue
date Sun, 06 Feb 2011 19:26:59 +0100
parents 3bec0ea44607
children
line wrap: on
line source
do
	
	local function GetValue(link)
		local _, _, _, lowerBuyout, _, _, numAuctions, _ = AucMasGetCurrentAuctionInfo(link, false, true);
		--local avgBid, avgBuyout, lowerBid, lowerBuyout, upperBid, upperBuyout, numAuctions, numBuyouts
		
		return (numAuctions > 0 and lowerBuyout) or -1;
	end
	
	local function IsEnabled()
		return (AucMasGetCurrentAuctionInfo);
	end
	
	IMRegisterPricingAddon("AuctionMaster", GetValue, IsEnabled);
	
end