Get an Epic Experience with Premium

MillButton

Inscription Login to Add Favorites
  • 4 Likes
  • World of Warcraft
  • 306 Monthly Downloads
  • Supports: 5.4.8
  • 9,404 Total Downloads
  • Updated 05/29/2014
  • Created 09/07/2011
  • 12 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: Creative Commons
  • Newest File: MillButton 1.35
or

About MillButton

Description

MillButton is a small addon that greatly simplifies the macro a scribe uses to mill semi-large quantities of herbs. Instead of being limited by the macro's resources - character limit, what functions can be called - the new macro (instructions are further down) calls MillButton, which executes from the Addons. ((If you are looking for an assistant for Prospecting, check out ProspectButton by flow0284!))

Important:

  • The herbs must be: in stacks of 5; multiples of 5; or at least greater than or equal to 5. The addon will not and cannot compact disparate same-type stacks. It will output the message "No more herbs in stacks of 5 or more." to your chat window.
  • Make certain that only the herbs you want to mill are in your bags. The addon is not capable of differentiating between mill and don't-mill.
  • If you are a scribe that does a super load of milling on a constant basis, i.e.: to create and sell lots of glyphs on the Auction House, I suggest using a different addon. MillButton is geared for scribes that perform milling in spurts.
  • MillButton now mills Desecrated Herb again! Thank you Puxx and Ro.
  • Added locale support for deDE, esES/esMX, frFR, itIT, and ptBR! Big thank you to flow0284! Added locale support for ruRU! Thank you to Black_Mokona.
  • MillButton now ignores Golden Lotus and all partial herbs (ex: Torn Green Tea Leaf)! flow0284 is awesome.

Instructions

Download the addon and place it in your AddOns folder. The AddOns folder is located within the Interface folder of your World of Warcraft folder. To give you an idea: C:\Program Files\World of Warcraft\Interface\AddOns. If you are using the Curse client, then don't worry about this step.

Next, make certain you have MillButton enabled in the Addons list. Launch World of Warcraft. At the character selection screen, look at the bottom left for the AddOns button. Click the button. Scroll, if necessary, down the list until you see "MillButton". Click next to it to place a check mark (click again to remove the check mark, disabling MillButton, if you want to turn the addon off). Click "Okay".

Now log in to the character you mill with. Once in the game, type /macro . This shortcut command opens up your Macro page. NOTE: If you have multiple characters that you will use to mill herbs, then stay in the General Macros tab. Otherwise, click <Character name> Specific Macros. Or not. Whichever you prefer or works best for you.

Choose an icon for the macro to use. Name it something appropriate to what you will use it for. Keep it short. In my case, I named it "mill".

In the box labeled "Enter Macro Commands" type the following text:

#showtooltip Milling
/run MillButtonSetup()
/click MillButton

If you want the addon to tell you in your chat window what herbs were skipped, use this macro instead:

#showtooltip Milling
/runMillButtonSetup2()
/click MillButton

These macros work no matter your game locale.

Remember to click the Save button! Just in case. :)

Finally, click and drag the icon to any location on your action bars. Now if you want, you can - as Ro put it - "Put it on mousewheel and spin ahoy." I myself prefer to click.

I hope this is useful! If I wasn't clear on something, please let me know in the Comments section on Curse.com.

Credit

Last but never least - credit and thank you to Ro of Hyjal for creating and sharing this in the WoW Professions forum (link). (Plus, I'm really sorry that I missed giving you credit for so long, I honestly thought I'd written it in here!) I'm maintaining it on Curse so more people are aware of it and can benefit from it. Ro, you are awesome. <3

29 May 2014 - Changes by flow0284:

  • Split internal herb database from corecode into extra file "herb_db.lua"
  • Prepared Database with herbs from latest WoD Alpha Build, there are many new Petals, Stems, Leafs and more for "old" content.
  • For example: Cinderbloom Petal, Tiger Lily Petal, Gromsblood Leaf
  • Updated translations and we need some translators for: French, Italian, Korean, Russian, Simplified and Traditional Chinese, Spanish and Latin American Spanish. If you are a good translator, so please visit http://wow.curseforge.com/addons/millbutton/localization/ and help us to translate these few phrases.
  • increment version to v1.35

11 May 2014 - Changes by flow0284:

Fixed the latest issue that the addon stopped working when MillButtonSetup().
Re-compact the aliok's changes in the code.
Also tested the changes in german and english WoW client. If MillButtonSetup() was used the user gets NO information about skipped herbs and the addon mills the millable herbs in the users bags. If MillButtonSetup2() was used the user gets the informatin about skipped herbs with ItemLink in Mainchatwindow and the addon mills the millable herbs in the users bags.
Increment version to v1.34b for Beta testing.
If there were no errors for other users we release the version.
Please do not hesitate to leave feedback in the comments! Or use the Ticketsystem on http://wow.curseforge.com/addons/millbutton/tickets/**

10 May 2014 - Changes by aliok:

  • Fixes an issue with MillButtonSetup() which may have been introduced when MillButtonSetup2() was added for users wanting a report of any herbs skipped. Code probably isn't as compact as it could be, will look into consolidating. Please do not hesitate to leave feedback! You can leave a message on the addon's page at curse.com or contact me directly at Curse (aliok), MMO-Champion (Aliok), or Twitter (AliokWOWDB).
  • increment to v1.33

v1.32 - Changes by flow0284:
In my last changes I forgot to remove some tested functions, sorry my fault.
Now MillButton is again able to mill herbs. Huge SORRY!

Removed localization for macro_spell "milling", now we use Blizzards SpellID

ToDo: Restack function for herbs in our bags and maybe a sortbag function.

v1.31 - Changes by flow0284
Some code cleanup and moved localizations into a subfolder called "locales".
Added changelog file into Addonfolder.
Added to Curseforge our localizationsstrings, there are some localizations that needs some review.
Added support for AddonLoader Addon.

ToDo: Restack function for herbs in our bags and maybe a sortbag function.

03 May 2014 - Changes by flow0284:
Removed translations for ItemType "Herb", "Desecrated Herb" and for each partial herb.
Added AceLocale-3.0 Support for better translations (if needed in future).
Added internal table for ignored herbs that cannot be milled like Golden Lotus and partial herbs.
Added second table for millable herbs like Desecrated Herb. (Already prepared for WoD)
- Both tables now use Blizzards ItemIDs so we dont need herb translations again.
Added information in DefaultChat for skipped herbs that cannot be milled.
- If you want to use it, change your macro to /run MillButtonSetup2() /click MillButton

ToDo:
Restack function for herbs in our bags and maybe a sortbag function.

29 Apr 2014 - MillButton now supports the locale ruRU! Thank you Black_Mokona for providing the translation. Also, HUGE thanks to flow0284 for sharing his modifications to the addon - it now will ignore any herbs that cannot be milled, like Golden Lotus and partial herbs (ex: Torn Green Tea Leaf). As always, if you experience a problem with the addon you may comment on the Curse addon page for MillButton or send me a PM.

28 Feb 2014 - MillButton now supports additional locales: deDE, esES/esMX, frFR, itIT, and ptBR. Thank you to flow0284 for helping make this happen! As a side note, I need French and Italian translators. Don't worry, it's only for a single line - "No more herbs in stacks of 5 or more." Any Russian speakers? flow0284 provided framework for adding ruRU but I need a Russian translator to verify that the translations are correct. Additionally, if anyone else wants a locale not listed here, please send me a PM at Curse.com. I'll do my best to add it, but I make no guarantee on fast it will happen. I hope everyone is enjoying the new year!

14 Sep 2013 - ToC bump and inclusion of readme.txt (just so there is off-line documentation of how to use the add-on). I also want to take this opportunity to inform users that MillButton is 100% within the rules laid down by Blizzard Entertainment for add-ons. There was incident in which a former user claimed it got his account banned and, on appeal, instead suspended. This had nothing to do with the add-on and everything to do with what the user was doing. If a player sits down and continuously mills hundreds and hundreds of herbs for hour or two then that is going to trigger an automated response by Blizzard's anti-botting system regardless of the add-on being used. I am sorry that the incident occurred but I am not responsible for its occurrence. On to a lighter note: I hope everyone is enjoying Patch 5.4 - especially all the new glyphs!

22 May 2013 - ToC bump. Everything is working (including Desecrated Herb). I hope everyone is enjoying the 5.3 patch!

17 Apr 2013 - Fixed MillButton so that it mills Desecrated Herb. Big thank you to Puxx and Ro! (Also, I noticed that I wrote the wrong year for the previous entry in the change log, so I fixed that, too.)

05 Mar 2013 - Everything still works, so I am bumping the TOC to 5.2. For those who may be interested, orchaceus posted a modified macro in the comments section of the addon page on Curse that allows you to turn autoloot on/off. ( http://www.curse.com/addons/wow/millbutton?comment=2 ) Also in the comments section is a Prospecting version of MillButton, if you are interested in that.

10 Dec 2012 - Bumping the TOC since Patch 5.1.0a made the addon show as out of date.

11 Nov 2012 - Discovered that Curseforge.com actually had accepted the addon way-back-when. So embarrassed. The only change is a bump to the TOC so that it should no longer shows as "out of date" even though it works fine. If you have recently experienced an error using MillButton, it is very likely that another addon is the actual culprit.

Comments

First Previous Page 3 of 3 Next Last
  • #4

    I'm a little confused on what you are reporting or asking for. Do you mean that Auto Loot will turn on with the modification you made, but will not turn off when you perform the same action?

    Last edited by aliok on 2/4/2013 11:03:29 PM
  • #7

    Oh, that's good to hear. (Not the game issue - that's a shame.) Thank you for posting the macro for others to use. :)

     

    (Curse keeps putting my replies in the wrong places, sorry if I end up spamming your e-mail.)

  • #5

    I mean, with my macro you can Mill with Auto Loot with left click, and disable Auto Loot with right click. I tried to make a macro that turns on Auto Loot, mills, then turns off Auto Loot but then pigments aren't auto-looted. That's game's issue, not addon's one ;)

  • #1
    MillButton into ProspectButton

    Another user asked me about re-purposing MillButton to perform prospecting. I may upload it as its own mini-Addon at some point, but in the mean-while I'll put the instructions here.

    Create a new folder in your Addons and name it "ProspectButton". Go to your MillButton folder and copy/paste the two files there into the folder you just created.

    Rename MillButton.toc to ProspectButton.toc and MillButton.lua to ProspectButton.lua

    Open ProspectButton.toc using Notepad or similar. Here is what it needs to look like:

    ## Interface: 50400
    ## Title: ProspectButton
    ## Notes: Help for prospecting
    ProspectButton.lua

    Save the changes and close the file.

    Open ProspectButton.lua using Notepad or similar. Here is what it needs to look like:

    --[[ macro should be: /run ProspectButtonSetup() /click ProspectButton ]]

    local prospect = CreateFrame("CheckButton","ProspectButton",UIParent,"SecureActionButtonTemplate")
    prospect:SetAttribute("type","macro")

    local function findmetal()
      local function f(b,s)
        return select(7,GetItemInfo(GetContainerItemLink(b,s) or 0))=="Metal & Stone" and select(2,GetContainerItemInfo(b,s))>=5
      end
      for i=0,4 do
        for j=1,GetContainerNumSlots(i) do
          if f(i,j) then
            return i,j
          end
        end
      end
    end  

    function ProspectButtonSetup()
      local b,s = findmetal()
      if (not b or not s) or LootFrame:IsVisible() or CastingBarFrame:IsVisible() or UnitCastingInfo("player") then
        -- do nothing if no ore, if looting or casting
        ProspectButton:SetAttribute("macrotext","")
        if not b then
          print("No more ore in stacks of 5 or more.")
        end
      else
        ProspectButton:SetAttribute("macrotext","/cast Prospecting\n/use "..b.." "..s)
      end
    end

    Save the changes and close the file.

    Open World of Warcraft and make certain that the addon is enabled. Log in to your server and make the following macro:

    #showtooltip Prospecting
    /run ProspectButtonSetup()
    /click ProspectButton

    -------------------------
    You should be good to go now! **I have one very important caveat, however.** There must be no stone or non-prospectable ore (this includes partial ore such as Ghost Iron Nugget) in-between your stacks of prospectable ore. You will get a game error message telling you "There are no gems in this" instead of the addon error message in your chat box. If that occurs and you still have ore you want prospected, you will need to open your bags and shuffle stuff around.

    Have a good time in WoW!

    Aliok

     

    Last edited by aliok on 3/31/2014 8:04:24 PM
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Landmark Beta Key Giveaway!

Get My Code!