World of Warcraft Quick Tips: New Herb Milling Macro

World of Warcraft Quick Tips: New Herb Milling Macro


Welcome to All My Alts quick tips. A brief but potent section that will hopefully help to ease or enhance your World of Warcraft game. Let's get started:
The Garrison Herb Garden
Back in Mists of Pandaria a player was able to use a simple /use macro to be able to mill their herbs. Along the road to Warlords of Draenor a few lines of code were changed. Now, if you use the old /use macro it will not allow you to mill past a stack of herbs that doesn't have exactly 5 in it. For those that do not use addons alike TSM destroy it can be frustrating.

However, there is a quick and easy save. Bring up your macro window by typing in /macro in your window and pressing enter. It should bring up the macro window.

Next we will make two macros. The first macro will be pressed once because it simply starts the script. Then you press the second macro repeatedly to continue milling to your hearst content.

Note: Make sure to name the macros just alike the bolded text and copy & paste the following code as exactly as shown:

Milling1
/run function FnH() for i=0,4 do for j=1,GetContainerNumSlots(i) do local t={GetItemInfo(GetContainerItemLink(i,j) or 0)} if t[7]=="Herb" and select(2,GetContainerItemInfo(i,j))>=5 then return i.." "..j,t[1] end end end end

Milling2
/run local f,l,n=AuM or CreateFrame("Button","AuM",nil,"SecureActionButtonTemplate") f:SetAttribute("type","macro") l,n=FnH() if l then f:SetAttribute("macrotext","/cast Milling\n/use "..l) SetMacroItem("Milling2",n) end
/click AuM

Once you do, you'll be able to continue milling from one stack of herbs to another without being stopped by less than 5 bundles of herbs.

Happy playing!
from: All My Alts


#milling herbs #milling herbs macro #milling herbs wod #milling herbs addon #herbs wod

Comments

Popular Posts