Page 1 of 2

Lift Auction House Restrictions?

Posted: Tue Oct 07, 2014 2:15 am
by fentus
Hi I am a bit new to lua and the DSP.

I am looking to remove or adjust the following restrictions on the auction house:
1.) 7 items to infinite
2.) 1 Week duration to infinite
3.) Tax


Any info would be helpful.

I have been looking at the following file:
auction_house.cpp

Thanks!

Re: Lift Auction House Restrictions?

Posted: Tue Oct 07, 2014 5:20 am
by atom0s
Look in: src\map\packets\auction_house.cpp

The slot limit is where you will see all the pieces of code like:
slot > 7
slot < 7

Duration for 1 week, I don't even think works. I don't recall us having expiring items yet as it was something whasf was supposed to finish after I coded part of what he needed. As far as I know its still not implemented so items should not expire if I recall.

Tax is calculated here:
WBUFL(data,(0x08)-4) = 0x00; // AUCTION_FEE(PItem->getCharPrice());

It is currently set to 0 as it was removed on retail.

Re: Lift Auction House Restrictions?

Posted: Tue Oct 07, 2014 10:25 am
by whasf
Expiration is almost done, it'll be implemented in the search server (and configurable). Just having a bit of trouble with the SQL connections..

Re: Lift Auction House Restrictions?

Posted: Tue Oct 07, 2014 2:55 pm
by kjLotus
atom0s wrote:It is currently set to 0 as it was removed on retail.
are you sure you're not thinking of bazaar tax

Re: Lift Auction House Restrictions?

Posted: Tue Oct 07, 2014 3:07 pm
by fentus
Thank you very much I figured it was just the '7's I was not sure if there was any issues with that or if anything else had to be changed! (and wow good response time appreciated!)

Re: Lift Auction House Restrictions?

Posted: Wed Oct 08, 2014 2:54 am
by Dragomair
atom0s wrote:Look in: src\map\packets\auction_house.cpp

The slot limit is where you will see all the pieces of code like:
slot > 7
slot < 7

Duration for 1 week, I don't even think works. I don't recall us having expiring items yet as it was something whasf was supposed to finish after I coded part of what he needed. As far as I know its still not implemented so items should not expire if I recall.

Tax is calculated here:
WBUFL(data,(0x08)-4) = 0x00; // AUCTION_FEE(PItem->getCharPrice());

It is currently set to 0 as it was removed on retail.
Retail AH tax was reduced majorly but it still exists.
Bazaar tax however was removed completely.

Re: Lift Auction House Restrictions?

Posted: Wed Oct 08, 2014 4:39 am
by atom0s
Ah I got them mixed up / reversed.

Re: Lift Auction House Restrictions?

Posted: Wed Oct 08, 2014 10:08 am
by TeoTwawki
Hmm. Seems any value greater than 7 results in infinity slots, so we can't do something like just make it 10 by just tweaking that number. I suppose it doesn't mater much since the display part client side still won't show more than 7 and locks you out if your try to view sales status after having more than 7 items listed (till you re log out/in). Most folks wanting to change it will prolly prefer infinite anyway.

Re: Lift Auction House Restrictions?

Posted: Wed Oct 08, 2014 5:02 pm
by fentus
I got around to testing this and the client wont let me sell anything past 7 items :C Any ideas?

Edit: Would I need to use a @sell command or something?

Re: Lift Auction House Restrictions?

Posted: Wed Oct 08, 2014 5:13 pm
by TeoTwawki
fentus wrote:I got around to testing this and the client wont let me sell anything past 7 items :C Any ideas?

Edit: Would I need to use a @sell command or something?
I tested with it at 9, and it worked (and had inf slots). Note there are two spots in the code where its checking that number, and if you open sales menu status the client will enforce its own restriction.