diff --git a/itemDB.lua b/itemDB.lua index fef7842..ece4637 100644 --- a/itemDB.lua +++ b/itemDB.lua @@ -80,3 +80,39 @@ xMPDB.ore = { [52183] = true, [52185] = true, } + + +--[[------------------------ + LOCK +--------------------------]] +--Special thanks to kaisoul from WOWinterface.com + +xMPDB.lock = { + [4632] = true, + [4633] = true, + [4634] = true, + [4636] = true, + [4637] = true, + [4638] = true, + [5758] = true, + [5759] = true, + [5760] = true, + [6354] = true, + [6355] = true, + [7209] = true, + [6712] = true, + [12033] = true, + [13875] = true, + [16882] = true, + [16883] = true, + [16884] = true, + [16885] = true, + [29569] = true, + [31952] = true, + [43575] = true, + [43622] = true, + [43624] = true, + [45986] = true, + [63349] = true, + [68729] = true, +} diff --git a/xanMortarPestle.lua b/xanMortarPestle.lua index 8886e40..7861fbd 100644 --- a/xanMortarPestle.lua +++ b/xanMortarPestle.lua @@ -8,6 +8,7 @@ local colors = { [51005] = {r=181/255, g=230/255, b=29/255}, --milling [31252] = {r=1, g=127/255, b=138/255}, --prospecting [13262] = {r=128/255, g=128/255, b=1}, --disenchant + [1804] = {r=200/255, g=75/255, b=75/255}, --lock picking (Thanks to kaisoul) } --[[------------------------ @@ -131,6 +132,11 @@ function frm:PLAYER_LOGIN() spells[13262] = GetSpellInfo(13262) end + --lock picking (thanks to Kaisoul) + if(IsSpellKnown(1804)) then + spells[1804] = GetSpellInfo(1804) + end + GameTooltip:HookScript('OnTooltipSetItem', function(self) --do some checks before we do anything if InCombatLockdown() then return end --if were in combat then exit @@ -197,6 +203,11 @@ function processCheck(id, itemType, qual, link) if xMPDB.ore[id] and spells[31252] then return 31252 end + + --third checking lock picking (thanks to Kailsoul) + if xMPDB.lock[id] and spells[1804] then + return 1804 + end --otherwise check disenchat if itemType and qual and XMP_DB and spells[13262] then diff --git a/xanMortarPestle.toc b/xanMortarPestle.toc index 8430e50..8bd26a8 100644 --- a/xanMortarPestle.toc +++ b/xanMortarPestle.toc @@ -1,8 +1,8 @@ -## Interface: 40000 +## Interface: 40100 ## Title: xanMortarPestle ## Notes: Mill/Prospect/Disenchant using (Alt + Right-Click) on an item. ## Author: Xruptor -## Version: 1.5 +## Version: 1.6 ## SavedVariables: XMP_DB xanMortarPestle.lua