This is a very simple plugin that will calculate a new buyout price to compensate for the cut the AH takes. Ie, it lets you set how much money you want to get, and then tells you the value to get it.
There is no UI (and it's not needed as far as I'm concerned).
You can pass it one or two numbers. If one, it will assume that's the buyout; if two, it it will assume the lower number is starting bid and the higher is the buyout (ie, order doesn't matter).
The input and output are based in silver, so 1000 = 1g and 0.01 = 1c
The syntax is very simple:
/ah <price>
or
/ah <price1> <price2>
You can also now also perform simple mathematics.
Operations: + (addition), - (subtraction), * (multiplication), / (division), ^ (exponent), % (modulus)
Syntax: /ah <expression>
Example Input: /ah (-4+5)*10
Example Output: (-4+5)*10 = 10
Installation: Extract to your Plugins folder
Loading: /plugins load Ah
This is my first mod, so feel free point out anything I messed up
Changelog
v 0.5 Fixed bug that limited the use of parenthesis in expressions
v 0.4 Changed the way expressions are evaluated allowing for an arbitrary number of operations per expression
Added some comments explaining the code
v 0.3 Fixed bug where value length affected value comparison.
Added ability to perform addition, subtraction, multiplication, division, exponent, and modulus operations.
v 0.2 Added ability to pass two arguments
v 0.1 Initial release