WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Common herb Milling macro (https://www.wowinterface.com/forums/showthread.php?t=58209)

leftleft 09-13-20 03:59 AM

Common herb Milling macro
 
Code:

/run for b=0,4 do for s=1,36 do i={GetContainerItemInfo(b,s)}c={GetItemInfo(i[7]or 1)}if c[7]=="Herb"and c[3]==1 and i[2]>4 then n="AutoMill"i=GetMacroIndexByName(n)EditMacro(i,n,"","/cast Milling\n/use "..b.." "..s)end;end;end
/click ActionButton1


You need 2 macros.
First, just make another macro which is named unique as 'AutoMill' at Main action bar #1. And execute this macro.
You can do milling common herbs 1 time per macro executing.
It is an old macro, but I think it would work.

leftleft 09-16-20 11:23 PM

If you execute too much fast while merchant window is opened, above macro may sell herbs unintentionally.
If you close all tradable windows or execute macro not so fast, there is no problem.
But if you don't want to take a risk, here is a patch. It closes the merchant window.

Code:

/run CloseMerchant()for b=0,4 do for s=1,36 do i={GetContainerItemInfo(b,s)}c={GetItemInfo(i[7]or 1)}if"Herb"==c[7]and 1==c[3]and 4<i[2]then n="AM"i=GetMacroIndexByName(n)EditMacro(i,n,"","/cast Milling\n/use "..b.." "..s)end;end;end
/click ActionButton12


Make another macro which is unique named "AM" and put it at Main action bar #12, the last box. And execute this macro for milling.


All times are GMT -6. The time now is 02:35 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI