Download
(5 Kb)
Download
Updated: 03-13-13 05:51 PM
Pictures
File Info
Compatibility:
Thunder Isle (5.2)
Mists of Pandaria (5.0.4)
Updated:03-13-13 05:51 PM
Created:12-21-10 12:54 PM
Downloads:4,621
Favorites:87
MD5:
xanMortarPestle
Version: v2.8
by: Xruptor [More]
Definition: Mortar and Pestle

xanMortarPestle will make Milling, Prospecting, Lockpicking and Disenchanting easy by performing any of these tasks with just one single mouse click.

This addon will automatically perform the correct tradeskill spell on any item in your inventory. All you have to do is hold <ALT> and click on the item to Mill/Prospect/Disenchant instantly.

Possible items are compared to a list of known Herbs and Ores. That way there is no need to scan the tooltip.

A shimmering affect around the item is given to you when a valid possible tradeskill item has been found.

Green = Milling
Orange = Prospecting
Lavander = Disenchanting
Blood Red = Lockpicking


How to use this addon:
  • First make sure your not in combat
  • Hold down the <ALT> key and mouse over an item in your bags
  • If the item is shimmering then a valid item has been found
  • Left-Click the item while holding <ALT> to perform the proper tradeskill spell.



A Note About Disenchanting:
I took a different approach to tackling Non-Disenchantable items. Instead of having a large table with Non-Disenchantable items, I decided to go with a learning curve instead.

Items that are found to be Non-Disenchantable (even after built-in checks) are added to a database. Once they are added to the database you will be forbidden from disenchanting that item in the future. Items that are added to the database will no longer produce the shimmering effect. So this makes it easy to know which items cannot be disenchanted.

Using this learning curve should reduce memory usage as it will only learn items as you come across them.

NOTE: If you use an addon to disable or remove UI Error Messages, then this feature MAY not work for you.



NOTE: Warning due to SEVERE restrictions on action buttons by Blizzard. Several anomalies may occur if you do this in combat or enter combat while using this mod. Sadly there is NO way around this with the SecureActionButton handlers that Blizzard has placed.

However, I've gone above and beyond to prevent these sort of issues from occurring. It's not 100% foolproof, but it's the best possible solution available that I could give. Including disabling key features that would cause errors and in combat checks.

Suffice to say you really shouldn't notice anything out of the ordinary.

Please keep this into consideration before posting a comment.



You can view Alpha Builds at my Github tracker.
v2.8
-Updated TOC to patch 5.2

v2.7
-Added a check so that the autoshine turns off after a second of non-use.
-Added Desecrated Herb
-Added vine-cracked junkbox
-Added ghost iron box
-Added Elementium Lockbox

v2.5
-Added Kyparite (forgot to add it.. darn these new ores)

v2.4
-Added new ore and herbs from Mists of Panderia.

v2.3
-Updated for Mists of Panderia patch 5.01
-Fix for Auction Frame items

v2.2
-A small fix to allow the addon to be a bit more flexible with other addons.
-The new fix should allow it to properly work with Elvui.
-A special thanks to pingumania at wowinterface.com for providing a quick fix.

v2.1
-Small fix to prevent actions from being performed while the mailbox window is opened.

v2.0
-Final fix for the equipment management portion of the character panel. Users should no longer be able to alt_disenchant their items using the character panel or equipment panel.

v1.9
-Added extra checks to make sure you can't use this on the Character window.
-Not sure how but someone said they were able to get this to happen on their character panel. The only thing I can think of is they have a modded character panel.

v1.8
-Toc update for patch 4.3

v1.7
-Updated for Firelands.
-YES I'm back to playing WOW, expect updates to all my addons.

v1.6:
-Updated TOC for patch 4.1
-Added Lockpicking! (special thanks to Kailsoul from wowinterface.com)

Version 1.5:
-NOTE: Had to switch it back to <ALT> due to complications!
-SIGH, for some reason CTRL+SHIFT does not work well on certain addons and certain UI's.
-I've put it back to <ALT> and added checks for the Character Panel equipment switch.
-Added a check for the LootFrame.
-I've fixed up the code a bit as well.
-Last update till after christmas >.>

Version 1.3:
-Due to conflicts with the Equipment Manager on the Character Frame (Hold ALT to switch gear).
-I've changed the modifier to CTRL+SHIFT-Click.
-Added some checks to make sure the item is not an equipped item.
-LOL would suck if you disenchanted an item that is equipped.


Version 1.2:
-Rather then having a long non-DE list, items that are found to be non-DE are added to a database.
-Fixed a slight typo I missed.
-Seperated the colors
-Added support for Error Grabbing.
-Added an additional layer to DE to check for Equippable items.
-I'm not entirely sure about the global translations though. Need to check on that ;0)


Version 1.1:
-A slight fix for the right <ALT> button. Whoops :P
Optional Files (0)


Archived Files (16)
File Name
Version
Size
Author
Date
v2.7
5kB
Xruptor
11-03-12 07:00 AM
v2.5
4kB
Xruptor
09-30-12 10:20 AM
v2.4
4kB
Xruptor
09-28-12 09:54 PM
v2.3
4kB
Xruptor
09-24-12 06:02 PM
v2.2
4kB
Xruptor
04-29-12 08:39 AM
v2.1
4kB
Xruptor
02-27-12 06:17 AM
v2.0
4kB
Xruptor
12-19-11 02:46 PM
v1.9
4kB
Xruptor
12-19-11 02:34 PM
v1.8
4kB
Xruptor
11-29-11 02:17 PM
v1.7
4kB
Xruptor
10-24-11 09:49 AM
1.6
4kB
Xruptor
05-03-11 06:29 AM
1.5
4kB
Xruptor
12-24-10 02:11 PM
1.3
3kB
Xruptor
12-23-10 01:07 PM
1.2
3kB
Xruptor
12-23-10 11:21 AM
1.1-a
3kB
Xruptor
12-21-10 05:22 PM
1.0
3kB
Xruptor
12-21-10 12:54 PM


Post A Reply Comment Options
Old 05-11-11, 01:57 PM  
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view AddOns

Forum posts: 221
File comments: 69
Uploads: 8
Just want to say thanks, switched from Molinari and - hmmm - a prospecting addon to this and it works like a charm!
__________________
Mischback is offline Report comment to moderator  
Reply With Quote
Old 05-05-11, 08:15 AM  
skyey_2003
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: about Milling

Originally posted by Xruptor
Could you be a bit more descriptive? That doesn't really help me at all. What causes the issue? How does it happen? When does it happen? What am I to look for? How can I reproduce the error?

Those kind of questions is a bit more helpful for me
I'm sorry, it's my mistake, It can work, I like it.
skyey_2003 is offline Report comment to moderator  
Reply With Quote
Old 05-05-11, 06:31 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 562
Uploads: 37
Re: about Milling

Originally posted by skyey_2003
It dosn't work when I want to mill, but disenchanting is OK, I don't know why...
Could you be a bit more descriptive? That doesn't really help me at all. What causes the issue? How does it happen? When does it happen? What am I to look for? How can I reproduce the error?

Those kind of questions is a bit more helpful for me
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Old 05-05-11, 04:27 AM  
skyey_2003
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
about Milling

It dosn't work when I want to mill, but disenchanting is OK, I don't know why...
skyey_2003 is offline Report comment to moderator  
Reply With Quote
Old 05-03-11, 05:47 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 562
Uploads: 37
kaisoul: Thanks a ton for the update. I will be releasing the new addition for lockpicking in a few moments. I have given you credit

shinchih2001: I haven't heard of anyone ever having that issue. Are you sure its not another mod causing it? This mod is extremely simple. It may be your custom UI or bag mod or something. I suggest you turn every addon off except this one and see if still happens.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Old 04-05-11, 05:41 AM  
kaisoul
A Fallenroot Satyr
 
kaisoul's Avatar

Forum posts: 20
File comments: 24
Uploads: 0
Originally posted by Xruptor
Hmm it might be possible. It would only work on items in your bags though to lockpick. It won't work with objects outside your bag in the environment.

In order for this to work, I would have to compile a list of all known objects that can be lockpicked.
Code:
--[[------------------------
	LOCK
--------------------------]]

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,	
}
added that to the itemDB lua for a listing of all locked items one can have in there bags. then i added this to the xanMortarPestle lua

Code:
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
}
Code:
--check for DB
	if not XMP_DB then XMP_DB = {} end
	
	--milling
	if(IsSpellKnown(51005)) then
		spells[51005] = GetSpellInfo(51005)
	end

	--prospecting
	if(IsSpellKnown(31252)) then
		spells[31252] = GetSpellInfo(31252)
	end
	
	--disenchanting
	if(IsSpellKnown(13262)) then
		spells[13262] = GetSpellInfo(13262)
	end

	--lock picking
	if(IsSpellKnown(1804)) then
		spells[1804] = GetSpellInfo(1804)
	end
Code:
--first check milling
	if xMPDB.herbs[id] and spells[51005] then
		return 51005
	end
	
	--second checking prospecting
	if xMPDB.ore[id] and spells[31252] then
		return 31252
	end
	
	--third checking lock picking
	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
		--only allow if the type of item is a weapon or armor, and it's a specific quality
		if (itemType == ARMOR or itemType == L.Weapon) and qual > 1 and qual < 5 and IsEquippableItem(link) and not XMP_DB[id] then
			return 13262
		end
	end
The sections of code are exsamples of the codes in the lua where i added a little here and there to make lockpicking function like the rest. Hope that helps. Note i only did this cause im lazy on my rogue and i love this addon and thought i might do something nice for the author.
__________________
kaisoul is offline Report comment to moderator  
Reply With Quote
Old 04-02-11, 02:16 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 211
Uploads: 0
cause game crash

it's several times
when i use this ui too with too many items
will cause game crash
shinchih2001 is offline Report comment to moderator  
Reply With Quote
Old 03-12-11, 11:53 PM  
kaisoul
A Fallenroot Satyr
 
kaisoul's Avatar

Forum posts: 20
File comments: 24
Uploads: 0
Originally posted by Xruptor
Hmm it might be possible. It would only work on items in your bags though to lockpick. It won't work with objects outside your bag in the environment.

In order for this to work, I would have to compile a list of all known objects that can be lockpicked.
I was just about to come on here and ask you for lockpicking ability also ^_^
__________________
kaisoul is offline Report comment to moderator  
Reply With Quote
Old 01-03-11, 06:23 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 562
Uploads: 37
Originally posted by NiQil
I wonder if it might be possible to include lockpicking into this addon? Rogue especially, but also bs skeleton keys and eng seaforium charges. Would be a useful addition, I think.
Hmm it might be possible. It would only work on items in your bags though to lockpick. It won't work with objects outside your bag in the environment.

In order for this to work, I would have to compile a list of all known objects that can be lockpicked.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Old 01-01-11, 09:21 AM  
NiQil
A Deviate Faerie Dragon

Forum posts: 13
File comments: 57
Uploads: 0
I wonder if it might be possible to include lockpicking into this addon? Rogue especially, but also bs skeleton keys and eng seaforium charges. Would be a useful addition, I think.
NiQil is offline Report comment to moderator  
Reply With Quote
Old 12-24-10, 02:13 PM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 562
Uploads: 37
Version 1.5:
-NOTE: Had to switch it back to <ALT> due to complications!
-SIGH, for some reason CTRL+SHIFT does not work well on certain addons and certain UI's.
-I've put it back to <ALT> and added checks for the Character Panel equipment switch.
-Added a check for the LootFrame.
-I've fixed up the code a bit as well.
-Last update till after christmas >.>
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Old 12-24-10, 12:59 PM  
kazama14
A Kobold Labourer

Forum posts: 0
File comments: 34
Uploads: 0
I tried Alt as well and that didn't work either. I am using cargbags for a bag addon. Molinari works just fine but I cant seem to get XanMortarPestle to work.
kazama14 is offline Report comment to moderator  
Reply With Quote
Old 12-24-10, 12:47 PM  
Ravnik
A Murloc Raider
 
Ravnik's Avatar

Forum posts: 7
File comments: 4
Uploads: 0
Originally posted by Xruptor
Odd works fine on my end. You sure you don't have any other mods that may be conflicting? I just asked some of my guildies and they are using it just fine. You must have some bag mod or some sort of addon that is overwriting the cltr+shift. You have to hold both keys down and then hover an item just to clarify.
I just tested this..

Doesnt work with the Bagnon addon going.
But turning off my bag mod, allowed it to work just fine(at least for milling...dont have any of the other skills )
Ravnik is offline Report comment to moderator  
Reply With Quote
Old 12-24-10, 06:25 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 562
Uploads: 37
Originally posted by kazama14
Holding CTRL+SHIFT and mousing over prospectable ore doesn't seem to do anything. I tried both left and right shift to see if it would matter. This was on Copper Ore, I was unable to test on milling or disenchanting.

Thanks.
Odd works fine on my end. You sure you don't have any other mods that may be conflicting? I just asked some of my guildies and they are using it just fine. You must have some bag mod or some sort of addon that is overwriting the cltr+shift. You have to hold both keys down and then hover an item just to clarify.

Finally, did it work before for you when it was just the <ALT> key?

Let me know what you find. I can solve the problem but I'm going to need a bit more information.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Last edited by Xruptor : 12-24-10 at 07:33 AM.
Xruptor is offline Report comment to moderator  
Reply With Quote
Old 12-24-10, 05:15 AM  
ovidiuflaviu
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Having the same problem. Tried with milling.
ovidiuflaviu is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: