From 75c1a3fc0fddcbca8a60a1cfd37588a7dcf4614a Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sun, 14 Mar 2010 01:39:53 +0100 Subject: [PATCH] updated readme.txt. fixed some things, again --- core.lua | 26 ++++++++++++++------------ lootmanager.lua | 2 +- readme.txt | 10 ++++++++-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/core.lua b/core.lua index 74fb124..df80e79 100644 --- a/core.lua +++ b/core.lua @@ -1021,18 +1021,20 @@ function BrokerGarbage:ScanInventory() BrokerGarbage.toSellValue = BrokerGarbage.toSellValue + value end - local currentItem = { - bag = container, - slot = slot, - itemID = itemID, - quality = quality, - count = count, - value = value, - source = source, - force = force, - } - - tinsert(BrokerGarbage.inventory, currentItem) + if BG_GlobalDB.dropQuality >= quality or isSell or isInclude then + local currentItem = { + bag = container, + slot = slot, + itemID = itemID, + quality = quality, + count = count, + value = value, + source = source, + force = force, + } + + tinsert(BrokerGarbage.inventory, currentItem) + end end end end diff --git a/lootmanager.lua b/lootmanager.lua index d654348..1e50c89 100644 --- a/lootmanager.lua +++ b/lootmanager.lua @@ -7,7 +7,7 @@ local function eventHandler(self, event, ...) if not BG_GlobalDB.useLootManager then return end if event == "CHAT_MSG_LOOT" then - if strfind(arg1, BrokerGarbage.locale.You) and BG_GlobalDB.autoDestroy then + if BrokerGarbage.locale.You and strfind(arg1, BrokerGarbage.locale.You) and BG_GlobalDB.autoDestroy then BrokerGarbage:AutoDestroy() end diff --git a/readme.txt b/readme.txt index a4d1b23..584cd37 100644 --- a/readme.txt +++ b/readme.txt @@ -88,7 +88,13 @@ Some examples: "%1$sx%2$d" -> [Hearthstone]x1 "%4$d/%5$d - %1$s" -> 18/48 - [Hearthstone] -8. Slash Commands +8. The Loot Manager +----------------- +The Loot Manager has several settings for you to play around with. If you don't want to use it, simply disable it in the ingame options panel or comment the corresponding lines in the Broker_Garbage.toc file (lootmanager.lua and lootmanager_options.lua). + +Items on your Include List (see it as a Blacklist) will never be looted, while Broker_Garbage will always try its best to loot those items that are on your Exclude List (works as a Whitelist). + +9. Slash Commands ----------------- Broker_Garbage supports a hand full of slash commands. These are /garbage or short, /garb. Parameters supported: @@ -110,7 +116,7 @@ Same as the above, just adds the item to the global include list. /garb value -or- /garb minvalue Sets the minimum item value in order for the item to be looted. '0' means every item may be looted. -9. How you can help +10. How you can help ----------------- I still need a few translations to get done. If you would like to help me with that, please do so on http://wow.curseforge.com/addons/broker_garbage/localization/ . Likewise, I need people to test the addon with different auction addons. If you have one that isn't yet supported, make a Feature Suggestion (see 4.). -- 1.7.9.5