From dfec370e517f7da27a6bf49b80333e6adfaefa76 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Mon, 29 Mar 2010 01:06:30 +0200 Subject: [PATCH] default list entries won't destroy your previous settings --- helper.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helper.lua b/helper.lua index d70a765..261e9fe 100644 --- a/helper.lua +++ b/helper.lua @@ -88,8 +88,8 @@ end -- inserts some basic list settings function BrokerGarbage:CreateDefaultLists(global) if global then - BG_GlobalDB.include[46106] = true -- argentum lance - BG_GlobalDB.include[6265] = 20 -- soulshards + BG_GlobalDB.include[46106] = true -- argentum lance + if not BG_GlobalDB.include[6265] then BG_GlobalDB.include[6265] = 20 end -- soulshards BG_GlobalDB.include["Consumable.Water.Conjured"] = true BG_GlobalDB.forceVendorPrice["Consumable.Food.Edible"] = true BG_GlobalDB.forceVendorPrice["Consumable.Water.Basic"] = true @@ -119,8 +119,8 @@ function BrokerGarbage:CreateDefaultLists(global) elseif BrokerGarbage.playerClass == "WARRIOR" or BrokerGarbage.playerClass == "ROGUE" or BrokerGarbage.playerClass == "DEATHKNIGHT" then BG_LocalDB.autoSellList["Consumable.Water"] = true elseif BrokerGarbage.playerClass == "SHAMAN" then - BG_LocalDB.include[17058] = 20 -- fish oil - BG_LocalDB.include[17057] = 20 -- scales + if not BG_LocalDB.include[17058] then BG_LocalDB.include[17058] = 20 end -- fish oil + if not BG_LocalDB.include[17057] then BG_LocalDB.include[17057] = 20 end -- scales end BG_LocalDB.exclude["Misc.Reagent.Class."..string.gsub(string.lower(BrokerGarbage.playerClass), "^.", string.upper)] = true end -- 1.7.9.5