view AuctionAddons/Auctioneer.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 7d7aaa3fbe94
children
line wrap: on
line source
do
	
	local function GetValue(link)
		local imgSeen, _, _, _, _, lowBuy, _, _ = AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(link);
		--local imgseen, image, matchBid, matchBuy, lowBid, lowBuy, aveBuy, aSeen 
		
		if imgSeen <= 0 then
			-- No auctions up at this time
			return -1;
		end
		
		return lowBuy or -5;
	end
	
	local function IsEnabled()
		return (AucAdvanced ~= nil and AucAdvanced.Modules.Util.SimpleAuction ~= nil and AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems ~= nil);
	end
	
	IMRegisterPricingAddon("Auctioneer", GetValue, IsEnabled);
	
end