Alright this is the basis of this addon,and its sketchy. I have done java before and just starting to get into LUA, so I wrote a fossil outline code to make ti clearer, some java resemblance can be seen. The purpose of this addon is to have it loaded on your bank.auction toon, What it will do is that when you open the AH,If will check the items in your bags,scan for the item on the AH,find the lowest UNIT price of that item, then reduce the price by z%(user input) and post it.
int y = (user input percentage)
int x = 0 (bag)
int z = 1(bag slot)
if (player is at AH)
then
(for x<6, z++)
if(nil is not return)
then
query the item at (x,z) on AH,scan for lowest buyout unit price
then post item on AH at (lowest unit price + (lowest unit price*y)) *stacksize
else(aka nil IS returned)
x++
if(player is not at AH)
make x and z reset to default values(x=0 z=1)
if anyone has any questions or find this hard to understand please tell me through here, or email at
[email protected]
I also play on Justinian on the Cenarion Circle server on WoW if you play on thier too and want to discuss it.