Mercurial > wow > inventory
comparison Plugins/CraftingAddons/TradeskillMaster_Crafting.lua @ 247:2bba1734cb17
Added support for TradeSkillMaster_Crafting.
| author | Zerotorescue |
|---|---|
| date | Tue, 08 Mar 2011 12:06:02 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 246:0de442454eb6 | 247:2bba1734cb17 |
|---|---|
| 1 do | |
| 2 | |
| 3 local function Queue(tradeSkillIndex, amount) | |
| 4 local resultItemLink = GetTradeSkillItemLink(tradeSkillIndex); | |
| 5 | |
| 6 return TSMAPI:AddItemToQueue(resultItemLink, amount, true); | |
| 7 end | |
| 8 | |
| 9 local function IsEnabled() | |
| 10 return (TSMAPI and TSMAPI.AddItemToQueue); | |
| 11 end | |
| 12 | |
| 13 IMRegisterCraftingAddon("TradeskillMaster_Crafting", Queue, IsEnabled); | |
| 14 | |
| 15 end |
