Zerotorescue@36: do Zerotorescue@36: Zerotorescue@36: local ZA; Zerotorescue@36: Zerotorescue@36: local function GetValue(link) Zerotorescue@36: return (ZA and ZA:GetModule("Scan"):GetLowestAuction(ZA:GetSafeLink(link))) or -1; Zerotorescue@36: end Zerotorescue@36: Zerotorescue@36: local function IsEnabled() Zerotorescue@36: local isEnabled = (select(6, GetAddOnInfo("ZeroAuctions")) == nil); Zerotorescue@36: Zerotorescue@36: if isEnabled then Zerotorescue@36: ZA = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions"); Zerotorescue@36: end Zerotorescue@36: Zerotorescue@36: return isEnabled and ZA; Zerotorescue@36: end Zerotorescue@36: Zerotorescue@36: local function OnSelect() Zerotorescue@36: local addonName = "|r|cfffed000ZeroAuctions|r|cffff6600"; Zerotorescue@36: Zerotorescue@36: print("|cffff6600Using " .. addonName .. " as pricing addon is not recommended. Items at the auction house above the \"ignore stacks over\" will always be ignored (and thus not affect the displayed price) and if you are the only one posting, " .. addonName .. " will act as if there are no auctions up.|r"); Zerotorescue@36: end Zerotorescue@36: Zerotorescue@36: IMRegisterPricingAddon("ZeroAuctions", GetValue, IsEnabled, OnSelect); Zerotorescue@36: Zerotorescue@36: end Zerotorescue@36: