Thread Tools Display Modes
09-13-20, 03:59 AM   #1
leftleft
A Murloc Raider
Join Date: Aug 2020
Posts: 6
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.
  Reply With Quote
09-16-20, 11:23 PM   #2
leftleft
A Murloc Raider
Join Date: Aug 2020
Posts: 6
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.

Last edited by leftleft : 09-17-20 at 12:33 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Common herb Milling macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off