comparison AuctionAddons/ZeroAuctions.lua @ 36:58fb38f0b447

The list of possible commands when you write /im without any arguement will now include commands inserted by modules with their own descriptions. Clicking a command in this list will now execute it. The slash command handler function is now a global so you can invoke these through other methods. Added an optional event function to registering auction pricing addons, when defined this will be executed when the pricing addon gets selected. Removed the unused ?Override local item data? option. Added ?AuctionProfitMaster? and ?ZeroAuctions? pricing support. The pricing info displayed in the summary window will be used for this. Trying to queue without any items in the summary should no longer give an error.
author Zerotorescue
date Sat, 20 Nov 2010 17:24:16 +0100
parents
children
comparison
equal deleted inserted replaced
35:31e5da6a2b16 36:58fb38f0b447
1 do
2
3 local ZA;
4
5 local function GetValue(link)
6 return (ZA and ZA:GetModule("Scan"):GetLowestAuction(ZA:GetSafeLink(link))) or -1;
7 end
8
9 local function IsEnabled()
10 local isEnabled = (select(6, GetAddOnInfo("ZeroAuctions")) == nil);
11
12 if isEnabled then
13 ZA = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions");
14 end
15
16 return isEnabled and ZA;
17 end
18
19 local function OnSelect()
20 local addonName = "|r|cfffed000ZeroAuctions|r|cffff6600";
21
22 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");
23 end
24
25 IMRegisterPricingAddon("ZeroAuctions", GetValue, IsEnabled, OnSelect);
26
27 end
28