Mercurial > wow > inventory
view AuctionAddons/Auctioneer.lua @ 30:8177b5bcb883
Added tag ?NYI? to the ?Alert when below minimum? option.
Added ?Don't queue when below threshold? option. This isn?t functional yet, just a place holder to indicate it will be implemented at a later time.
Added initial functionality for ?virtual? groups (feel free to suggest a better name :P), with these groups you can override the defaults for multiple groups. By default, settings will be retrieved as CURRENT_GROUP -> DEFAULTS, with this it can become CURRENT_GROUP -> VIRTUAL_GROUP -> DEFAULTS. This will come in handy when managing a lot of groups. Full functionality is not yet implemented, it is just a placeholder to indicate it will be added.
Reduced the softmax for the restock target option from 1000 to 100 to make the slider actually useful. You can still enter a value of upto 100.000 in the edit box below.
author | Zerotorescue |
---|---|
date | Fri, 29 Oct 2010 13:43:41 +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