# BuyEmAll

By Cogwheel — v2.8.2

BuyEmAll enhances the shift-click interface at vendors.

Please visit Cogwheel’s Workshop for updates, bug reports, feature requests, etc.

- Features
  - Type in the amount you want to buy
  - Buy more than the stack size of the item at once
  - Shift-click items that come in preset stacks
  - Know how much you will be spending
  - Quickly fill stacks or buy as much as you can
  - Quickly refill your ammo pouch
- Notes
  - Maximum Purchase
  - Preset Stacks
  - Bullets/Arrows
- Bugs/Improvements
- Changes

## Features

#### Type in the amount you want to buy

This is actually part of the default UI. Enough people don’t know about it due to the fact that there is no cursor and clicking in the box gives no feedback, that I decided to list it here.

#### Buy more than the stack size of the item at once

For instance, if you want to buy 80 pieces of Silk Thread, you currently have to shift-click the thread, enter 20, hit `Okay`, shift-click the thread, enter 20, hit `Okay`, shift-click the thread, enter 20, hit `Okay`, shift-click the thread, enter 20, and hit `Okay`.

With BuyEmAll, you shift-click the thread, enter 80, hit `Okay`, and confirm that you want to buy more than a stack. This confirmation appears so you don’t accidentally buy 1000 of something when you meant to buy 100.

#### Shift-click items that come in preset stacks

The default UI doesn’t allow you to shift-click items like Refreshing Spring Water which come in preset stacks. If you want to buy 50 of them, you have to right-click the item 10 times. BuyEmAll allows you to shift-click the item and enter the amount you want. See Notes for more information on preset stacks.

#### Know how much you will be spending

Below the box where you enter the amount is a money display. This updates as you change the amount you are going to buy, showing you exactly how much your purchase will cost.

#### Quickly fill stacks or buy as much as you can

The BuyEmAll window has `Stack` and `Max` buttons which allow you to enter a full stack or as much as you can afford/fit. Hovering over the buttons shows a tooltip with the number of items you will be buying and how much it will cost. See Notes for information on the maximum you can buy.

If you already have some of an item, the first click of the `Stack` button will enter the amount you need to fill that stack. Subsequent clicks will add full stacks to your pruchase.

#### Quickly refill your ammo pouch

If you are buying ammo and have free spots in your ammo pouch/quiver, the amount that appears when you first shift-click the ammo will be however many stacks it takes to refill your bag. Just hit `Enter/Return`, and you bag will be filled.

## Notes

### Maximum Purchase

The amount you can enter is limited by:

- The amount of free space in your bags. Partial stacks are included in this calculation, as are specialty bags (e.g. free slots in enchanting bags will be only be counted towards your free space if you are buying an essence, dust, or shard).
- The amount you can afford.
- The amount available from the vendor (for limited stock items).

A breakdown of these numbers is included in the`Max` button’s tooltip.

If you can only buy one item for any of these reasons, shift-click behaves just like a left click, picking up one of the item onto your cursor. If you can’t buy any, then shift-click does nothing.

### Preset Stacks

When you are choosing the amount for items that come prestacked, the amount you enter is the total amount you want to buy, not the number of stacks you want to buy. If you use the arrow buttons, this number will increase or decrease to multiples of the preset stack size.

The confirmation window will only show up if you buy more than the maximum stack size in your inventory, not the stack size that you can buy at once.

#### Example

Refreshing Spring Water — Stack Size: 20, Preset Stack: 5

If you enter 18 and hit `Okay`, it will automatically buy 20 with no confirmation. If you enter 23, a confirmation will pop up asking, “Are you sure you want to buy 25 of this item?”

## Bugs/Improvements

German, French, & Chinese localizations are missing some recently added translations.

Please visit Cogwheel’s Workshop if you have any suggestions or bug reports, and to see what is in store for the future.

## Changes

#### v2.8.2

- Updated for 3.0.2

#### v2.8.1

- Updated for WotLK Beta

#### v2.8

- Cost of Stack or Max purchase now shown in the button’s tooltip instead of changing the money display.
- No longer displays “loaded” message.
- Separated localization files for more flexibility.

#### v2.7

- Updated for 2.0.3.

#### v2.6.3

- Fixed ammo pouch bug.

#### v2.6.2

- Added workaround for ammo pouch bug.

#### v2.6.1

- Added Korean localization thanks to sayclub.

#### v2.6

- Updated for WoW 2.0.

#### v2.5

- Fixed a bug where the amount you could afford was shown as the amount you could fit and vise versa.
- `Stack` button now works a bit more intuitively for items which come in preset stacks.
- De-aced.1

#### v2.2

- Changed behavior of `Stack` button (see Features).
- Improved efficiency in certain areas.

#### v2.1.2

- Fixed a bug that caused an error for people with enchanting or herbalism bags
- Updated Ace2 libraries.

#### v2.1.1

- Updated TOC for patch 1.12.
- Updated Ace2 libraries.

#### v2.1

- Slightly rearranged the buttons to have a bit more space in between.
- Clicking on the `Max` and `Stack` buttons will now change the amount in the box instead of immediately bringing up the confirmation window.
- `Stack` button will now be disabled for items whose stack size is the same as their purchase unit (ammunition, for instance).

#### v2.0

- `Stack` button will now be disabled for items that do not stack.
- Ace2ified. Functionality is the same except for the above patch change, but behind the scenes it’s a whole new beast.

#### v1.12.1

- Disabled display of the “Vendor has” line of the `Max` button’s tooltip if there is no limit.
- Changed coloring of tooltip text.
- French translation courtesy of Layrajha.
- Chinese translation thanks to q09q09.

#### v1.12

- `Stack` and `Max` buttons display a confirmation regardless of purchase size to alleviate accidental clicks.
- The BuyEmAll frame will not hide until you accept the confirmation or if there is no confirmation.
- Fixed a bug where you could attempt to buy an item a vendor no longer has.
- German translation courtesy of JokerGermany.
- Changed the text on `Max` and `Stack` buttons’ tooltips.
- Corrected a few typos in this readme.

#### v1.11.1

- Remembered to turn off debugging mode. :P
- Changed the way the window is rendered such that I don’t have to include a texture file.

#### v1.11

- Changed cost display for better visual integration with WoW.
- Removed display of maximum purchase from the frame.
- Added `Max` button.
- `Max` and `Stack` buttons update the cost display when you mouse over them.
- Added tooltips to the `Max` and `Stack` buttons.
- The `Stack` button is disabled if you cannot buy a stack.

#### v1.10

- Added display of total purchase cost.
- Added `Stack` button.
- The confirmation box no longer appears when filling an ammo pouch.
- Fixed bug where default stack for ammo could be more than you could afford.
- Added a line break in the confirmation window to make it easier to read.

#### v1.9

- Free space calculation now takes into account special bag types.
- Added quick-fill feature for ammo pouches/quivers.

#### v1.8

- The Stack Split frame now shows you the maximum amount you will be able to purchase.
- For preset stack items, the left and right arrows increase or decrease to multiples of the preset stack size.

#### v1.5

- Added support for items that come in preset stacks and items that don’t stack at all.
  Limited the maximum you can attempt to buy as described above.

#### v1.0

- Initial Release

#### Footnotes

1. This change was made for a number of reasons, not the least of which are load time and download size. On a more selfish note, I’m tired of dealing with “bug” reports that are actually caused by other addons using Ace2 that show my addon’s path since it's had a fresh version each release. :)