From 7c423302a3b79665c435526436e864df5ff32d77 Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Tue, 30 Nov 2010 22:12:25 -0800 Subject: [PATCH] Made shopping list buy what's in the list instead of trying to be 'smart.' Changed pushable priority of queue window. --- CauldronData.lua | 35 ++++++++++++++++++++++++++++++++++- CauldronMain.lua | 2 +- CauldronShoppingList.lua | 8 ++++---- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/CauldronData.lua b/CauldronData.lua index d574623..628552f 100644 --- a/CauldronData.lua +++ b/CauldronData.lua @@ -7,10 +7,11 @@ Cauldron.vars.tools = { 7005, -- skinning knife 5956, -- blacksmith hammer 2901, -- mining pick - -- gnomish army knife + -- Gnomish army knife 6256, -- fishing pole 20815, -- jeweler's kit 20824, -- simple grinder + -- hammerpick }; -- vendor item list @@ -82,3 +83,35 @@ Cauldron.vars.vendoritems = { Cauldron.vars.results = { }; +-- map of items generated from "support" professions (e.g., mining), or from prospecting (jewelcrafting) +-- or milling (inscription) +Cauldron.vars.generateditems = { + -- MINING + -- titansteel + -- titanium + -- saronite + -- cobalt + -- khorium + -- hardened adamantite + -- elementium + -- felsteel + -- adamantite + -- fel iron + -- arcanite + -- thorium + -- mithril + -- iron + -- gold + -- silver + -- truesilver + -- bronze + -- copper + -- tin + -- etc.... + + -- PROSPECTING + -- etc.... + + -- MILLING + -- etc.... +}; diff --git a/CauldronMain.lua b/CauldronMain.lua index c8c2be0..107c484 100644 --- a/CauldronMain.lua +++ b/CauldronMain.lua @@ -1,7 +1,7 @@ -- $Revision: 212 $ -- Cauldron main file -UIPanelWindows["CauldronQueueWindowFrame"] = { area = "left", pushable = 3 }; +UIPanelWindows["CauldronQueueWindowFrame"] = { area = "left", pushable = 6 }; Cauldron = LibStub("AceAddon-3.0"):NewAddon("Cauldron", "AceEvent-3.0", "AceTimer-3.0", "AceConsole-3.0", "AceHook-3.0", "LibLogger-1.0"); local L = LibStub("AceLocale-3.0"):GetLocale("Cauldron"); diff --git a/CauldronShoppingList.lua b/CauldronShoppingList.lua index 2f21324..ce480cb 100644 --- a/CauldronShoppingList.lua +++ b/CauldronShoppingList.lua @@ -191,10 +191,10 @@ function CauldronShopping:AutoBuyShoppingItems(list, requestor) -- check if the merchant has the item and it can be purchased if merchant[item] then -- check if the toon has enough of the item already - local counts = Cauldron:ReagentCount(item); - if counts.total < amount then - CauldronShopping:BuyItem(item, merchant[item], amount - counts.total); - end + -- local counts = Cauldron:ReagentCount(item); + -- if counts.total < amount then + CauldronShopping:BuyItem(item, merchant[item], amount); -- amount - counts.total + -- end end end end -- 1.7.9.5