Log in

View Full Version : Macro for applying weapon poisons?



MrHepp
01-15-2009, 07:58 PM
I grew tired of applying poisons manually to my rogue alt's weapons and tried to write a macro that performs this automatically. The problem is that I don't want to replace any existing poison; I only want to apply it if there is none there before.

This macro almost works:


/use Deadly Poison VII
/use 16
/click StaticPopup1Button2

It attempts to apply Deadly Poison to the main hand weapon, and clicks "No" if the "Do you want to replace <existing poison> with <this poison>?" dialog box shows up. But if this happens the poison is still selected and I have to press Escape to deselect it.

Now I click the macro key first, wait a couple of seconds and then press Escape. It works, but I want to avoid the Escape part. I there any way to do this?

elsegundo
01-15-2009, 09:07 PM
question to add to this.
would this macro work for buff items like stones and oils?
thanks!

Bloodcloud
01-15-2009, 10:29 PM
just get the smartbuff addon :)

solves all those problems.

MrHepp
01-16-2009, 08:28 AM
question to add to this.
would this macro work for buff items like stones and oils?
thanks!Yes, it works for all kinds of buff items. It's exactly the same as right-clicking an item in your inventory and then click an item that you have equipped.

MrHepp
01-16-2009, 08:30 AM
just get the smartbuff addon :)

solves all those problems.Aah, there is an addon for all types of problems :) But I still think my macro can work by just adding a line that clears the selection if the poison wasn't applied. I will give some more thought.