view AuctionAddons/AuctionLite.lua @ 65:ac1189599769

Added warning to AuctionLite pricing addon selection stating the addon wasn?t tested properly yet. Premade groups check now occurs when the config is opened rather than upon login. All multiselects are now dropdowns as they are meant to be. Please ensure the pullouts are closed before switching groups or closing the window or you may get some LUA errors (thanks Wowace for not fixing what seems to be a year old issue). Hopefully added support for the crafting addon ?Cauldron?, but this still has to be tested.
author Zerotorescue
date Thu, 23 Dec 2010 03:19:27 +0100
parents 5006cb0e97c6
children
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
	
	local function OnSelect()
		local addonName = "|r|cfffed000AuctionLite|r|cffff6600";
		
		print("|cffff6600" .. addonName .. " appears to not be working properly at this time. Please try another addon. This will be corrected in the future, sorry for the inconvenience.|r");
	end
	
	IMRegisterPricingAddon("AuctionLite", GetValue, IsEnabled, OnSelect);
	
end