Mercurial > wow > inventory
diff Queue.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 | e732843b16d2 |
children | d903b0a151d3 |
line wrap: on
line diff
--- a/Queue.lua Wed Nov 03 19:38:53 2010 +0100 +++ b/Queue.lua Sat Nov 20 17:24:16 2010 +0100 @@ -4,8 +4,8 @@ function mod:OnEnable() -- Register our own slash commands addon:RegisterSlash(function() - self:QueueAll(); - end, "q", "que", "queue"); + mod:QueueAll(); + end, { "q", "que", "queue" }, "|Hfunction:InventoriumCommandHandler:queue|h|cff00fff7/im queue|r|h (or /im q) - Queue all items found in the currently opened profession that are within the groups tracked at this current character."); self:RegisterMessage("IM_QUEUE_ALL"); self:RegisterMessage("IM_QUEUE_GROUP"); @@ -45,11 +45,14 @@ -- Process every single tradeskill self:ProcessTradeSkill(i, groupName, temp); end - - for itemId, _ in pairs(addon.db.global.groups[groupName].items) do - if not temp[itemId] then - local itemLink = select(2, GetItemInfo(itemId)); - print("Couldn't queue " .. itemLink .. " (not part of this profession)"); + + if addon.db.global.groups[groupName].items then + for itemId, _ in pairs(addon.db.global.groups[groupName].items) do + if not temp[itemId] then + local itemLink = select(2, GetItemInfo(itemId)); + + print("Couldn't queue " .. itemLink .. " (not part of this profession)"); + end end end end