Mercurial > wow > inventory
view Plugins/CraftingAddons/Cauldron.lua @ 176:26c750a10b14
Renamed Inventorium debug channel to IMDebug (so it?s easier to recognize only IM changes, not from other addons), write /im d to register this new channel.
Implemented stock alerts.
Added ?don?t alert at characters? option which allows you to track groups at characters without being bothered about low stock.
You can change the speed of the stock alert at the extra config tab.
author | Zerotorescue |
---|---|
date | Sun, 30 Jan 2011 15:39:18 +0100 |
parents | 3bec0ea44607 |
children |
line wrap: on
line source
do local function Queue(tradeSkillIndex, amount) local tradeskillName, currentLevel, maxLevel = GetTradeSkillLine(); local link = GetTradeSkillItemLink(tradeSkillIndex); local itemName = link and link:match("%[([^%[%]]*)%]"); if not itemName then return; end local skillInfo = Cauldron:GetSkillInfo(tradeskillName, itemName); CauldronQueue:AddItem(Cauldron.db.realm.userdata[Cauldron.vars.playername].queue, skillInfo, amount); Cauldron:UpdateQueue(); -- update the shopping list Cauldron:UpdateShoppingListFromQueue(); Cauldron:UpdateButtons(); return; end local function IsEnabled() return (Cauldron and CauldronQueue and CauldronQueue.AddItem); end local function OnSelect() local addonName = "|r|cfffed000Cauldron|r|cffff6600"; print("|cffff6600" .. addonName .. " has not yet been tested. Please report any of your experiences.|r"); end IMRegisterCraftingAddon("Cauldron", Queue, IsEnabled, OnSelect); end